Soenneker.Utils.Strings.DiceCoefficient 3.0.201

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

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

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.207 0 1/21/2025
3.0.206 0 1/21/2025
3.0.205 15 1/21/2025
3.0.204 18 1/21/2025
3.0.203 26 1/21/2025
3.0.202 31 1/21/2025
3.0.201 37 1/21/2025
3.0.200 41 1/21/2025
3.0.199 53 1/21/2025
3.0.198 51 1/21/2025
3.0.197 60 1/20/2025
3.0.196 55 1/20/2025
3.0.195 61 1/20/2025
3.0.194 61 1/20/2025
3.0.193 60 1/20/2025
3.0.192 56 1/20/2025
3.0.191 63 1/20/2025
3.0.190 60 1/20/2025
3.0.189 66 1/20/2025
3.0.188 66 1/20/2025
3.0.187 69 1/20/2025
3.0.186 68 1/20/2025
3.0.185 60 1/20/2025
3.0.184 61 1/20/2025
3.0.183 58 1/19/2025
3.0.182 62 1/19/2025
3.0.181 71 1/19/2025
3.0.180 56 1/19/2025
3.0.179 61 1/19/2025
3.0.178 56 1/18/2025
3.0.177 57 1/18/2025
3.0.176 55 1/18/2025
3.0.175 63 1/17/2025
3.0.174 59 1/17/2025
3.0.173 72 1/17/2025
3.0.172 65 1/17/2025
3.0.171 63 1/17/2025
3.0.170 66 1/17/2025
3.0.169 63 1/16/2025
3.0.168 63 1/16/2025
3.0.167 68 1/16/2025
3.0.166 61 1/16/2025
3.0.165 59 1/16/2025
3.0.164 69 1/16/2025
3.0.163 73 1/16/2025
3.0.162 69 1/16/2025
3.0.161 67 1/16/2025
3.0.160 67 1/16/2025
3.0.159 75 1/15/2025
3.0.158 71 1/15/2025
3.0.157 61 1/15/2025
3.0.156 64 1/15/2025
3.0.155 60 1/15/2025
3.0.154 63 1/15/2025
3.0.153 49 1/15/2025
3.0.152 47 1/15/2025
3.0.151 44 1/15/2025
3.0.150 46 1/15/2025
3.0.149 40 1/15/2025
3.0.148 42 1/15/2025
3.0.147 38 1/14/2025
3.0.146 38 1/14/2025
3.0.145 39 1/14/2025
3.0.144 28 1/14/2025
3.0.143 30 1/14/2025
3.0.142 29 1/14/2025
3.0.141 24 1/14/2025
3.0.140 30 1/14/2025
3.0.139 43 1/13/2025
3.0.138 38 1/13/2025
3.0.137 38 1/13/2025
3.0.136 36 1/13/2025
3.0.135 44 1/12/2025
3.0.134 42 1/12/2025
3.0.133 45 1/11/2025
3.0.132 46 1/11/2025
3.0.131 36 1/11/2025
3.0.130 46 1/10/2025
3.0.129 42 1/10/2025
3.0.128 33 1/10/2025
3.0.127 33 1/10/2025
3.0.126 47 1/10/2025
3.0.125 42 1/10/2025
3.0.124 50 1/10/2025
3.0.123 45 1/10/2025
3.0.122 112 1/3/2025
3.0.121 115 1/3/2025
3.0.120 108 1/3/2025
3.0.119 84 1/3/2025
3.0.118 84 1/3/2025
3.0.117 86 1/2/2025
3.0.116 88 1/2/2025
3.0.115 88 1/2/2025
3.0.114 88 1/2/2025
3.0.113 88 1/2/2025
3.0.112 91 1/2/2025
3.0.111 97 1/1/2025
3.0.110 99 1/1/2025
3.0.109 94 1/1/2025
3.0.108 95 1/1/2025
3.0.107 94 1/1/2025
3.0.106 90 1/1/2025
3.0.105 87 1/1/2025
3.0.104 87 1/1/2025
3.0.103 94 1/1/2025
3.0.102 91 12/31/2024
3.0.101 93 12/31/2024
3.0.100 88 12/31/2024
3.0.99 100 12/31/2024
3.0.98 100 12/31/2024
3.0.97 101 12/31/2024
3.0.96 74 12/31/2024
3.0.95 71 12/31/2024
3.0.94 80 12/31/2024
3.0.93 74 12/31/2024
3.0.92 76 12/31/2024
3.0.91 77 12/31/2024
3.0.90 75 12/31/2024
3.0.89 75 12/31/2024
3.0.88 75 12/30/2024
3.0.87 75 12/28/2024
3.0.86 78 12/28/2024
3.0.85 81 12/27/2024
3.0.84 84 12/27/2024
3.0.83 78 12/24/2024
3.0.82 75 12/24/2024
3.0.81 80 12/24/2024
3.0.80 82 12/24/2024
3.0.79 75 12/24/2024
3.0.78 72 12/24/2024
3.0.77 76 12/24/2024
3.0.76 73 12/24/2024
3.0.75 87 12/24/2024
3.0.74 75 12/24/2024
3.0.73 76 12/24/2024
3.0.72 74 12/24/2024
3.0.71 83 12/23/2024
3.0.70 87 12/23/2024
3.0.69 77 12/23/2024
3.0.68 95 12/23/2024
3.0.67 78 12/23/2024
3.0.66 88 12/23/2024
3.0.65 76 12/22/2024
3.0.64 77 12/22/2024
3.0.63 82 12/22/2024
3.0.62 83 12/22/2024
3.0.61 76 12/22/2024
3.0.60 80 12/22/2024
3.0.59 81 12/22/2024
3.0.58 82 12/21/2024
3.0.57 71 12/21/2024
3.0.56 82 12/21/2024
3.0.55 85 12/21/2024
3.0.54 79 12/21/2024
3.0.53 77 12/21/2024
3.0.52 81 12/21/2024
3.0.51 83 12/21/2024
3.0.50 90 12/21/2024
3.0.49 86 12/21/2024
3.0.48 81 12/21/2024
3.0.47 80 12/21/2024
3.0.46 84 12/21/2024
3.0.45 82 12/20/2024
3.0.44 75 12/20/2024
3.0.43 87 12/20/2024
3.0.42 82 12/20/2024
3.0.41 80 12/20/2024
3.0.40 77 12/20/2024
3.0.39 83 12/20/2024
3.0.38 83 12/19/2024
3.0.37 77 12/19/2024
3.0.36 73 12/19/2024
3.0.35 76 12/19/2024
3.0.34 78 12/19/2024
3.0.33 83 12/19/2024
3.0.32 77 12/19/2024
3.0.31 91 12/18/2024
3.0.30 76 12/18/2024
3.0.29 85 12/18/2024
3.0.28 81 12/17/2024
3.0.27 75 12/17/2024
3.0.26 82 12/17/2024
3.0.25 76 12/17/2024
3.0.24 79 12/10/2024
3.0.23 80 12/10/2024
3.0.22 79 12/10/2024
3.0.21 79 12/9/2024
3.0.20 84 12/9/2024
3.0.19 80 12/9/2024
3.0.18 81 12/9/2024
3.0.17 85 12/9/2024
3.0.16 83 12/7/2024
3.0.15 90 12/6/2024
3.0.14 81 12/6/2024
3.0.13 77 12/6/2024
3.0.12 76 12/6/2024
3.0.11 95 12/6/2024
3.0.10 84 12/6/2024
3.0.9 85 12/6/2024
3.0.7 89 12/6/2024
3.0.6 85 12/6/2024
3.0.5 85 12/5/2024
3.0.4 88 12/5/2024
3.0.3 92 12/5/2024
3.0.2 89 12/4/2024
3.0.1 90 12/4/2024