Soenneker.Utils.Strings.DiceCoefficient 3.0.150

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

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

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.197 0 1/20/2025
3.0.196 0 1/20/2025
3.0.195 0 1/20/2025
3.0.194 0 1/20/2025
3.0.193 0 1/20/2025
3.0.192 0 1/20/2025
3.0.191 0 1/20/2025
3.0.190 0 1/20/2025
3.0.189 0 1/20/2025
3.0.188 0 1/20/2025
3.0.187 28 1/20/2025
3.0.186 26 1/20/2025
3.0.185 22 1/20/2025
3.0.184 22 1/20/2025
3.0.183 27 1/19/2025
3.0.182 27 1/19/2025
3.0.181 31 1/19/2025
3.0.180 27 1/19/2025
3.0.179 27 1/19/2025
3.0.178 29 1/18/2025
3.0.177 28 1/18/2025
3.0.176 29 1/18/2025
3.0.175 33 1/17/2025
3.0.174 29 1/17/2025
3.0.173 36 1/17/2025
3.0.172 36 1/17/2025
3.0.171 32 1/17/2025
3.0.170 37 1/17/2025
3.0.169 33 1/16/2025
3.0.168 34 1/16/2025
3.0.167 40 1/16/2025
3.0.166 32 1/16/2025
3.0.165 29 1/16/2025
3.0.164 33 1/16/2025
3.0.163 35 1/16/2025
3.0.162 32 1/16/2025
3.0.161 33 1/16/2025
3.0.160 34 1/16/2025
3.0.159 40 1/15/2025
3.0.158 36 1/15/2025
3.0.157 32 1/15/2025
3.0.156 35 1/15/2025
3.0.155 33 1/15/2025
3.0.154 34 1/15/2025
3.0.153 17 1/15/2025
3.0.152 17 1/15/2025
3.0.151 16 1/15/2025
3.0.150 15 1/15/2025
3.0.149 11 1/15/2025
3.0.148 11 1/15/2025
3.0.147 9 1/14/2025
3.0.146 9 1/14/2025
3.0.145 9 1/14/2025
3.0.144 7 1/14/2025
3.0.143 7 1/14/2025
3.0.142 7 1/14/2025
3.0.141 7 1/14/2025
3.0.140 20 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