Soenneker.Utils.String.Trie 3.0.636

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 3.0.636
                    
NuGet\Install-Package Soenneker.Utils.String.Trie -Version 3.0.636
                    
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="3.0.636" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.String.Trie" Version="3.0.636" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.String.Trie" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.String.Trie --version 3.0.636
                    
#r "nuget: Soenneker.Utils.String.Trie, 3.0.636"
                    
#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.
#:package Soenneker.Utils.String.Trie@3.0.636
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.String.Trie&version=3.0.636
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.String.Trie&version=3.0.636
                    
Install as a Cake Tool

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 net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • 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
4.0.692 95 4/23/2026
4.0.687 110 3/10/2026
4.0.686 92 3/9/2026
4.0.685 98 3/9/2026
4.0.684 91 3/4/2026
4.0.683 137 1/2/2026
4.0.682 428 11/20/2025
4.0.681 217 11/6/2025
4.0.680 214 10/29/2025
3.0.679 230 9/3/2025
3.0.678 206 8/11/2025
3.0.677 166 6/27/2025
3.0.676 249 5/27/2025
3.0.674 249 5/7/2025
3.0.673 211 5/5/2025
3.0.672 225 5/5/2025
3.0.670 285 4/8/2025
3.0.669 229 4/8/2025
3.0.668 226 4/8/2025
3.0.636 555 3/25/2025
Loading failed