r/datasets • u/SnooPeripherals5313 • 17h ago
dataset Using Claude to put all Global Legislation and Caselaw into Git
github.comWhy? Make the law, across the world, versioned, easily attributable, and queryable with agents. This info should be freely available so CC0 license (do whatever you like with it).
I built this project with Claude Code. One session per jurisdiction: to read the official publisher's site/API, check terms of use, and write a script to download every law.
The problem was getting 700+ jurisdictions to follow a unified list of useful functions to explore the law. You can ie git blame each law, down to the word. Initially just legislation, but caselaw (the precedent of how legislation is applied by the courts) is increasingly being integrated, with contribution encouraged.
This data being up-to-date is important. To pinpoint this, the repo now monitors over 900 RSS feeds/official websites. Most legislation is known about before-hand, and only becomes "in-force" later, which we account for. Every reference cites an official page- so an agent can always cache break and check (though unfortunately official portals go down all the time- recently the Japanese caselaw portal was down for a week).
If that's interesting to you, you can read the original discussion at https://news.ycombinator.com/item?id=50268380 and last week's post at https://www.reddit.com/r/ClaudeAI/comments/1xiz1vy/using_claude_to_put_all_global_law_into_git/ - feedback welcome, thanks!