Edits::Levenshtein
Levenshtein edit distance.
Determines distance between two string by counting edits, identifying:
- Insertion
- Deletion
- Substitution
Class methods
Calculate the Levenshtein (edit) distance of two sequences, bounded by a maximum value.
Levenshtein.distance("cloud", "crayon") # => 5
Levenshtein.distance("cloud", "crayon", 2) # => 2