Previous Up Next

5.2.16  Levensthein distance

The levenshtein command computes the Levenshtein distance between two words, which is the minimum number of single-character edits (insertions, deletions or substitutions) required to change one word into the other.

Example

levenshtein("kitten","sitting")
     
3           

Previous Up Next