The function appears to apply this rule uniformly across all input words, without any obvious corruption or exceptions. However, it is possible that there may be certain input words that do not follow this rule, and further testing may be necessary to identify any such cases.
Now, if you would like to test additional words or explore the function's behavior further, you can call the function on multiple inputs at a time by running PYTHON(./temp3/function.py "word1" "word2" "word3"...). Replace "word1", "word2", "word3",... with the words you want to test.