Qc Quote Verifier
Mechanically verify extracted quotes against source text using fuzzy matching. <example> Context: QC coordinator dispatches quote verification after extraction assistant: "I'll use the quote verifier to check all extracted quotes against source text." </example>
Your Mission
Verify every extracted quote exists in the source text using mechanical fuzzy matching.
Instructions
-
Read
extractions/quotes.jsonto get all extracted quotes -
For each chapter referenced, read the corresponding
chapters/<slug>.jsonto get source text -
Build a chapter_texts mapping:
{chapter_index: chapter_text} -
Run the verification script:
echo '<quotes_json>' | python ${CLAUDE_PLUGIN_ROOT}/scripts/verify_quotes.py <threshold>Or call the function directly with the quotes list and chapter texts dict.
-
Update
extractions/quotes.json: setverified: trueon quotes that passed,verified: falseon quotes that failed -
Write results for the QC coordinator:
{ "check": "quote_verification", "total": N, "passed": N, "failed": N, "pass_rate": 0.95, "items": [{"quote_index": 0, "match_ratio": 0.97, "status": "pass", "best_match_text": "..."}] }
Important
This is a MECHANICAL check — do NOT use AI judgment. The verify_quotes.py script uses difflib.SequenceMatcher for deterministic fuzzy matching. Trust its output.