Normalize spacing, line endings, and empty lines.
Count words, clean up text, sort lists, and change case.