r/git • u/SnooPeripherals5313 • Oct 29 '26
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!
90
u/ResidentPomegranate6 Oct 29 '26
rather than backdating commits, keep the real enactment date in a json field or commit trailer; git can't represent pre-1970 timestamps anyway.
46
u/plg94 Oct 29 '26
I do believe it should, too. But this is not your work, so you don't have the right to relicense it! In many countries official texts like laws are even in the "public domain" – which means they are not copyrightable, which in turn means they cannot be CC0 (even free licenses depend on the existence of copyright, but the owner waives those rights). In other countries (especially those that did not sign the Berne convention like Iran) the matter might even be more complicated.
7
u/magnetik79 Oct 30 '26
What a fantastic idea for a project - best of luck to you!
As for the dates - I'd probably look at adding some semantic metadata to the head/tail of your markdown documents (e.g.
YAML Frontmatterwould be a good choice).Machine readable, and GitHub will render it as well in a human readable form.
13
u/kombiwombi Oct 30 '26
In Australia www.austlii.edu.au has already done the heavy lifting. Including regulations, rules and codes. It is currently working to make freely available: all standards referenced by law; and computer programs used to determine compliance with regulations.
'Semantic' law has already failed dramatically in Australia, with people still being compensated. See: Robodebt.
8
u/glglgl-de Oct 30 '26
Germany has something like this under https://github.com/bundestag/gesetze.
Alas, it has been untouched for 4 years now.
Besides, there is https://github.com/bundestag/grundgesetz for the Basic Law (our constitution).
Funny to see
and other commits where people are lamed to have committed something who surely haven't. Assigning authorship would be more correct here, albeit funny as well :-)
4
u/fecal-butter Oct 30 '26
https://github.com/bitlaw-jp/the-constitution-of-japan
3
u/orbit99za Oct 30 '26
That's Great, Show LexisNexis how to do it, so we can build a better less uses version of thier "Protoge" AI search
3
u/jarofgreen Oct 30 '26
For the challange of pre-1970 laws, look into bi-temporal systems.
I dont think what you have here is a true bi-temporal problem, but there may be some intresting solutions out there that would fit your problem and could be adopted.
1
u/CptYoriVanVangenTuft Oct 30 '26
This is an amazing idea! Love it!
1
u/mianpac Oct 30 '26
Great initiative & reminds me of this paper: https://doi.org/10.1093/ojls/gqac032
0
u/AdministrativeHost15 Oct 29 '26
Point an agent at the repo, injest it and then start administering justice.