The function maps words to categories.
