The function f(x) takes a word as input and returns the category of that word.

