The legal constructs that cannot be faithfully expressed with the engine's operations, and how they are handled.
The engine’s operation set is deliberately small: arithmetic, comparison, conditional logic, date operations. Dutch law regularly uses constructs that fall outside this set. When a legal construct cannot be faithfully expressed with available operations, it is an untranslatable.
The term comes from translation theory. The law-generate process is translation, from legal Dutch to machine-readable YAML, and some things do not cross that boundary.
A construct is untranslatable when the engine cannot express it without approximation. Examples:
The key distinction: the law is clear about what it means, but the engine’s formal language cannot yet express it.
Each article’s machine_readable section can include an untranslatables array:
Articles with untranslatables can still have partial execution logic for the parts that are expressible. The untranslatable annotation marks what is missing, not what is wrong.
The accepted field indicates whether a human has reviewed and acknowledged the gap. This controls per-article runtime behavior.
When the engine encounters articles with untranslatables, behavior depends on the --untranslatable flag:
| Mode | Behavior | Use case |
|---|---|---|
error (default) | Hard error on unaccepted untranslatables | CI, production |
propagate | Execute partial logic, taint outputs with UNTRANSLATABLE | Audit, analysis |
warn | Execute partial logic, log warning in trace | Development |
ignore | Execute partial logic silently for accepted: true entries; unaccepted entries still error | Human-verified gaps |
The default is fail-fast. Tolerating gaps requires explicit opt-in.
In propagate mode, UNTRANSLATABLE behaves like NaN in floating point: any operation involving an untranslatable input produces an untranslatable output. The trace shows exactly which outputs are tainted and which are trustworthy.
Untranslatables tell us which operations to add next. When enough laws need rounding, we add ROUND. When enough laws need table lookups, we add TABLE. The corpus drives the engine roadmap.
An exploration by Bureau Architectuur of the Dutch Ministry of the Interior into the possibilities of transparent, executable legislation.
Bureau Architectuur
Ministry of the Interior and Kingdom Relations