TheFuzz.Similarity.DamerauLevenshtein (TheFuzz v0.6.0)

View Source

This module contains functions to calculate the Damerau-Levenshtein distance between given strings.

Summary

Functions

Calculates the Damerau-Levenshtein distance between two given strings.

Functions

compare(a, b)

Calculates the Damerau-Levenshtein distance between two given strings.

examples

iex> TheFuzz.Similarity.DamerauLevenshtein.compare("saturday", "sunday")
3
iex> TheFuzz.Similarity.DamerauLevenshtein.compare("fuor", "four")
1