Soenneker.Utils.Strings.DiceCoefficient 3.0.47

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

// Install Soenneker.Utils.Strings.DiceCoefficient as a Cake Tool
#tool nuget:?package=Soenneker.Utils.Strings.DiceCoefficient&version=3.0.47                

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.Strings.DiceCoefficient

A utility library for comparing strings via the Dice Coefficient algorithm

Installation

dotnet add package Soenneker.Utils.Strings.DiceCoefficient

Why?

The Dice Coefficient is a powerful way to measure similarity between strings or other sequences. It's particularly effective for comparing text fragments, identifying duplicates, and matching approximate content. Here's why it stands out:

Pairwise Comparison:

It evaluates based on overlapping character pairs (bigrams), focusing on shared elements without considering their order.

Balanced by Size:

It considers both the number of matches and the total size of the compared strings, ensuring a fair similarity measure.

Suitable for Real-World Data:

Its sensitivity to shared sequences makes it effective for noisy or partially matching data.

Fast and Scalable:

It's computationally efficient, making it applicable for large datasets or repeated comparisons.

Usage

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

double result = DiceCoefficientStringUtil.CalculatePercentage(text1, text2); // 74.07
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.0.83 36 12/24/2024
3.0.82 45 12/24/2024
3.0.81 43 12/24/2024
3.0.80 61 12/24/2024
3.0.79 64 12/24/2024
3.0.78 61 12/24/2024
3.0.77 65 12/24/2024
3.0.76 62 12/24/2024
3.0.75 76 12/24/2024
3.0.74 64 12/24/2024
3.0.73 65 12/24/2024
3.0.72 63 12/24/2024
3.0.71 72 12/23/2024
3.0.70 76 12/23/2024
3.0.69 66 12/23/2024
3.0.68 84 12/23/2024
3.0.67 67 12/23/2024
3.0.66 73 12/23/2024
3.0.65 65 12/22/2024
3.0.64 66 12/22/2024
3.0.63 69 12/22/2024
3.0.62 69 12/22/2024
3.0.61 65 12/22/2024
3.0.60 69 12/22/2024
3.0.59 70 12/22/2024
3.0.58 71 12/21/2024
3.0.57 59 12/21/2024
3.0.56 70 12/21/2024
3.0.55 74 12/21/2024
3.0.54 68 12/21/2024
3.0.53 66 12/21/2024
3.0.52 70 12/21/2024
3.0.51 72 12/21/2024
3.0.50 79 12/21/2024
3.0.49 75 12/21/2024
3.0.48 70 12/21/2024
3.0.47 69 12/21/2024
3.0.46 73 12/21/2024
3.0.45 71 12/20/2024
3.0.44 64 12/20/2024
3.0.43 76 12/20/2024
3.0.42 71 12/20/2024
3.0.41 69 12/20/2024
3.0.40 66 12/20/2024
3.0.39 72 12/20/2024
3.0.38 72 12/19/2024
3.0.37 66 12/19/2024
3.0.36 62 12/19/2024
3.0.35 65 12/19/2024
3.0.34 67 12/19/2024
3.0.33 72 12/19/2024
3.0.32 66 12/19/2024
3.0.31 80 12/18/2024
3.0.30 65 12/18/2024
3.0.29 74 12/18/2024
3.0.28 70 12/17/2024
3.0.27 64 12/17/2024
3.0.26 71 12/17/2024
3.0.25 65 12/17/2024
3.0.24 70 12/10/2024
3.0.23 71 12/10/2024
3.0.22 70 12/10/2024
3.0.21 70 12/9/2024
3.0.20 74 12/9/2024
3.0.19 71 12/9/2024
3.0.18 72 12/9/2024
3.0.17 75 12/9/2024
3.0.16 73 12/7/2024
3.0.15 80 12/6/2024
3.0.14 71 12/6/2024
3.0.13 67 12/6/2024
3.0.12 66 12/6/2024
3.0.11 85 12/6/2024
3.0.10 74 12/6/2024
3.0.9 73 12/6/2024
3.0.7 77 12/6/2024
3.0.6 73 12/6/2024
3.0.5 74 12/5/2024
3.0.4 73 12/5/2024
3.0.3 83 12/5/2024
3.0.2 80 12/4/2024
3.0.1 81 12/4/2024