This implementation is for English words only. You'd have to make adjustments for it to work with other languages.
Comes from this Python cookbook recipe
See also the NYSIIS utility which is a similar algorithm.
Definition from Wikipedia
Soundex is a phonetic algorithm for indexing names by sound, as pronounced in English. The goal is for names with the same pronunciation to be encoded to the same representation so that they can be matched despite minor differences in spelling[1]. Soundex is the most widely known of all phonetic algorithms and is often used (incorrectly) as a synonym for "phonetic algorithm".
Utility Mill is another wonderful Blended Technologies project.
copyright, owned and operated by Blended Technologies LLC.