The function takes a word as input and applies a rule that returns a modified version of the word.
