The function f(x) takes a word as input and applies a rule that maps the word to a related concept or category. The rule is based on the semantic meaning of the input word, rather than any literal or syntactic properties of the word.

