Generate a soundex index for a word.