f(x) takes a word as input and returns the category or type of the word. The function applies a simple rule that assigns a predefined label to each input word based on its meaning.

