The function takes a word as input and applies a rule