Soenneker.Utils.Strings.DiceCoefficient 3.0.87

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

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

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