DamerauLevenshteinDistance

WMA link


DamerauLevenshteinDistance[a, b]

returns the Damerau-Levenshtein distance of a and b, which is defined as the minimum number of
transpositions, insertions, deletions and substitutions needed to transform one into the other.
In contrast to EditDistance, DamerauLevenshteinDistance counts transposition of adjacent items (e.g.
“ab” into “ba”) as one operation of change.

The IgnoreCase option makes DamerauLevenshteinDistance ignore the case of letters:

DamerauLevenshteinDistance also works on lists:

EditDistance