Live data from Hacker News

Spanish legislation as a Git repo

github.com

91–100 of 246 posts

Re: Spanish legislation as a Git repo

#91

I built a pipeline that converts all Spanish state legislation into version-controlled Markdown. Each law is a file, each reform is a real git commit with the historical date. 8,642 laws, 27,866 commits. The idea: legislation is just patches on patches on patches. Git already solves this. Instead of reading "strike paragraph 3 and replace with...", you get an actual diff. The repo is the product. Browse any law, git…

Please! Can you make the same for Portugal? Laws here are a mess of reforms...

Re: Spanish legislation as a Git repo

#92

[flagged]

I think it was "okay" even before that law to be euthanized. However, the law adds a "a legal, systematic, balanced and guarantee response to a sustained demand of today’s society such as euthanasia". But yes, it seems it is included indeed: https://github.com/EnriqueLop/legalize-es/blob/master/spain/... (which seems to have been well written enough to not needing any changes [so far]) Very glad my country is so comp…

[flagged]

Re: Spanish legislation as a Git repo

#93

I'm surprised the world is not running a system where laws are formally encoded using some DSL that would allow making decision (guilty/not guilty) using formal logic. Perhaps there is not much interest from law making/enforcing parties for this either.

Have you actually tried reading a single law? If you have, have you tried to write just one article in formal logic?

Certain laws, like parts of tax law may be possible to turn into code, like percentages and deadlines, but even those often carry natural language conditions that can't be evaluated so easily. Seriously, try it.

Re: Spanish legislation as a Git repo

#94

I'm surprised the world is not running a system where laws are formally encoded using some DSL that would allow making decision (guilty/not guilty) using formal logic. Perhaps there is not much interest from law making/enforcing parties for this either.

Maybe we should go further and use some DSL to speak with each other in the first place? Would def make everything straight and eliminate ambiguity!

Re: Spanish legislation as a Git repo

#95

I'm surprised the world is not running a system where laws are formally encoded using some DSL that would allow making decision (guilty/not guilty) using formal logic. Perhaps there is not much interest from law making/enforcing parties for this either.

That's a common fantasy of developers who haven't touched grass in a while.

It's a rehashing of Leibniz's "Calculemus!".

It's not a fully stupid idea, many rules can be automated and indeed have already been. The things that courts still have to decide manually are the leftovers that require more human judgment.

Re: Spanish legislation as a Git repo

#97
post #94

I'm surprised the world is not running a system where laws are formally encoded using some DSL that would allow making decision (guilty/not guilty) using formal logic. Perhaps there is not much interest from law making/enforcing parties for this either.

Maybe we should go further and use some DSL to speak with each other in the first place? Would def make everything straight and eliminate ambiguity!

That's Lojban.

Turns out, ambiguity is an intentional communicative tool.

Post reply on HN