f(x) takes a word as input and returns the type of that word.

