Live data from Hacker News

Spanish legislation as a Git repo

github.com

141–150 of 246 posts

Re: Spanish legislation as a Git repo

#141

Earlier quoted context omitted.

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.

> Ultimately got told that the lady unequivocally wants it and qualifies, and he can't override that. Not just once, but five times by different courts, finalized by the European Court of Human Rights! > Her request had been approved on July 18, 2024, by the Catalonia Guarantee and Evaluation Commission. The commission found that she met all legal requirements, as she had a “nonrecoverable clinical situation,” causin…

Your enthusiasm is remarkable.

Re: Spanish legislation as a Git repo

#142

I think this is great. Only limit of git is I can't imagine "git blame" works. It would be nice to know who voted for and against each patch. Git isn't structured for collaborative commits.

Is this really a problem we have now, though? This information is publicly available. If everyone here is so excited about LLMs then why would this even be needed? Anthropic can just give us the answer to every question. We don't need nerds that know what git is. :)

Re: Spanish legislation as a Git repo

#143
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?

Would be nice if someone did it with Swedens laws too!

Re: Spanish legislation as a Git repo

#144
post #104

In France, not only our law are versioned. It's formally proved too! https://catala-lang.org/ *Edit*: Woah ! The French crew is here. We are at least 5 quoting a variation of https://www.legifrance.gouv.fr/ > for versioning.

I find it ironic to have it named "catalan(g)" on a post about spanish law.

Even better. The Catalan word for Catalan is català. So catala-lang.org fits that too.

Re: Spanish legislation as a Git repo

#148
post #66

Add CI to check if new laws don't contradict with any existing ones.

Can you imagine rebases with merge conflicts?

This could in theory already happen without any tech, but I suspect since the government is pretty monolithic, any changes in a specific law are all being done by the same set of people.

You might not have merge conflicts but I imagine you could end up with conflicting guidance from two separate pieces of law (e.g., law A says you must wear green on St. Patrick's day, law B outlaws green pajamas).

Re: Spanish legislation as a Git repo

#149

I think this is great. Only limit of git is I can't imagine "git blame" works. It would be nice to know who voted for and against each patch. Git isn't structured for collaborative commits.

That could actually be a git commit log with date, votes and other metadata. But getting the entire country's law into git is already an impressive feat.

If we are spitballing, I think there should be an actual file associated with the text so you can see the vote. A file makes it trivial to grep for "Senator X".

Not git, but Congress actually does have quite a bit of data digitized. A random example[0] -they even provide XML. The Congress data is going to give you all bills - many of which do not pass, so a different mission than this project.

[0] https://www.congress.gov/bill/118th-congress/house-bill/4818

Re: Spanish legislation as a Git repo

#150

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.

I don't think this is where the problem lies. If you kill someone with intent, it's murder. But the whole system needs to prove that you killed someone with intent beyond a reasonable doubt, and a DSL will not help you there.
Post reply on HN