Levenshtein v0.2.2 Levenshtein View Source
For what is Levenshtein distance see:
Link to this section Summary
Functions
Calculates Levenshtein distance between two words
Calculates Levenshtein distance between two words
Link to this section Functions
Link to this function
distance(a, b)
View Source
distance(a, b)
View Source
distance(binary(), binary()) :: non_neg_integer()
distance(binary(), binary()) :: non_neg_integer()
Calculates Levenshtein distance between two words
Returns a non negative integer.
Example:
iex> Levenshtein.distance("abb", "abba")
1
Link to this function
distance_cached(a, b)
View Source
distance_cached(a, b)
View Source
distance_cached(binary(), binary()) :: non_neg_integer()
distance_cached(binary(), binary()) :: non_neg_integer()
Calculates Levenshtein distance between two words
Returns a non negative integer.
Example:
iex> Levenshtein.distance_cached("abb", "abba")
1