The function f(x) takes a word as input and outputs the category or type of the word.

