David Van Bruwaene · version 0.7.0
TESS parses English sentences with a Minimalist Grammar and composes, for each reading, an event-semantic logical form with two coordinates: what the sentence asserts and what it presupposes. A reading can then be evaluated, trivalently (true, false or undefined), in a finite model of a declared class.
$ tess parse "the lion relaxed"
the lion relaxed
1 reading
[1] E s_{336} (E s_{337} (((Agent(s_{336},the x_{224}[lion(x_{224})]) & (relax(s_{337}) & cause({s_{336}},s_{337}))) & ...
presupposes: nothing
- v0.5 (2004–2011) is the original system, written by hand. It is preserved unchanged on
mainat commit96c1464, packaged to build on a current compiler, with its own README. - v0.6 and later (2026) is this branch. It was developed with AI assistance, starting from
the 2011 code:
lib/tess.ml,lib/utilities.mland the grammar file grew out of v0.5's, and kept its lexicon format. The rest is new:- a recognizer that turns a string into complete derivations (v0.5's drivers did not survive);
- a presuppositional coordinate beside the at-issue one;
- plural types and an interpretation of plurality (v0.5's plural constructors had none);
- tense, modal and degree semantics;
- an evaluator over finite models.
Requires OCaml 5.0 or later and dune 3.0 or later. The only other library is str, from the
OCaml distribution.
dune builddune testdune exec tess -- parse "every lion signed the contract"tess parse --json prints machine-readable output; tess parse --derivation also prints the
derivation tree of the first complete parse.
| path | contents |
|---|---|
lib/tess.ml |
types, logical-form expressions, the composition rules and the printer |
lib/recognize.ml |
the Minimalist Grammar recognizer and its two-coordinate composition |
lib/eval.ml |
finite models, their well-formedness conditions, and the trivalent evaluator |
lib/derivation.ml |
derivations written and read as text, and replayed without search |
grammars/ |
the English fragment: the lexicon, null heads and open-class word lists |
bin/tess.ml |
the command-line program |
test/ |
checks on composition failure and plural composition, and the worked example from docs/MODELS.md |
docs/LF.md |
how to read the logical forms TESS prints |
docs/MODELS.md |
how to build a model and evaluate a reading in it |
Comments in the source cite decision numbers (D201 and so on) from the development log. The
log is not part of this release; the numbers only identify where an entry was introduced.
MIT. See LICENSE.