Divide the words into three groups