Replace all hardcoded lists and text matching with proper structural HTML parsing:
- Remove hardcoded keyword filter list (the, for, if, else, etc.)
- Remove hardcoded "common instruction" lists (add, sub, mul, div)
- Remove exact text matching for descriptions
- Remove useless conditional lxml import that did nothing
New approach uses document structure exclusively:
- Identifies instruction sections by ID pattern and documentation rubrics
- Extracts BOTH short descriptions (between instruction name and Syntax rubric)
and detailed descriptions (after Description rubric)
- Short descriptions used for tooltips (e.g., "Add two values.")
- Detailed descriptions used for HTML content
- Prioritizes sections by hierarchy (integer-arithmetic > floating-point > etc.)
- Automatically adapts to documentation format changes
Result: Cleaner, more maintainable code that properly captures both the
concise tooltip text and detailed descriptions without any hardcoded patterns.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>