legalize-kr: Statutes as Code, Precedents as Code Too — Managing All Statutes and Precedents with Markdown and Git
Key point
It archives South Korean statutes and precedents as Markdown and Git history, providing a dataset optimized for LLM training and RAG.
Details
legalize-kr is an open-source project that uses the Ministry of Government Legislation's OpenAPI to archive all South Korean statutes and precedents in the form of Markdown documents and Git commit history.
Key Features and Differentiators
- Precise Version Control: All statutory amendment records and rulings are recorded as Git Commits. Through
git log,git diff, andgit blame, you can trace, like code, when a specific sentence was introduced or how a provision has changed over time. - Optimized for AI and RAG: Beyond simple provision lookup, it has a structure very well suited for use as LLM training data or a RAG (Retrieval-Augmented Generation) corpus. It also allows access to the entire dataset offline.
- Massive Data Scale: It includes approximately 6,907 statutes (81,629 amendment records) and 123,467 precedents.
Project Composition
- legalize-kr: Repository of all South Korean statutes and their amendment history
- precedent-kr: Repository of publicly available precedent data
- legalize-pipeline: Python-based data collection and management pipeline
- compiler: Statute compiler written in Rust
The statutory data can be freely used, including for commercial purposes, in accordance with public data policy, and the project's code and metadata are released under a dual MIT and Apache-2.0 license.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.