Posted by enriquelop 9 hours ago
In Brazil we have lexml, a standard to describe the law and their changes over time. It's surprisingly complex.
I understand that Spain was a participant in LexML as well... I gather they've since converted to something else?
Useful for alerts in our concern area, and monitoring proposed legislation iteration and flow through committees to keep ahead.
I can imagine quite a few other more civic interest uses as well!
Hoping to open source some later myself, seems an area ripe for some open civic citizen/hacker projects. Bet some fun startups could be made on top too, gl.
Testing may not exhaust all scenarios but it is useful to see where loopholes may exist or whether a bill that sneaks in while you aren't paying attention is unfavorable to your values.
https://github.com/righttoprivacyact/bill/blob/main/tests/te...
Well done and great to see items like this and great to see the comments.
When it comes to the law specifically, there's a whole silly setup with transcription companies as well.
I'm sure I won't be the only one curious, please enlighten me.
[1]: <https://github.com/EnriqueLop/legalize-es/commit/424cbc96507...>
When someone specifically mentions "built in ~4h with Claude Code" they probably didn't care that much about the outcome quality
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).
Using AI to plow through and make sense of all this would put us at risk of people knowing what the USG is getting up to.
[1] https://en.wikipedia.org/wiki/Code_of_Federal_Regulations
With this repo, git log --oneline -- spain/BOE-A-1978-31229.md gives you every reform to the Spanish Constitution in one command. git diff between any two reforms shows you exactly what changed in context. git blame tells you which reform touched which article. These are operations that would take a lawyer hours of cross-referencing, and they're free once the data is structured this way.
The other great thing: you can build tooling on top of it and use it with the CLI.
For instance, the big Lebowski is great and cool.
It left out the tables (e.g. under 2.1 Materiales.) and the images (e.g see the very bottom).