An introduction to RegelRecht and its goal of making Dutch law executable as machine-readable files.
RegelRecht is an open-source project about writing Dutch legislation down in a form a computer can execute, and publishing it so that anyone can check how a decision was reached. It is an exploration by the Nederlandse Digitale Dienst, not a system in production: no government agency takes decisions with it today.
What exists and runs is the groundwork. An execution engine in Rust evaluates ruleworks, natively on a server and as WebAssembly in the browser. The corpus holds a curated set of regulations with machine-readable logic and scenarios that test it, among them the Wet op de zorgtoeslag and the Awb. The harvester converts legislation from the national registers (BWB and CVDR) into that format. An editor lets people read and work on the laws, and the demo runs a larger corpus of several dozen laws end to end in the browser. What is still being explored is listed on the roadmap: how a rulework gets adopted and what legal status it has, attested execution, publication infrastructure, and executing a decision across organizations.
Dutch law is published as natural language text. When government agencies need to implement legislation in IT systems, they manually translate legal rules into software. Each agency writes its own interpretation of the same law. Nobody can check whether those implementations match what Parliament intended. Citizens cannot see how decisions about them are made. There is no way to test whether the software follows the law.
RegelRecht encodes each law once in a structured format and runs it through a single execution engine. A rulework is an interpretation of the law, not the law itself: where the two conflict, the statute prevails and the rulework has to be corrected (Rules as Executed, section 4.2). What the format adds is that the interpretation is written down where anyone can read it and run it, instead of staying buried in an agency’s software. The aim is that one engine runs it the same way everywhere: in the editor for lawmakers, in the browser for citizens, and, if an agency adopts it, in government backends for official decisions. The architecture overview shows how the corpus, the engine and the tools around them fit together.
Article 2 of the Wet op de zorgtoeslag says that an insured person is entitled to a healthcare allowance equal to the difference between the standard premium and the normative premium. In RegelRecht that article sits in a YAML file next to its original text, with a machine_readable section that states the calculation: derive the normative premium from the income as the Awir defines it, take the standard premium that a ministerial regulation sets each year, subtract the one from the other, and never go below zero.
Ask the engine whether a given person qualifies on 1 January 2025 and it loads the zorgtoeslag law, follows its references into the Awir, the Zorgverzekeringswet and the ministerial regulation, and returns the amount together with a trace naming every article it applied. How RegelRecht Works walks through that file and that execution step by step.
Developers building government services that implement Dutch law. Use the engine to compute legal outcomes instead of hand-coding rules.
Legal experts validating whether machine-readable interpretations match the law. The execution-first method uses concrete test cases from parliamentary documents.
Policy makers exploring how legislation works in practice. Run “what if” scenarios in the browser to see how changing a parameter affects outcomes across multiple laws.
An exploration into transparent, executable legislation, and one of the three projects in the starting selection of the Nederlandse Digitale Dienst.
GitHub repository
How it works
Stay informed
Roadmap (Dutch)
Documentation
Research
Nederlandse Digitale Dienst
Ministry of Economic Affairs and Climate Policy