The function f(x) takes a word as input and applies a rule that assigns a label to the word based on its semantic meaning. The labels are drawn from a predefined set and are not necessarily unique to each word.

