generalizing the word list