Add CI to check if new laws don't contradict with any existing ones.
Spanish legislation as a Git repo
81–90 of 246 posts
Re: Spanish legislation as a Git repo
#82Re: Spanish legislation as a Git repo
#83I 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…
As to what can be done with the data, maybe one interesting step could be a graph-database regarding laws which reference other laws or the definitions that they depend on?
Re: Spanish legislation as a Git repo
#84Re: Spanish legislation as a Git repo
#85Add CI to check if new laws don't contradict with any existing ones.
Re: Spanish legislation as a Git repo
#86Re: Spanish legislation as a Git repo
#87[flagged]
Re: Spanish legislation as a Git repo
#88Re: Spanish legislation as a Git repo
#89I 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.
Re: Spanish legislation as a Git repo
#90This 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…
For a while I thought about trying to write software that would turn the obscure natural-language diffs in written bills into a readable diff, showing the laws before and after with highlighted changes. But she said they just got the bills as paper printouts which weren't always even up-to-date, so it might not have helped much. Maybe now they're online. And LLMs might make the project easier.