levenshtein is not only useful on words, and there are improved soundex ideas about. You will have a lot less sounds codes than words Smiley I'd write more but on phone at the minute.