The function f(x) applies a rule that takes a word as input and returns a more general category or label that the word belongs to.

