Add cross-document defined-term drift detector

↗ view on GitHub · Eli Ziff · 2026-07-28 · 1ed2fda0

termDriftReport composes what we already parse - definition-list bodies
(straight + typographic quotes), skeleton section labels - across a
deal stack: same term with divergent bodies (first difference located
and excerpted), terms used in a document that defines them nowhere
(imported uses), in-document duplicate definitions counted not dropped.
Normalization is conservative (glyphs + whitespace only, never
wording), so every divergence shown is a real wording difference.

Vetting: Contract Companion / Definely / Lexis term checkers are
single-document, in-Word, commercial; LexNLP extracts definitions but
does no cross-document consistency. The deal-stack drift lane is empty.
5/5 tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018bhP89cYSdEEjHNPnxacns
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents d010821f
Stats 2 files changed , +309
Part of Deterministic legal-text tools ("SLA audit organs")

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-1ed2fda0.md from inside the repo you want the change in.

⬇ Download capture-commit-1ed2fda0.md