The function f(x) seems to apply a rule to the input words, with a potential relationship to the length of the word. Shorter words tend to have different outputs than longer words.

