Add a check to handle input text with fewer than 25 words.