Rhetorify is a lightweight Python utility to parse Microsoft Word (.docx) files, extract highlighted or bolded citation passages (author–year patterns, URLs, academic keywords) along with any preceding context tags, and render each snippet as a clean, browser-viewable HTML card.
Features
- Heuristic detection of citations and context tags
- Retains Word styling: bold, underline, highlights, font size
Two render modes:
- render_html for batch export of HTML cards
- render_string for single-card preview
Simple CLI interface: just point at your .docx file
pip install python-docx
python rhetorify.py path/to/document.docx