Divide the words into 3 groups