The rule implemented by f(x) appears to be a simple letter replacement rule, where each letter in the input word is replaced by a letter three positions ahead of it in the alphabet, wrapping around to the beginning of the alphabet when necessary. For example, the input word "cat" becomes "etd", since the letter "c" becomes "e", "a" becomes "t", and "t" becomes "d".
