Algorithm

The algorithm returns:

Special Hook Methods

The Damerau-Levenshtein implementation has an additional hook method called distAugment() that takes information about what type of edit this is and the two characters.

The default is to do nothing, but subclasses can override this (as is the case for NormalizedTypoDifference)