Soenneker.Utils.Strings.DiceCoefficient 3.0.125

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

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

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.  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. 
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.140 0 1/14/2025
3.0.139 32 1/13/2025
3.0.138 28 1/13/2025
3.0.137 24 1/13/2025
3.0.136 26 1/13/2025
3.0.135 34 1/12/2025
3.0.134 29 1/12/2025
3.0.133 32 1/11/2025
3.0.132 33 1/11/2025
3.0.131 28 1/11/2025
3.0.130 33 1/10/2025
3.0.129 30 1/10/2025
3.0.128 22 1/10/2025
3.0.127 20 1/10/2025
3.0.126 34 1/10/2025
3.0.125 29 1/10/2025
3.0.124 37 1/10/2025
3.0.123 32 1/10/2025
3.0.122 110 1/3/2025
3.0.121 113 1/3/2025
3.0.120 106 1/3/2025
3.0.119 82 1/3/2025
3.0.118 82 1/3/2025
3.0.117 84 1/2/2025
3.0.116 86 1/2/2025
3.0.115 86 1/2/2025
3.0.114 86 1/2/2025
3.0.113 86 1/2/2025
3.0.112 89 1/2/2025
3.0.111 95 1/1/2025
3.0.110 97 1/1/2025
3.0.109 92 1/1/2025
3.0.108 93 1/1/2025
3.0.107 92 1/1/2025
3.0.106 88 1/1/2025
3.0.105 85 1/1/2025
3.0.104 85 1/1/2025
3.0.103 92 1/1/2025
3.0.102 89 12/31/2024
3.0.101 91 12/31/2024
3.0.100 86 12/31/2024
3.0.99 98 12/31/2024
3.0.98 98 12/31/2024
3.0.97 99 12/31/2024
3.0.96 72 12/31/2024
3.0.95 69 12/31/2024
3.0.94 78 12/31/2024
3.0.93 72 12/31/2024
3.0.92 74 12/31/2024
3.0.91 75 12/31/2024
3.0.90 73 12/31/2024
3.0.89 73 12/31/2024
3.0.88 73 12/30/2024
3.0.87 73 12/28/2024
3.0.86 76 12/28/2024
3.0.85 79 12/27/2024
3.0.84 82 12/27/2024
3.0.83 76 12/24/2024
3.0.82 73 12/24/2024
3.0.81 78 12/24/2024
3.0.80 80 12/24/2024
3.0.79 73 12/24/2024
3.0.78 70 12/24/2024
3.0.77 74 12/24/2024
3.0.76 71 12/24/2024
3.0.75 85 12/24/2024
3.0.74 73 12/24/2024
3.0.73 74 12/24/2024
3.0.72 72 12/24/2024
3.0.71 81 12/23/2024
3.0.70 85 12/23/2024
3.0.69 75 12/23/2024
3.0.68 93 12/23/2024
3.0.67 76 12/23/2024
3.0.66 86 12/23/2024
3.0.65 74 12/22/2024
3.0.64 75 12/22/2024
3.0.63 78 12/22/2024
3.0.62 79 12/22/2024
3.0.61 74 12/22/2024
3.0.60 78 12/22/2024
3.0.59 79 12/22/2024
3.0.58 80 12/21/2024
3.0.57 69 12/21/2024
3.0.56 80 12/21/2024
3.0.55 83 12/21/2024
3.0.54 77 12/21/2024
3.0.53 75 12/21/2024
3.0.52 79 12/21/2024
3.0.51 81 12/21/2024
3.0.50 88 12/21/2024
3.0.49 84 12/21/2024
3.0.48 79 12/21/2024
3.0.47 78 12/21/2024
3.0.46 82 12/21/2024
3.0.45 80 12/20/2024
3.0.44 73 12/20/2024
3.0.43 85 12/20/2024
3.0.42 80 12/20/2024
3.0.41 78 12/20/2024
3.0.40 75 12/20/2024
3.0.39 81 12/20/2024
3.0.38 81 12/19/2024
3.0.37 75 12/19/2024
3.0.36 71 12/19/2024
3.0.35 74 12/19/2024
3.0.34 76 12/19/2024
3.0.33 81 12/19/2024
3.0.32 75 12/19/2024
3.0.31 89 12/18/2024
3.0.30 74 12/18/2024
3.0.29 83 12/18/2024
3.0.28 79 12/17/2024
3.0.27 73 12/17/2024
3.0.26 80 12/17/2024
3.0.25 74 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 81 12/7/2024
3.0.15 88 12/6/2024
3.0.14 79 12/6/2024
3.0.13 75 12/6/2024
3.0.12 74 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 87 12/6/2024
3.0.6 83 12/6/2024
3.0.5 83 12/5/2024
3.0.4 82 12/5/2024
3.0.3 90 12/5/2024
3.0.2 87 12/4/2024
3.0.1 88 12/4/2024