The function f(x) takes a word as input and applies a rule that transforms the input word in some way.

