The function f(x) takes a word as input and returns a category or class that the input word belongs to.

