docs: def _normalize_words(words, acronyms):
      """Normalize case of each word to PascalCase."""
      for i, _ in enumerate(words):
          # if detect_acronyms:
          if words[i].upper() in acronyms:
              # Convert known acronyms to upper-case.
              words[i] = words[i].upper()
          else:
              # Fallback behavior: Preserve case on upper-case words.
              if not words[i].isupper():
                  words[i] = words[i].capitalize()
      return words