LexDye's picture
Upload 27 files
425fd55 verified
|
Raw History Blame Contribute Delete
11.2 kB
metadata
license: cc-by-4.0
language:
  - en
pretty_name: 'LexDye Defined-Terms Benchmark: 121-Page MSA (November 2026)'
size_categories:
  - n<1K
task_categories:
  - text-classification
annotations_creators:
  - expert-generated
source_datasets:
  - original
multilinguality:
  - monolingual
tags:
  - legal
  - legal-ai
  - contracts
  - contract-review
  - defined-terms
  - benchmark
  - evaluation
  - llm-evaluation
  - agents
configs:
  - config_name: answer_key
    default: true
    data_files:
      - split: test
        path: msa-2026-11/answer-key.csv
  - config_name: tricky_but_correct
    data_files:
      - split: test
        path: msa-2026-11/tricky-but-correct.csv
  - config_name: results_by_item
    data_files:
      - split: test
        path: msa-2026-11/results/item-results.csv
  - config_name: results_summary
    data_files:
      - split: test
        path: msa-2026-11/results/summary.csv

AI agents miss ~1 in 4 defined-term errors unless told exactly what to check

An open benchmark for AI contract review: a 121-page agreement, 25 planted defined-term errors, and a machine-readable answer key. Run your own model and score it in one command.

Published by LexDye, Inc. · GitHub · Write-up · Item-by-item answer key · lexdye.com

Defined-term errors found, out of 25: chat AI alone 15, AI agent "review before signing" 18, AI agent "check the defined terms" 19, AI agent with a detailed prompt 25, LexDye alone 25, any AI with LexDye's report 25

Results

Same agreement for every run. Only defined-term errors were scored.

Reviewer LexDye report given? Prompt Run date Errors found
A leading chat AI No A defined-terms audit of the agreement Nov 12, 2026 15 / 25
AI agent No "Review myAgreement.docx before signing and flag any issues." Nov 19, 2026 18 / 25
AI agent No "Check the defined terms in myAgreement.docx." Nov 19, 2026 19 / 25
AI agent No A detailed prompt listing every check LexDye runs Nov 19, 2026 25 / 25
LexDye Definition Tracker alone (is the report) None. LexDye runs the same checks every time. Nov 2026 25 / 25
Chat AI or AI agent with LexDye's report Yes The instructions in LexDye's report Nov 2026 25 / 25

What this shows

  • The prompt decides the score. The same agent, on the same agreement, scored 18, 19, or 25 depending only on what it was asked.
  • Everyday prompts skip whole checks. With "check the defined terms," the agent never looked for lower-case uses of defined terms. With "review before signing," it skipped unused terms, identical duplicates, and use before definition.
  • False findings. The chat AI reported five properly defined terms as undefined and rated two of them "High" risk. None of the agent runs called a defined term undefined.
  • Every miss was on LexDye's lists. Given LexDye's report, every AI found 25 of 25.

The AI models are deliberately not named. The point is the prompt and the method, not a model ranking.

Dataset structure

The agreement itself is a Word file (msa-2026-11/agreement.docx). The tables below are what the Dataset Viewer shows.

Config File Rows What it is
answer_key (default) msa-2026-11/answer-key.csv 31 Every planted error (25 scored, 6 not scored)
tricky_but_correct msa-2026-11/tricky-but-correct.csv 12 Items that look wrong but are correct. Flagging one is a false positive.
results_by_item msa-2026-11/results/item-results.csv 25 1 or 0 per scored error for each of the six runs
results_summary msa-2026-11/results/summary.csv 6 One row per run: prompt, date, score, false "undefined" claims

answer_key fields: id (E1 to E31), scored (yes or no), category (slug, see below), error_type, location (clause or schedule), approx_page, text (quoted passage), note (what is wrong and the fix), not_scored_reason.

Other files: answer-key.json (same key plus the tricky-but-correct items, used by the scorer), prompts/ (the prompt for each run), submissions/ (each run in the submission format, plus TEMPLATE.json), score.py (scorer, Python 3 standard library only).

The 25 scored errors

Category Count Example
lower_case_use: lower-case use of a defined term 5 "change control procedure" for Change Control Procedure
variant_or_misspelling: misspelled or variant form 5 "Key Personel", "Service-Level Credit"
defined_not_used: defined but never used 4 "Work Product"
undefined_term: capitalized term never defined 3 "Remediation Plan"
duplicate_conflicting: defined twice, conflicting 3 "Change of Control" at more than 50% and at 30%
duplicate_identical: defined twice, identically 2 "Security Incident"
schedule_term_outside_schedule: schedule-only term used in the main body 2 "RTO"
used_before_defined: used before its definition 1 "Innovation Fund"

