Add a law-abiding version of Damerau-Levenshtein distance
lambda-fairy opened this issue · comments
Chris Wong commented
There are two versions of the Damerau-Levenshtein distance. It looks like strsim
only provides the first version, which is not a formal metric. It would be nice if strsim
provides the second version as well, as this version does have the metric property.
As for why I need this: I'd like to use this library with a BK-tree, which needs a metric to work.
Danny Guo commented
Cool! I'll take a look at what implementing the second version will take once I have some more free time.