Create a four-character Soundex code for an English surname.
Soundex keeps the first letter, maps consonants to digit classes, removes adjacent duplicates and vowels as separators, and pads or truncates the code to four characters. The mapping is deliberately coarse for English surname indexing.
Robert Rupert
Robert: R163 Rupert: R163
Genealogy searches, census indexes, and approximate surname lookups use Soundex.