The function applies its rule to all inputs, but it does not hold for words that are not names, as those inputs are returned unchanged.

I hope this helps! Do you have any other inputs you would like me to test?