Soenneker.Utils.Strings.DiceCoefficient 3.0.116

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

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

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