Phonetic algorithm
Appearance
Soundex and Metaphone are algorithms for indexing words and phrases by their sound, when pronounced in the English language.
They are necessarily complex algorithms with many rules and exceptions, because English spelling and pronunciation is complex, complicated by historical changes in pronunciation and words borrowed from many languages.