You want to generate Soundex hashes of surnames, for doing "sounds-like" indexing databases, or retrieving information from the US Census records and similar pre-existing databases.
Soundex is a string hash historically used by the US Census for indexing surnames by a function of what they "sound" like, rather than their precise spelling. Further general information on Soundex is available at http://www.archives.gov/research_room/genealogy/census/soundex.html.
Use the soundex.scm library, which can be installed? via a .plt file available from http://www.neilvandyke.org/soundex-scm/.
Specify the PLT module form of soundex.scm with like:
(require (lib"soundex.ss""soundex"))
(Most non-PLT Scheme implementations can use the load procedure or other facility to load the file soundex.scm.)
Soundex keys are represented as four-character strings: