r/github • • 27d 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!

https://github.com/lexifina/global-law

38 Upvotes

14 comments sorted by

8

u/Fidel___Castro 27d 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 

3

u/SnooPeripherals5313 27d ago

Nice. There are lots of scattered caselaw MCPs, I think it's appealing to unify legislation and caselaw into a larger entity

6

u/az987654 25d ago edited 25d ago

Commit dates should have nothing to do with law enact nor effective dates

4

u/Atmosck 27d ago

Good luck. Doing this for just the US seems like a massive undertaking.

4

u/jaerie 26d ago

What's the rationale behind tying the law dates to commit dates?

7

u/CartographerDue5382 27d 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 20d 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 20d 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

u/sultanaiyan1098 23d ago

What's the starting era?

1

u/LavishnessCapital380 25d ago

Now you need to incorporate a full blockchain (not crypto you short sighted idiots), to record and verify every commit.