Refactor `get_capitalized_words` and `get_forbidden_words` to accept pre-extracted word lists instead of raw content strings, eliminating duplicate calls to `get_words` and `get_sentences`. Move word extraction into the caller `analyze` to compute word count once and reuse the list across all analysis steps, reducing memory allocations and freeing overhead.