What are ‘machine readable laws’?

I’m currently working for the Government of New South Wales where I do a tech design job that I’m fairly certain has no name.

Thanks to a vision of our Digital Gov Exec Director Pia, and the buy-in of our lab director Marina Chiovetti, part of that job now includes an experimental project to create rules (that includes Legislation, Policies, and Regulation) that are machine readable.

Why do this?

How things work now

How we want things to work

The problem this fixes

  • Could be wrong
  • Needs to be kept up-to-date manually
  • Can only be used by systems the architecture or policy allow

This means that at any time there are systems, both in government and out, that are incorrect or out of date, even though they’re based on rules that are:

  • Public property (thanks to the Government Information (Public Access) Act 2009)
  • Could technically be made machine readable

The vision

The case for NGOs

If we make rules in to machine readable, logic based, and publicly accessible data and APIs, NGOs can give better help to people.

The case for compliance

For example:

Let’s say there’s a law that says how much annual leave somebody is entitled to (there is) and that it depends on the industry (it does) and is a little complicated (it’s very complicated). Every time somebody builds those rules in to a workforce management system, they might get it wrong. There could be thousands of versions of those rules, all disconnected from each other, all potentially wrong, and probably all closed-source (hidden).

Then the Government changes the rule. Instead of 4 weeks a year, it’s 5. Every single place that the rules were re-written as a calculation needs to be changed, even the ones that used to be right.

If we make a machine-readable version of that legislation, all those external services can point at it, so they not only get proper answers, but also use new rules the minute they’re updated. Automatic compliance!

What to expect from us in the coming weeks

The best way to keep up to date is to follow the GitHub repo at https://github.com/digitalnsw/openfisca-nsw or to follow our blog on digital.nsw.gov.au which we will no doubt overflow with our work, or just follow my medium!

Special mentions: None of this would have been possible without Brenda Wallace and Hamish Fraser from New Zealand’s Service Innovation Lab. If it wasn’t for Pia this wouldn’t be an idea in NSW, if it wasn’t for Marina it wouldn’t be an actual project.

RegTech Product guy. Currently NSW Government. Prev: UK Gov, Jaguar Land Rover, Apple & more stuff. Been around the block. Ex digi lecturer. Designers can code!

RegTech Product guy. Currently NSW Government. Prev: UK Gov, Jaguar Land Rover, Apple & more stuff. Been around the block. Ex digi lecturer. Designers can code!