Dict assigns the ID to word.