The function f(x) takes a word as input and looks up its category or label in a dictionary or database.
