The function takes a word as input and applies a simple substitution rule to it, replacing certain keywords with a single word.

