add a new rule and a new word