Soenneker.Utils.Strings.LevenshteinDistance
3.0.215
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Utils.Strings.LevenshteinDistance --version 3.0.215
NuGet\Install-Package Soenneker.Utils.Strings.LevenshteinDistance -Version 3.0.215
<PackageReference Include="Soenneker.Utils.Strings.LevenshteinDistance" Version="3.0.215" />
paket add Soenneker.Utils.Strings.LevenshteinDistance --version 3.0.215
#r "nuget: Soenneker.Utils.Strings.LevenshteinDistance, 3.0.215"
// Install Soenneker.Utils.Strings.LevenshteinDistance as a Cake Addin #addin nuget:?package=Soenneker.Utils.Strings.LevenshteinDistance&version=3.0.215 // Install Soenneker.Utils.Strings.LevenshteinDistance as a Cake Tool #tool nuget:?package=Soenneker.Utils.Strings.LevenshteinDistance&version=3.0.215
Soenneker.Utils.Strings.LevenshteinDistance
A utility library for comparing strings via the Levenshtein Distance algorithm
Installation
dotnet add package Soenneker.Utils.Strings.LevenshteinDistance
Why Levenshtein Distance?
Levenshtein Distance, also known as Edit Distance, is a widely used metric for measuring the similarity between two strings. It calculates the minimum number of operations required to transform one string into the other, where operations include:
- Insertion of a character.
- Deletion of a character.
- Substitution of a character.
Levenshtein Distance is particularly useful in applications like:
Flexible String Comparison:
It handles strings of unequal length and allows for more flexible comparisons.
Real-World Scenarios:
It's well-suited for tasks like:
- Fuzzy string matching.
- Spelling correction.
- DNA sequence analysis.
- Natural language processing.
Position-Aware:
It captures positional changes and structural differences more effectively than set-based metrics like Jaccard or Hamming Distance.
Comprehensive Error Handling:
Unlike simpler metrics, it accounts for insertions and deletions, making it robust for strings with typos or omissions.
Usage
var text1 = "kitten";
var text2 = "sitting";
int distance = LevenshteinDistanceUtil.ComputeDistance(text1, text2); // 3
double similarityPercentage = LevenshteinDistanceUtil.CalculatePercentage(text1, text2); // ~57.14
This library is efficient, straightforward, and ideal for handling real-world string similarity comparisons where flexibility and accuracy are key.
Product | Versions 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. |
-
net9.0
- No dependencies.
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.222 | 19 | 2/19/2025 |
3.0.221 | 14 | 2/19/2025 |
3.0.220 | 27 | 2/19/2025 |
3.0.219 | 37 | 2/19/2025 |
3.0.218 | 39 | 2/18/2025 |
3.0.217 | 42 | 2/18/2025 |
3.0.216 | 44 | 2/18/2025 |
3.0.215 | 50 | 2/14/2025 |
3.0.214 | 45 | 2/14/2025 |
3.0.213 | 49 | 2/13/2025 |
3.0.212 | 45 | 2/12/2025 |
3.0.211 | 69 | 2/12/2025 |
3.0.210 | 66 | 2/12/2025 |
3.0.209 | 65 | 2/12/2025 |
3.0.208 | 62 | 2/12/2025 |
3.0.207 | 65 | 2/11/2025 |
3.0.206 | 70 | 2/11/2025 |
3.0.205 | 68 | 2/11/2025 |
3.0.204 | 63 | 2/11/2025 |
3.0.203 | 64 | 2/11/2025 |
3.0.202 | 70 | 2/10/2025 |
3.0.201 | 66 | 2/10/2025 |
3.0.200 | 71 | 2/10/2025 |
3.0.199 | 68 | 2/10/2025 |
3.0.198 | 65 | 2/10/2025 |
3.0.197 | 79 | 2/9/2025 |
3.0.196 | 68 | 2/8/2025 |
3.0.195 | 68 | 2/8/2025 |
3.0.194 | 63 | 2/8/2025 |
3.0.193 | 67 | 2/8/2025 |
3.0.192 | 65 | 2/8/2025 |
3.0.191 | 64 | 2/7/2025 |
3.0.190 | 68 | 2/7/2025 |
3.0.189 | 73 | 2/7/2025 |
3.0.188 | 68 | 2/7/2025 |
3.0.187 | 76 | 2/7/2025 |
3.0.186 | 67 | 2/7/2025 |
3.0.185 | 67 | 2/7/2025 |
3.0.184 | 64 | 2/7/2025 |
3.0.183 | 48 | 2/6/2025 |
3.0.182 | 66 | 2/5/2025 |
3.0.181 | 66 | 2/5/2025 |
3.0.180 | 67 | 2/5/2025 |
3.0.179 | 64 | 2/5/2025 |
3.0.178 | 64 | 2/5/2025 |
3.0.177 | 65 | 2/5/2025 |
3.0.176 | 75 | 2/5/2025 |
3.0.175 | 49 | 1/28/2025 |
3.0.174 | 44 | 1/28/2025 |
3.0.173 | 43 | 1/28/2025 |
3.0.172 | 47 | 1/28/2025 |
3.0.171 | 37 | 1/27/2025 |
3.0.170 | 42 | 1/27/2025 |
3.0.169 | 43 | 1/26/2025 |
3.0.168 | 37 | 1/26/2025 |
3.0.167 | 43 | 1/26/2025 |
3.0.166 | 47 | 1/25/2025 |
3.0.165 | 46 | 1/25/2025 |
3.0.164 | 47 | 1/25/2025 |
3.0.163 | 45 | 1/25/2025 |
3.0.162 | 42 | 1/25/2025 |
3.0.161 | 34 | 1/25/2025 |
3.0.160 | 17 | 1/24/2025 |
3.0.159 | 20 | 1/24/2025 |
3.0.158 | 18 | 1/24/2025 |
3.0.157 | 38 | 1/24/2025 |
3.0.156 | 40 | 1/24/2025 |
3.0.155 | 44 | 1/23/2025 |
3.0.154 | 50 | 1/23/2025 |
3.0.153 | 70 | 1/21/2025 |
3.0.152 | 63 | 1/21/2025 |
3.0.151 | 69 | 1/21/2025 |
3.0.150 | 66 | 1/21/2025 |
3.0.149 | 65 | 1/21/2025 |
3.0.148 | 65 | 1/21/2025 |
3.0.147 | 68 | 1/21/2025 |
3.0.146 | 66 | 1/20/2025 |
3.0.145 | 59 | 1/20/2025 |
3.0.144 | 68 | 1/20/2025 |
3.0.143 | 64 | 1/20/2025 |
3.0.142 | 66 | 1/20/2025 |
3.0.141 | 67 | 1/20/2025 |
3.0.140 | 66 | 1/19/2025 |
3.0.139 | 68 | 1/19/2025 |
3.0.138 | 66 | 1/19/2025 |
3.0.137 | 72 | 1/19/2025 |
3.0.136 | 67 | 1/19/2025 |
3.0.135 | 64 | 1/19/2025 |
3.0.134 | 62 | 1/19/2025 |
3.0.133 | 66 | 1/18/2025 |
3.0.132 | 67 | 1/18/2025 |
3.0.131 | 60 | 1/18/2025 |
3.0.130 | 58 | 1/18/2025 |
3.0.129 | 72 | 1/17/2025 |
3.0.128 | 65 | 1/17/2025 |
3.0.127 | 68 | 1/17/2025 |
3.0.126 | 67 | 1/17/2025 |
3.0.125 | 71 | 1/17/2025 |
3.0.124 | 70 | 1/17/2025 |
3.0.123 | 71 | 1/16/2025 |
3.0.122 | 70 | 1/16/2025 |
3.0.121 | 64 | 1/16/2025 |
3.0.120 | 70 | 1/16/2025 |
3.0.119 | 68 | 1/16/2025 |
3.0.118 | 67 | 1/16/2025 |
3.0.117 | 75 | 1/15/2025 |
3.0.116 | 68 | 1/15/2025 |
3.0.115 | 66 | 1/15/2025 |
3.0.114 | 54 | 1/15/2025 |
3.0.113 | 48 | 1/15/2025 |
3.0.112 | 50 | 1/15/2025 |
3.0.111 | 56 | 1/15/2025 |
3.0.110 | 39 | 1/15/2025 |
3.0.109 | 32 | 1/14/2025 |
3.0.108 | 36 | 1/14/2025 |
3.0.107 | 32 | 1/14/2025 |
3.0.106 | 59 | 1/14/2025 |
3.0.105 | 58 | 1/13/2025 |
3.0.104 | 56 | 1/13/2025 |
3.0.103 | 59 | 1/12/2025 |
3.0.102 | 64 | 1/11/2025 |
3.0.101 | 68 | 1/11/2025 |
3.0.100 | 64 | 1/11/2025 |
3.0.99 | 66 | 1/10/2025 |
3.0.98 | 72 | 1/10/2025 |
3.0.97 | 66 | 1/10/2025 |
3.0.96 | 62 | 1/10/2025 |
3.0.95 | 96 | 1/3/2025 |
3.0.94 | 108 | 1/3/2025 |
3.0.93 | 80 | 1/3/2025 |
3.0.92 | 81 | 1/3/2025 |
3.0.91 | 85 | 1/2/2025 |
3.0.90 | 78 | 1/2/2025 |
3.0.89 | 86 | 1/2/2025 |
3.0.88 | 81 | 1/2/2025 |
3.0.87 | 88 | 1/1/2025 |
3.0.86 | 89 | 1/1/2025 |
3.0.85 | 86 | 1/1/2025 |
3.0.84 | 90 | 1/1/2025 |
3.0.83 | 92 | 1/1/2025 |
3.0.82 | 85 | 1/1/2025 |
3.0.81 | 89 | 12/31/2024 |
3.0.80 | 97 | 12/31/2024 |
3.0.79 | 92 | 12/31/2024 |
3.0.77 | 103 | 12/31/2024 |
3.0.76 | 108 | 12/31/2024 |
3.0.75 | 98 | 12/31/2024 |
3.0.74 | 82 | 12/31/2024 |
3.0.73 | 80 | 12/31/2024 |
3.0.72 | 81 | 12/31/2024 |
3.0.71 | 89 | 12/31/2024 |
3.0.70 | 79 | 12/31/2024 |
3.0.69 | 82 | 12/30/2024 |
3.0.68 | 87 | 12/28/2024 |
3.0.67 | 80 | 12/28/2024 |
3.0.66 | 86 | 12/27/2024 |
3.0.65 | 82 | 12/27/2024 |
3.0.64 | 79 | 12/24/2024 |
3.0.63 | 79 | 12/24/2024 |
3.0.62 | 83 | 12/24/2024 |
3.0.61 | 80 | 12/24/2024 |
3.0.60 | 74 | 12/24/2024 |
3.0.59 | 77 | 12/24/2024 |
3.0.58 | 75 | 12/24/2024 |
3.0.57 | 83 | 12/24/2024 |
3.0.56 | 82 | 12/24/2024 |
3.0.55 | 77 | 12/24/2024 |
3.0.54 | 77 | 12/23/2024 |
3.0.53 | 81 | 12/23/2024 |
3.0.52 | 81 | 12/23/2024 |
3.0.51 | 75 | 12/23/2024 |
3.0.50 | 80 | 12/23/2024 |
3.0.49 | 91 | 12/23/2024 |
3.0.48 | 79 | 12/22/2024 |
3.0.47 | 79 | 12/22/2024 |
3.0.46 | 88 | 12/22/2024 |
3.0.45 | 86 | 12/22/2024 |
3.0.44 | 83 | 12/22/2024 |
3.0.43 | 87 | 12/22/2024 |
3.0.42 | 82 | 12/22/2024 |
3.0.41 | 84 | 12/21/2024 |
3.0.40 | 86 | 12/21/2024 |
3.0.39 | 86 | 12/21/2024 |
3.0.38 | 91 | 12/21/2024 |
3.0.37 | 79 | 12/21/2024 |
3.0.36 | 84 | 12/21/2024 |
3.0.35 | 87 | 12/20/2024 |
3.0.34 | 87 | 12/20/2024 |
3.0.33 | 83 | 12/20/2024 |
3.0.32 | 83 | 12/20/2024 |
3.0.31 | 81 | 12/20/2024 |
3.0.30 | 88 | 12/19/2024 |
3.0.29 | 78 | 12/19/2024 |
3.0.28 | 80 | 12/19/2024 |
3.0.27 | 87 | 12/18/2024 |
3.0.26 | 87 | 12/18/2024 |
3.0.25 | 79 | 12/16/2024 |
3.0.24 | 80 | 12/16/2024 |
3.0.23 | 85 | 12/10/2024 |
3.0.22 | 87 | 12/10/2024 |
3.0.21 | 88 | 12/10/2024 |
3.0.20 | 89 | 12/9/2024 |
3.0.19 | 83 | 12/9/2024 |
3.0.18 | 86 | 12/9/2024 |
3.0.17 | 91 | 12/9/2024 |
3.0.16 | 91 | 12/7/2024 |
3.0.15 | 109 | 12/6/2024 |
3.0.14 | 82 | 12/6/2024 |
3.0.13 | 95 | 12/6/2024 |
3.0.12 | 93 | 12/6/2024 |
3.0.11 | 110 | 12/6/2024 |
3.0.10 | 90 | 12/6/2024 |
3.0.9 | 94 | 12/6/2024 |
3.0.8 | 97 | 12/6/2024 |
3.0.7 | 99 | 12/6/2024 |
3.0.6 | 98 | 12/6/2024 |
3.0.5 | 93 | 12/6/2024 |
3.0.4 | 99 | 12/6/2024 |
3.0.3 | 89 | 12/5/2024 |
3.0.2 | 92 | 12/5/2024 |
3.0.1 | 92 | 12/4/2024 |