The following phonetics can be used from within matchers that support phonetics.
cologne phonetic uses the
Cologne phonetic algorithm,
which is similar to the Soundex phonetic algorithm, but specialized for the
dynamicCologneLevenshtein is an extension of the
cologne phonetic, which
introduces a length dependent
Depending on your use case, the issue with the
cologne phonetic might be that
it considers short texts as equal even if a human would not consider them equal.
Liam produce the same code (
56), but do not sound similar.
In fact their Levenshtein distance is 3, meaning three characters are wrong and
only one is correct.
dynamicCologneLevenshtein prevents any changes for when the shortest of
the two texts has at maximum three characters, allows a distance of 1 for four
to six letter words, 2 for seven to nine character words, and 3 for everything
with at least ten characters.
equal phonetic does not allow any phonetic changes at all.
metaphone phonetic uses the
which is similar to the Soundex phonetic algorithm, but with more accurate
noDiacritOrSpecials phonetic removes all
diacritics, leaving only the basic
letter. Also it replaces, where possible, other special letters, e.g. the German
ß with a phonetic similar letter. It also detects and decodes unicodes,
soundex phonetic uses the
Soundex algorithm, a relatively simple
way of producing same outputs for similar sounding words.