The rule applied by the function is unclear as it returns "undefined" for all input words.

