[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108597":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":9,"languages":9,"totalLinesOfCode":9,"stars":10,"forks":11,"watchers":11,"openIssues":12,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":12,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":16,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},108597,"houritsu","Kohei-Wada\u002Fhouritsu","Kohei-Wada","Japanese laws as git history, one commit per amendment (generated from the e-Gov law API)",null,762,11,1,0,12,412,3,65.12,"Other",false,"main",[],"2026-11-21 19:30:02","2026-11-23 03:07:06","# houritsu\n\nEvery Japanese law (法令) as git history. One commit is one amending law coming into\nforce: `git log laws\u002Fact\u002F415\u002F415AC0000000057.md` is the amendment history of the Personal\nInformation Protection Act, and `git show \u003Ccommit>` is what one amendment changed.\n\n> **Before v1.0, history may be rebuilt and force-pushed.**\n\n## Layout\n\n- `laws\u002F\u003Claw type>\u002F\u003Cfirst 3 characters of the ID>\u002F\u003Ce-Gov law ID>.md`, with metadata in YAML\n  frontmatter. The first 3 characters are the era and year of promulgation (`415` = 平成15年).\n- Tables are HTML (merged cells kept). Figures and 様式 are links to the attachment on e-Gov,\n  on a line of their own, or as an HTML link inside a sentence or a table cell. About 3 in\n  10 figures have no attachment there and show `（図：e-Gov に画像なし）` instead.\n- The table of contents (目次) is left out: it only repeats the headings.\n- `main`: enforced revisions. `upcoming`: promulgated but not yet in force.\n- Commit date = enforcement date (00:00 JST). Trailers: `Amendment-Law-Id`, `Enforced`;\n  for an amending Act, also `Bill` (the Diet bill), `Bill-Submitter` (who submitted it, e.g.\n  `内閣` or `神谷宗幣君外四名`) and `Bill-Url` (its text on the House of Representatives site,\n  where the bill's 理由 is). `Skipped-Revision` names a revision\n  e-Gov has no text for; the commit's diff covers it too.\n  git cannot record dates before 1970, so earlier ones are recorded as 1970-01-02; the real\n  date is in the `Enforced` trailer and the frontmatter.\n- An amendment whose enforcement day is not fixed yet has `enforced: \"undetermined\"` and\n  `Enforced: undetermined`, and is the last commit on `upcoming` (dated 2117-12-31, the\n  placeholder e-Gov uses). `enforcement_comment` in the frontmatter words the day as the\n  amending law does (e.g. 政令で定める日); with it, an `upcoming` date is e-Gov's estimate.\n- A repealed law's file is deleted in the repealing law's commit; its history stays in\n  `git log -- \u003Cfile>`.\n\n## Limits\n\n- **History starts around 2015, not at enactment.** e-Gov's revision data ramps up from\n  about 2015 (a few hundred commits a year before, about two thousand a year from 2019), so\n  a time series of commit dates measures e-Gov's coverage as much as legislation.\n- **`git blame` dates the coverage, not the wording.** A law's oldest commit holds every\n  line that existed before coverage began: most of 刑法 blames to its 2016 commit. Read it\n  as \"already there by then\".\n- **Many laws have little history.** About a third of laws have a single commit.\n- **A law enters at its oldest e-Gov revision.** Checking out an old date shows no file for\n  a law e-Gov covers only later, not its older text: about 2,800 laws at 2010-01-01 against\n  9,000 now.\n- **Commit SHAs are not stable before v1.0.** A rebuild keeps them only while the data\n  and the builder are unchanged; a builder change, or e-Gov adding a revision dated before\n  existing commits, rewrites every later SHA. Refer to a revision by its `law_id` and\n  `revision_id` (both in the frontmatter) instead.\n\n## Finding a law\n\nFile names are e-Gov law IDs, which stay the same when a title changes. Search the\nfrontmatter by title:\n\n```sh\ngit grep -l '^title: \"個人情報の保護に関する法律\"' -- laws\n```\n\n## Following one article\n\nHeading depth depends on the chapters around an article, so match any depth:\n\n```sh\ngit log -L '\u002F^##*  *第十六条\u002F,\u002F^##*  *第十七条\u002F:laws\u002Fact\u002F415\u002F415AC0000000057.md'\n```\n\nThis takes the first match, the main text. For an article of a 附則, start the range at\nthat 附則's heading, which names its amending law: `\u002F^## 附　則（令和二年\u002F,\u002F^## 附　則\u002F`.\n\n## 出典 \u002F Source\n\n出典：e-Gov法令検索（https:\u002F\u002Flaws.e-gov.go.jp\u002F）、PDL1.0（https:\u002F\u002Fwww.digital.go.jp\u002Fresources\u002Fopen_data\u002Fpublic_data_license_v1.0）\n\ne-Gov法令検索の法令データ（法令API v2）を [houritsu-builder](https:\u002F\u002Fgithub.com\u002FKohei-Wada\u002Fhouritsu-builder)（Kohei-Wada）が markdown に加工して作成。\n条文の文字は変更していない（markdown のための見出し記号とエスケープ、図へのリンクを加えた）。正本は官報。改正履歴は e-Gov が提供する範囲に限る。\n\n議案との対応：[衆議院議案データベース](https:\u002F\u002Fgithub.com\u002Fsmartnews-smri\u002Fhouse-of-representatives)（smartnews-smri、MIT）。議案番号と本文ページへのリンクのみ使用。\n\nThe characters of the statute text are unchanged; headings, markdown escapes and figure\nlinks are added. This is not the official text; the official text is the 官報. Revision\nhistory is limited to what e-Gov provides.\n\n## License\n\n[CC BY 4.0](https:\u002F\u002Fcreativecommons.org\u002Flicenses\u002Fby\u002F4.0\u002F), which PDL1.0 §1.7 allows for\nthe source data. Attribute as in the section above. The statute text itself is not\ncopyrighted (著作権法第13条).\n\nNo warranty: this is not legal advice, and the text may be out of date or wrong. Check\ne-Gov or the 官報 before relying on it.\n\n## Lint\n\n```sh\nuvx rumdl@0.2.79 check\n```\n","houritsu 是一个将日本法律条文以 Git 版本历史形式结构化管理的开源项目，每项修订对应一次提交，完整记录法律文本的历次修改。项目基于日本政府 e-Gov 法律 API 自动抓取并生成 Markdown 文件，包含 YAML 元数据、HTML 表格（保留合并单元格）、附件链接及修订元信息（如施行日、修正法编号、国会法案来源等），支持按生效时间检出历史版本或查询待施行修订。适用于法律研究、合规分析、自动化法规追踪及日本法制数字化存档等场景。",2,"2026-11-24 04:34:43","CREATED_QUERY"]