Method LevenshteinDistanceTo
LevenshteinDistanceTo(String, String)
Returns an integer representing the Levenshtein distance (https://en.wikipedia.org/wiki/Levenshtein_distance) between two strings. Often used to detect typos or misspellings by checking for small distances.
Declaration
public static int LevenshteinDistanceTo(this string first, string second)
Parameters
Type | Name | Description |
---|---|---|
System.String | first | The first string to compare. |
System.String | second | The second string to compare. |
Returns
Type | Description |
---|---|
System.Int32 | A integer representing the Levenshtein distance between |