pho_h(str)
soundex(str)
str
,
containing its phonetic encoding.pho_h
by soundex
is a widespread algorithm for English names. This implementation
can only handle common characters. Both algorithms strip off
non-alphabetical characters, with the exception that numbers are left
unchanged by pho_h
.
The C code for soundex
was taken from PostgreSQL 8.3.6.jarowinkler
and levenshteinSim
for string comparison.