The rule implemented by f(x) seems to assign a numerical value or measurement to certain input words.

