mext analysis Reading the arguments of public documents with Matcha and default logic
## What is mext analysis?

**mext analysis** reads the argument of a document in three steps:

1. **Transcription (Matcha analysis)** — The claims, requirements, grounds and exceptions of the document are transcribed into [Matcha](https://www.elecode.jp/matcha), a language for legal reasoning, and Matcha-D, an unofficial extension of it. Each line notes which part of the original it comes from.
2. **Computation and verification (MEXT)** — The transcription is read as a (Reiter) default theory, and [mext](https://github.com/JRF-2018/mext) computes its extensions — the sets of conclusions that can hold together consistently. The results can also be checked in Lean.
3. **Report** — The report states whether the conclusions follow formally, whether they are substantively persuasive, and what they depend on.

The transcription and the evaluations are judgments made by an AI, but every judgment is recorded with its reasons (in the transcription notes and the `[ai]` section of the `.mext` file). The computation itself is deterministic. So readers can trace for themselves what is mechanically checked and what is the AI's reading.

This blog publishes roughly one mext analysis a week, taking publicly available documents — statutes, court opinions, guidelines, terms of service, editorials and so on — as subjects, including ones mext is good at and ones it is not. Each article includes the report together with the Matcha transcription, the MEXT file, the sensitivity analysis and other files as they were produced.

The English blog shows only articles written in English.

### Try it yourself

mext is released under the MIT License. Give a document file to an AI that can run code, such as [Claude Code](https://claude.com/claude-code), and ask:

> Using https://github.com/JRF-2018/mext, please do a mext analysis of this document.

Comments and corrections are welcome on [GitHub Issues](https://github.com/JRF-2018/mext-examples/issues).

Latest analyses

No. 3 Law & Cases ★

Tinker v. Des Moines: one normative choice and a burden of proof

The landmark student-speech opinion rests on one contested normative choice: that undifferentiated fear of disturbance is not enough. Because it puts the burden of justification on the State, the conclusion survives doubts about the Court's own reading of the record.

Document: Tinker v. Des Moines Independent Community School District, 393 U.S. 503 (1969)

Recommended

No. 3 Law & Cases ★

Tinker v. Des Moines: one normative choice and a burden of proof

The landmark student-speech opinion rests on one contested normative choice: that undifferentiated fear of disturbance is not enough. Because it puts the burden of justification on the State, the conclusion survives doubts about the Court's own reading of the record.

Document: Tinker v. Des Moines Independent Community School District, 393 U.S. 503 (1969)