a word-id converter