It seems that the function is not processing the words properly. In order to give you an accurate description of the function's behavior, please provide 10 new words for me to test.