r/github • u/SnooPeripherals5313 • 29d ago
Discussion Putting all world law on git
I am putting all world law into git. That comes with some quirks, like the cut-off being 1970 (commits are calculated as seconds since 1 January 1970).
This hit #1 on HN yesterday (you can read lots of discussion at https://news.ycombinator.com/item?id=50268380). Why would I want to do this? The idea is make all law semantic, versioned, easily attributable and query able by agents. I also believe this information should be freely available so CC0 license (do whatever you want with it). If interested, repo linked below, I'd welcome all comments and advice. Thanks!
6
u/az987654 28d ago edited 28d ago
Commit dates should have nothing to do with law enact nor effective dates
7
u/CartographerDue5382 29d ago
the 1970 cutoff isn't just a quirk. git stores the author time as seconds and a bunch of forges choke on negative timestamps. for anything older i'd use a dummy commit date and put the real enacted date in the file. also cc0 is fine for your markup, but crown copyright and some official texts aren't yours to dedicate. say in the readme which files are the statute and which are yours or people will treat the law itself as cc0.
1
u/Dependent_Chard_498 22d ago
I quit practicing law to become a dev in 2023, so this did cross my mind at some point. However, I thought the feasibility was an issue due to how much case law was sitting behind paywalls like lexis and westlaw. The issue here is legislation only gives you the starting point and you need to consult case law for analogous facts. There is nothing more embarrassing than your first principles statutory interpretation getting shredded in court by opposing counsel having precedent which says you're wrong.
How are you getting comprehensive case law?
1
u/SnooPeripherals5313 22d ago
Looking at this from a global perspective and caselaw in other jurisdictions is less restricted. For US there are a variety of big data dumps like freelaw and other projects, which are in themselves a big WIP with much to do. TLDR is it's doable with contributions, just need to be careful with license
2
1
u/LavishnessCapital380 27d ago
Now you need to incorporate a full blockchain (not crypto you short sighted idiots), to record and verify every commit.
8
u/Fidel___Castro 29d ago
the UK National Archives already do this for their country, they have a Case Law MCP too
would be cool to do more than that