Not scored (6): two straight-quote definitions (quotation style), three glossary entries that point to the wrong clause (cross-references), and E14 ("Service Integrator"), which was dropped from scoring after drafting. The agreement really does leave "Service Integrator" undefined, so a reviewer that flags it is correct, but the item counts for no one.

Run and score your own model

from huggingface_hub import snapshot_download
path = snapshot_download("LexDye/definition-benchmark", repo_type="dataset")
print(path)  # agreement: msa-2026-11/agreement.docx

Or load the answer key as a table:

from datasets import load_dataset
key = load_dataset("LexDye/definition-benchmark", "answer_key", split="test")
  1. Give msa-2026-11/agreement.docx to your model, agent, or tool. Rename it if you like (our runs used myAgreement.docx). Use whatever prompt you want to test.
  2. Match each finding to an error ID in answer-key.csv. Count a finding only if it identifies the term and the problem at the right place.
  3. Copy submissions/TEMPLATE.json and fill it in (found is the list of error IDs your run caught).
  4. Score it from the downloaded folder:
python3 score.py submissions/my-run.json   # score, per-category breakdown, misses
python3 score.py submissions/*.json        # leaderboard of all runs

A CSV with columns id,found (1 or 0) works too: python3 score.py my-run.csv.

To add your result, open a pull request with your JSON file in submissions/, here or on GitHub. Please include the exact prompt, model, and date so anyone can reproduce it.

Scoring rules: score only defined-term errors. Don't credit quotation style, cross-references, meaning, or commercial points, even when a reviewer raises them correctly. Results vary by run, prompt, and model, so report how many runs you did.

Method

  • Scope. Only defined-term errors. Commercial points, meaning, drafting quality, quotation style, and section cross-references were not scored.
  • The agreement. Fictional IT and business process outsourcing MSA between a bank and a technology supplier: about 121 pages, a Clause 1.1 glossary, 12 schedules, 372 definitions. The exact file every reviewer received.
  • Chat AI. A leading general-purpose chat AI received the agreement and was asked for a defined-terms audit. It worked as a chat assistant, without running its own scripts.
  • AI agent. An AI agent that runs on the user's own computer and can read files and write its own scripts. Each run started in a fresh session, in a folder that held only the agreement. Only the prompt changed between runs. A full review took about five minutes.
  • LexDye alone. The LexDye Definition Tracker (browser version, beta, November 2026) opened the Word file directly. The result is the same on every run.
  • AI with LexDye. The AI received the agreement and LexDye's report, which includes line-numbered text and instructions to triage every entry. The agent run used the LexDye command-line version (beta) and triaged all 454 report entries.
  • Scoring. Item by item against the answer key written when the errors were planted. Rescored to the definitions-only scope (25 errors) on November 19, 2026.

Limitations. One fictional agreement and a small number of runs. Planted errors are clean slips; real negotiated drafts are messier. The AI reviewers also found real issues outside this test's scope, which is the judgment work LexDye leaves to the AI and the lawyer. LexDye errs on the side of flagging for review, so its report also lists entries that turn out to be fine; the AI's job is to sort them. Two prompt files give summarized rather than verbatim wording.

About LexDye

The LexDye Definition Tracker is a completeness layer for AI review of defined terms. It runs on your own computer, offline, and lists every defined term that is undefined, duplicated, unused, used before its definition, or used in lower case. Your AI then triages one report.

LexDye finds them. Your AI reviews them. You don't have to.

License

  • Benchmark materials (agreement, answer key, results, prompts, and documentation): Creative Commons Attribution 4.0 International (CC BY 4.0). Please credit "LexDye, Inc." and link to this dataset or the GitHub repository.
  • score.py: MIT License.
  • LexDye software and LexDye reports are not included and are not covered by these licenses. This dataset contains no LexDye software and no LexDye report output (no report text, report entries, or AI instructions); only scores and item-by-item hits are given. The LexDye Definition Tracker, its command-line version, its reports, and its AI instructions are proprietary to LexDye, Inc., licensed only under the LexDye Terms of Use, and are not open source. Nothing in this dataset grants any right in LexDye software or reports.

The agreement is entirely fictional. Any resemblance to real companies or people is coincidental. Nothing here is legal advice.

Citation

@misc{lexdye2026definedterms,
  title        = {LexDye Defined-Terms Benchmark: 121-Page MSA (November 2026)},
  author       = {{LexDye, Inc.}},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/LexDye/definition-benchmark}},
  note         = {Also at https://github.com/LexDye/definition-benchmark}
}