check_defined_terms
Analyze Estonian legal documents to map defined terms, count usage, list cross-references, and flag defined-but-unused or duplicate definitions for consistency checking.
Instructions
Structural map of a long Estonian legal document.
Extracts every term defined with (edaspidi «X»), counts how often each
is actually used, lists § / lõige / punkt / artikkel
cross-references, and flags defined-but-unused or doubly-defined terms —
the consistency errors that creep into long contracts and statutes.
Regex-based and PII-free (nothing is stored). Input cap is raised to
500,000 characters so a whole contract fits in one call; the echoed
text is truncated to a 2,000-character preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | A long Estonian legal document to map defined terms ('edaspidi «X»') and § / lõige / punkt cross-references. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| text | No | ||
| issues | No | ||
| defined_terms | No | ||
| cross_references | No | ||
| summary_estonian | No |