News for hackers. Stuff that matters.
Re:Legalese – Computational Law by nicoburns on Monday May 17, 2021 @05:48PM (#27188850)
It seems like there could be a lot of value in disentangling the web: repealing the original laws and replacing them with a single law that covers everything in one place. Legal refactoring if you like.

I can only imagine that would be a humungous task. And presumably the existence of case law makes it much harder still.

It would be quite interesting to think about what the legal equivalent of unit tests would look like. Presumably a large collections of sets of circumstances and desired legal outcomes. It seems to me that this might be an interesting output of legislatures in addition to statutes (although whether they would/should be controlled by the legisalture or judiciary is also quite an interesting question, as our existing system seems to rely quite heavily on the judiciary being able reinterpret laws in ways the original legislators most likely didn't intend)

Re:Legalese – Computational Law by jacques_chester on Monday May 17, 2021 @06:10PM (#27189032)
> repealing the original laws and replacing them with a single law that covers everything in one place. Legal refactoring if you like. I can only imagine that would be a humungous task. And presumably the existence of case law makes it much harder still.

These are called Reform Acts. They are indeed humungous tasks, rarely undertaken. Where I studied law, in the Northern Territory, a Law of Property Act was passed in 2000 and repealed Acts and overruled case law going back to the 12th century in Britain. It was indeed a massive effort.

For some areas of law the Act is also a Code (the Act explicitly says that it is the sole, whole body of the relevant law). This is mostly done for criminal law.

Codes are rare in common law jurisdictions like the US, UK, Australia, Canada, New Zealand etc. Codes are much more common in civil law countries like France, where the ideal is for all of law to be centralised and rationalised. Both systems require endless tinkering, debate and reinterpretation, which is why I am skeptical of universalist missions to convert the whole of the law into a system of formal symbols.

Re:Legalese – Computational Law by ska on Monday May 17, 2021 @07:06PM (#27189471)
Confusingly Canada has a mix of both civil and common law, at least in Quebec.
Re:Legalese – Computational Law by a3camero on Monday May 17, 2021 @07:14PM (#27189518)
There are other codes in Canada too, even outside of Quebec, like the Criminal Code of Canada.
Re:Legalese – Computational Law by ska on Monday May 17, 2021 @07:19PM (#27189552)
Right, but that in itself doesn't make it a civil system.

If I recall correctly Quebec separates by private and "public" law, so if you get divorced or break up a company it's one system, if you steal from someone, the other.

Somehow it's all hybridized and works.

Re:Legalese – Computational Law by contravariant on Monday May 17, 2021 @07:34PM (#27189658)
The bottleneck is always going to be that legislators need to be able to understand and modify the law.

Although arguably stating law in natural language might not help much with that either.

Re:Legalese – Computational Law by jacques_chester on Monday May 17, 2021 @08:30PM (#27190006)
Legislators are not the sole source of law in common law countries. There is also case law.

Legislation is typically drafted in a structured way, with deliberate norms and forms. There are professional drafters who do exactly that on behalf of legislators, and a body of case law on the interpretation of legislation that guides their work.

Re:Legalese – Computational Law by mengwong on Tuesday May 18, 2021 @12:46AM (#27191342)
https://pythonforlaw.com/2020/09/27/mlang-compiled-python.ht...

> As Merigoux explained more fully on his blog, this project became possible because the French government open-sourced the code that they use to calculate residents’ taxes, which was written in a domain-specific language called M, but they didn’t release the compiler that would have been needed to actually run any code written in that language. MLang is a compiler for M code written by Merigoux, and it has two special features: it translates the tax calculation function to Python, and it enables formal verification of features of the tax calculation using an automatic theorem prover called Z3.

Re:Legalese – Computational Law by cbsmith on Monday May 17, 2021 @06:10PM (#27189030)
The idea that simpler laws won't get exploited is... Well, I get it, because that's how one operates in computer security, but the way the law works is necessarily quite different. It's not designed so much to make doing what is illegal impossible as it is to make it possible to prosecute those doing things that we'd like to discourage.
Re:Legalese – Computational Law by grenoire on Monday May 17, 2021 @06:22PM (#27189130)
There have been attempts by the French and Dutch governments to codify parts of tax law as a trial of sorts, check out M for one https://github.com/MLanguage/mlang

Nevertheless, such efforts cover minimal portions already very clearly defined and debated. As another commenter replied, reforms are rarely undertaken for various reasons. One great issue with tax law is also that whatever code you may write is not necessarily guaranteed to be 'better' (fairness, revenue collected, lack of loopholes and edge cases, completeness, correctness... pick your metric) simply because it's code. That's what I thought too; but no longer.