Soenneker.Utils.String.Trie 2.1.8

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.String.Trie --version 2.1.8
NuGet\Install-Package Soenneker.Utils.String.Trie -Version 2.1.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.String.Trie" Version="2.1.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Utils.String.Trie --version 2.1.8
#r "nuget: Soenneker.Utils.String.Trie, 2.1.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Soenneker.Utils.String.Trie as a Cake Addin
#addin nuget:?package=Soenneker.Utils.String.Trie&version=2.1.8

// Install Soenneker.Utils.String.Trie as a Cake Tool
#tool nuget:?package=Soenneker.Utils.String.Trie&version=2.1.8

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.String.Trie

A utility library for comparing strings via trie (prefix tree) similarity

Installation

dotnet add package Soenneker.Utils.String.Trie

Why?

Imagine you have two strings. Trie-based matching helps you figure out how similar they are by looking at the prefixes they share. Here's why it's handy:

Easy to Understand:

Trie-based matching is straightforward. It helps identify common prefixes between two strings, providing an intuitive measure of similarity.

Not Bothered by Length:

Whether a string is long or short doesn't throw off trie-based matching. It cares more about the common prefixes than the total length of the strings.

Efficient for Big Tasks:

When you're dealing with lots of strings or large texts, trie-based matching is efficient. It quickly identifies common prefixes without getting bogged down by complicated calculations, making it a practical choice for large datasets.

Usage

string str1 = "hello";
string str2 = "hell";

double similarity = TrieStringSimilarityUtil.CalculateSimilarityPercentage(str1, str2); // 80
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.52 0 5/28/2024
2.1.51 16 5/28/2024
2.1.50 20 5/28/2024
2.1.49 24 5/28/2024
2.1.48 21 5/28/2024
2.1.47 32 5/27/2024
2.1.46 55 5/27/2024
2.1.45 56 5/27/2024
2.1.44 57 5/27/2024
2.1.43 57 5/26/2024
2.1.42 61 5/26/2024
2.1.41 61 5/26/2024
2.1.40 59 5/26/2024
2.1.39 64 5/26/2024
2.1.38 67 5/26/2024
2.1.37 58 5/25/2024
2.1.36 57 5/25/2024
2.1.35 62 5/25/2024
2.1.34 64 5/25/2024
2.1.33 63 5/25/2024
2.1.32 64 5/23/2024
2.1.31 65 5/23/2024
2.1.30 62 5/23/2024
2.1.29 60 5/23/2024
2.1.28 57 5/23/2024
2.1.27 66 5/23/2024
2.1.26 64 5/23/2024
2.1.25 66 5/22/2024
2.1.24 64 5/22/2024
2.1.23 72 5/22/2024
2.1.22 67 5/22/2024
2.1.21 48 5/18/2024
2.1.20 43 5/18/2024
2.1.19 42 5/18/2024
2.1.18 47 5/18/2024
2.1.17 49 5/17/2024
2.1.16 53 5/17/2024
2.1.15 43 5/17/2024
2.1.14 53 5/16/2024
2.1.13 50 5/16/2024
2.1.12 51 5/16/2024
2.1.11 54 5/15/2024
2.1.10 49 5/15/2024
2.1.9 53 5/15/2024
2.1.8 49 5/14/2024
2.1.7 45 5/14/2024
2.1.6 32 5/14/2024
2.1.5 35 5/14/2024
2.1.4 32 5/14/2024
2.1.3 37 5/14/2024
2.1.2 42 5/14/2024
2.1.1 42 5/14/2024