The rule implemented by the function f(x) is to duplicate each letter of the input word.

