NormEngineer
Menu
Rules as codeSupported

L4

Legalese's typed language for law: regulative rules (PARTY … MUST) behind typechecked decisions, each with a reference to its provision.

What it is

L4 started at the Centre for Computational Law of Singapore Management University and is developed by Legalese in Singapore, under Apache-2.0. It combines typed decisions (GIVEN … GIVETH … MEANS) with regulative rules that say which party must, may or must not do what, by when. Its toolchain typechecks and verifies programs.

Good for

  • Rules as code with types: decisions you can evaluate and test.
  • Deadlines in days that the program states as WITHIN.
  • Teams that want the law as a program they can check with a compiler.

What an extraction gives you

Each norm is a deontic decision (PARTY … MUST, MAY or SHANT) behind a boolean decision that says when it applies, with @ref lines to the CELEX number and the ELI of its provision; measured thresholds become NUMBER decisions.

The download

One file, l4.l4: L4 source code. The disclaimer and the fidelity summary are -- comments at the top of the file.

How norms appear

The graph and the file name each part of a norm in L4's own terms.

How a norm's parts are named in L4
In the actIn L4
A party the norm addressesParty
ObligationMUST
PermissionMAY
ProhibitionSHANT
What the party doesAction
ConditionGIVEN (IF)
ExceptionUNLESS
Precedence over another normUNLESS (applies)
L4 excerptDigital Operational Resilience Act (DORA, CELEX 32022R2554), Art. 19(1). From NormEngineer's test samples; their source quotes are abridged.
-- Whether dora.art19.1 applies.
@ref CELEX 32022R2554, Art. 19(1)
@ref url http://data.europa.eu/eli/reg/2022/2554/art_19/par_1/oj
GIVEN `an ICT-related incident is classified as major` IS A BOOLEAN @desc Art. 19(1): "Financial entities shall report major ICT-related incidents"
GIVETH A BOOLEAN
`dora.art19.1 applies` MEANS
  `an ICT-related incident is classified as major`

-- Art. 19(1): "Financial entities shall report major ICT-related incidents to the relevant competent authority"
@ref CELEX 32022R2554, Art. 19(1)
@ref url http://data.europa.eu/eli/reg/2022/2554/art_19/par_1/oj
GIVEN `an ICT-related incident is classified as major` IS A BOOLEAN @desc Art. 19(1): "Financial entities shall report major ICT-related incidents"
GIVETH A DEONTIC Party Action
`dora.art19.1: obligation of Financial entity` MEANS
  IF `dora.art19.1 applies` `an ICT-related incident is classified as major`
  THEN PARTY `Financial entity` MUST `Art. 19(1): report the incident to the relevant competent authority` `Financial entity` `Relevant competent authority`
  ELSE FULFILLED

On the extraction's page

Graph
The norms as a 2D or 3D graph in L4's vocabulary, each traced to its source quote.
Source
The L4 file with its validation result, to read and download.
Fidelity
How fully each norm is expressed in L4, and which checks ran.

How it is checked

  • Every source quote is verified against the act.
  • NormEngineer's structural validator checks the L4 file of every extraction.
  • The official toolchain, l4 check and l4 verify, does not check each extraction. NormEngineer's tests check sample output written the same way with it; check your download with it to confirm.

The Fidelity tab of each extraction says which checks ran on it. An extraction is AI-generated and not legal advice.

How fully it expresses a norm

Obligations, permissions and prohibitions with their party, applicability with conditions, exceptions and precedence, and deadlines in days are L4's own.

What L4 does not express fully

  • Partly expressed

    What the action is about is stated in a comment only.

    When the norm names what its action is about.

  • Partly expressed

    The deadline, or part of it, is in a comment or prose and is not computed.

    When a deadline is not a number of days, or recurs.

  • Partly expressed

    A precedence over another norm is left out because it would make the rules circular.

    Rarely: when two norms would each take precedence over the other.

Each extraction's fidelity report counts the norms each of these applies to.