Soenneker.Utils.Strings.DiceCoefficient 3.0.98

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.98                
NuGet\Install-Package Soenneker.Utils.Strings.DiceCoefficient -Version 3.0.98                
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.98" />                
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.98                
#r "nuget: Soenneker.Utils.Strings.DiceCoefficient, 3.0.98"                
#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.98

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

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.122 68 1/3/2025
3.0.121 70 1/3/2025
3.0.120 66 1/3/2025
3.0.119 40 1/3/2025
3.0.118 40 1/3/2025
3.0.117 47 1/2/2025
3.0.116 48 1/2/2025
3.0.115 45 1/2/2025
3.0.114 49 1/2/2025
3.0.113 47 1/2/2025
3.0.112 48 1/2/2025
3.0.111 58 1/1/2025
3.0.110 54 1/1/2025
3.0.109 56 1/1/2025
3.0.108 54 1/1/2025
3.0.107 55 1/1/2025
3.0.106 49 1/1/2025
3.0.105 49 1/1/2025
3.0.104 52 1/1/2025
3.0.103 51 1/1/2025
3.0.102 52 12/31/2024
3.0.101 51 12/31/2024
3.0.100 54 12/31/2024
3.0.99 64 12/31/2024
3.0.98 64 12/31/2024
3.0.97 74 12/31/2024
3.0.96 57 12/31/2024
3.0.95 55 12/31/2024
3.0.94 74 12/31/2024
3.0.93 68 12/31/2024
3.0.92 70 12/31/2024
3.0.91 68 12/31/2024
3.0.90 66 12/31/2024
3.0.89 66 12/31/2024
3.0.88 71 12/30/2024
3.0.87 71 12/28/2024
3.0.86 74 12/28/2024
3.0.85 77 12/27/2024
3.0.84 79 12/27/2024
3.0.83 74 12/24/2024
3.0.82 71 12/24/2024
3.0.81 76 12/24/2024
3.0.80 78 12/24/2024
3.0.79 71 12/24/2024
3.0.78 68 12/24/2024
3.0.77 72 12/24/2024
3.0.76 69 12/24/2024
3.0.75 83 12/24/2024
3.0.74 71 12/24/2024
3.0.73 72 12/24/2024
3.0.72 70 12/24/2024
3.0.71 79 12/23/2024
3.0.70 83 12/23/2024
3.0.69 73 12/23/2024
3.0.68 91 12/23/2024
3.0.67 74 12/23/2024
3.0.66 80 12/23/2024
3.0.65 72 12/22/2024
3.0.64 73 12/22/2024
3.0.63 76 12/22/2024
3.0.62 77 12/22/2024
3.0.61 72 12/22/2024
3.0.60 76 12/22/2024
3.0.59 77 12/22/2024
3.0.58 78 12/21/2024
3.0.57 67 12/21/2024
3.0.56 78 12/21/2024
3.0.55 81 12/21/2024
3.0.54 75 12/21/2024
3.0.53 73 12/21/2024
3.0.52 77 12/21/2024
3.0.51 79 12/21/2024
3.0.50 86 12/21/2024
3.0.49 82 12/21/2024
3.0.48 77 12/21/2024
3.0.47 76 12/21/2024
3.0.46 80 12/21/2024
3.0.45 78 12/20/2024
3.0.44 71 12/20/2024
3.0.43 83 12/20/2024
3.0.42 78 12/20/2024
3.0.41 76 12/20/2024
3.0.40 73 12/20/2024
3.0.39 79 12/20/2024
3.0.38 79 12/19/2024
3.0.37 73 12/19/2024
3.0.36 69 12/19/2024
3.0.35 72 12/19/2024
3.0.34 74 12/19/2024
3.0.33 79 12/19/2024
3.0.32 73 12/19/2024
3.0.31 87 12/18/2024
3.0.30 72 12/18/2024
3.0.29 81 12/18/2024
3.0.28 77 12/17/2024
3.0.27 71 12/17/2024
3.0.26 78 12/17/2024
3.0.25 72 12/17/2024
3.0.24 77 12/10/2024
3.0.23 78 12/10/2024
3.0.22 77 12/10/2024
3.0.21 77 12/9/2024
3.0.20 82 12/9/2024
3.0.19 78 12/9/2024
3.0.18 79 12/9/2024
3.0.17 83 12/9/2024
3.0.16 80 12/7/2024
3.0.15 87 12/6/2024
3.0.14 78 12/6/2024
3.0.13 74 12/6/2024
3.0.12 73 12/6/2024
3.0.11 93 12/6/2024
3.0.10 82 12/6/2024
3.0.9 81 12/6/2024
3.0.7 85 12/6/2024
3.0.6 83 12/6/2024
3.0.5 81 12/5/2024
3.0.4 80 12/5/2024
3.0.3 90 12/5/2024
3.0.2 87 12/4/2024
3.0.1 88 12/4/2024