Skip to main navigation Skip to search Skip to main content

Representing legislative rules as code: reducing the problems of ‘scaling up’

Andrew Mowbray, Philip Chung, Graham Greenleaf*

*Corresponding author for this work

Research output: Contribution to journal › Comment/opinion

Abstract

We propose an approach to analysing the nature of existing legal rules, particularly legislative rules, that regards legislation as fundamentally a set of related propositions. We propose a method for representing these rules, using a coding language developed for the project that uses a quasi-natural language representation. It enables the interpreter program for that coding language to process these rules so as to produce ‘consultations’ to determine the values of goals which the legislation is capable of determining, with dialogues and explanations generated ‘on the fly’.

Progress that has been made in automating this coding process to create rules in that coding language directly from existing legislation, using a pre-processor program developed for the project. This can also be described as ‘scaling up’ the production of ‘Rules as Code’ or ‘Law as Code’. If successfully developed further this has potential to make a significant contribution toward realising the practical potential of Rules as Code.

We conclude there is now evidence that these processes can be generalised (‘scaled up’) to deal with the conversion or production of large bodies of legislation, and that this has considerable value. The pre-processor software is evolving rapidly, in the variety of structural forms of legislation that it can convert into the coding language, and this work will continue.

Based on this experience, we also demonstrate how the drafting of legislation could be changed so that appropriately drafted legislation is directly readable and understandable by humans and also directly usable by machines. To be effective, laws drafted in this way will need to be simultaneously authoritative legislative rules and code.

Original languageEnglish
Article number105772
Pages (from-to)1-12
Number of pages12
JournalComputer Law and Security Review
Volume48
DOIs
Publication statusPublished - Apr 2023
Externally publishedYes

Fingerprint

Dive into the research topics of 'Representing legislative rules as code: reducing the problems of ‘scaling up’'. Together they form a unique fingerprint.

Cite this