It seems that the function output is "undefined" for most of the inputs, except for one. Let's test it with the tenth input to get a better understanding of the function. Please provide the tenth input word.