Soenneker.Utils.String.JaccardSimilarity 4.0.992

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.String.JaccardSimilarity --version 4.0.992
                    
NuGet\Install-Package Soenneker.Utils.String.JaccardSimilarity -Version 4.0.992
                    
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.JaccardSimilarity" Version="4.0.992" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.String.JaccardSimilarity" Version="4.0.992" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.String.JaccardSimilarity" />
                    
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.JaccardSimilarity --version 4.0.992
                    
#r "nuget: Soenneker.Utils.String.JaccardSimilarity, 4.0.992"
                    
#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.JaccardSimilarity@4.0.992
                    
#: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.JaccardSimilarity&version=4.0.992
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.String.JaccardSimilarity&version=4.0.992
                    
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

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

A utility library for comparing strings via the Jaccard similarity algorithm

Installation

dotnet add package Soenneker.Utils.String.JaccardSimilarity

Why?

Jaccard similarity is great for comparing sets of items, and it's often used for tasks like detecting similar documents or recommending content. It's useful because:

Set-Focused:

It works well when you care about what elements are present, not their order.

Scale Doesn't Matter:

It's not influenced by how big the sets are, just by what they share.

Efficient:

It's quick to calculate making it suitable for large datasets.

Handles Noise Well:

It stays reliable even if there's extra, less important information in the sets.

Usage

var text1 = "This is a test";
var text2 = "This is another test";

double result = JaccardSimilarityStringUtil.CalculateSimilarityPercentage(text1, text2); // 60
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.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.998 115 4/23/2026
4.0.996 127 3/12/2026
4.0.993 118 3/10/2026
4.0.992 108 3/9/2026
4.0.991 110 3/9/2026
4.0.990 109 3/4/2026
4.0.989 152 1/2/2026
4.0.988 439 11/20/2025
4.0.987 230 11/6/2025
4.0.986 238 10/29/2025
3.0.985 239 9/3/2025
3.0.984 218 8/11/2025
3.0.983 190 6/27/2025
3.0.982 249 5/27/2025
3.0.981 249 5/22/2025
3.0.980 257 5/7/2025
3.0.979 246 5/5/2025
3.0.978 241 5/5/2025
3.0.977 247 5/5/2025
3.0.976 274 4/8/2025
Loading failed