Live data from Hacker News

Spanish legislation as a Git repo

github.com

111–120 of 246 posts

Re: Spanish legislation as a Git repo

#112
Looks like we're heading toward some resolution to the old problem 'ignorance of the law is no excuse'. Born in a world with plenty of laws, the jeopardy that goes with them, and no easy and reliable resources, that would certainly be welcome.

Re: Spanish legislation as a Git repo

#114
post #69

Earlier quoted context omitted.

That's true, but it might not be as important here. Spain is not a country with a Common Law legal system entirely like the US or the UK. They have a civil law system where prior court judgement does not form a strictly binding precedent. Prior judgements can be important, but case law is not really a thing.

I wonder how true this is, we have the same system in Sweden, that court judgement are not legally binding precedent for lower courts. But in practice lower courts will follow the rulings made by the high court. Is it not the same in Spain at all?

It's the same in Spain, which makes OPs proposal kind of useless. The big distinction between a civil and a common law system is the fundamentals. A country's civil code is properly defined, while a common law's system is based on previous cases you have to dig through to find the basics.

Re: Spanish legislation as a Git repo

#115

Earlier quoted context omitted.

The why is that it's cool. Why it's not cool for you cannot be explained by us, only you.

I didn't say it's not cool. I was trying to understand the utility of it being great.

Coolness and greatness can be the same thing.

For instance, the big Lebowski is great and cool.

Re: Spanish legislation as a Git repo

#116
post #56

Earlier quoted context omitted.

There are laws that prevent you from committing suicide?

It was assisted suicide. Meaning the government helps you to commit suicide.

It's called euthanasia. You can ask the medical system for an assisted suicide if your life situation is extra painful with no hope for recovery.

This case got heaps of media popularity because the christian right wing latched on it, and the father tried as hard as he could to impede the euthanasia. Ultimately got told that the lady unequivocally wants it and qualifies, and he can't override that.

Re: Spanish legislation as a Git repo

#117
post #4

This is brilliant. I wish this were available for all legislations. There's so many inefficiencies that are trivially solved with existing tech frameworks.

> There's so many inefficiencies that are trivially solved with existing tech frameworks. There really, really are. The legal industry is well aware of that fact - and how many billable hours they stand to lose by making their work more efficient and understandable. You know how tax prep companies spent over $90m 'lobbying' Congress to ensure that filing your taxes remains difficult and complicated [0]? Well, lawyers…

and then we have people touting Jevon's paradox as outcome of AI disruption leading to more work. Before we create new work we need to figure out how to reduce incentive of people to unnecessarily complicate stuff and to be honest the answer is never clean or easy

Re: Spanish legislation as a Git repo

#118
post #43

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…

Oooh Can you elaborate a bit how the gazette is publishing them? Like what format did you have to parse. And how many documents were there in total? I tried doing the same for German laws 1-2 years ago but LLMs weren't smart enough yet. And the costs would've been at least a couple of thousand €. Ed: Nevermind, I missed the "BOE (Spain's official gazette) consolidated legislation API" part. Sending jealous greetings…

Heh we have the exact same status in Greece. It’s sad the upstream is so sloppy.

Re: Spanish legislation as a Git repo

#119

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…

It would be a good place to start if you wanted to hard fork the government.

Re: Spanish legislation as a Git repo

#120
Nice, I am going to this for Swedish law! Any suggestions on how one can model parliament voting when a law passes using GitHub? Or all the work that preceded a law, that’s like a feature request or a bug report.
Post reply on HN