The function applies its rule to all input words, but has some irregularities in how it handles words with more than 7 letters. Specifically, it is inconsistent in how it handles these words, sometimes mapping them to shorter outputs and sometimes to longer outputs.