The project's README from github.com/Kohei-Wada/houritsu. As one markdown file: README.md.
Every Japanese law (法令) as git history. One commit is one amending law coming into
force: git log laws/act/415/415AC0000000057.md is the amendment history of the Personal
Information Protection Act, and git show <commit> is what one amendment changed.
Before v1.0, history may be rebuilt and force-pushed.
laws/<law type>/<first 3 characters of the ID>/<e-Gov law ID>.md, with metadata in YAML
frontmatter. The first 3 characters are the era and year of promulgation (415 = 平成15年).(図:e-Gov に画像なし) instead.main: enforced revisions. upcoming: promulgated but not yet in force.Amendment-Law-Id, Enforced;
for an amending Act, also Bill (the Diet bill), Bill-Submitter (who submitted it, e.g.
内閣 or 神谷宗幣君外四名) and Bill-Url (its text on the House of Representatives site,
where the bill's 理由 is). Skipped-Revision names a revision
e-Gov has no text for; the commit's diff covers it too.
git cannot record dates before 1970, so earlier ones are recorded as 1970-01-02; the real
date is in the Enforced trailer and the frontmatter.enforced: "undetermined" and
Enforced: undetermined, and is the last commit on upcoming (dated 2117-12-31, the
placeholder e-Gov uses). enforcement_comment in the frontmatter words the day as the
amending law does (e.g. 政令で定める日); with it, an upcoming date is e-Gov's estimate.git log -- <file>.git blame dates the coverage, not the wording. A law's oldest commit holds every
line that existed before coverage began: most of 刑法 blames to its 2016 commit. Read it
as "already there by then".law_id and
revision_id (both in the frontmatter) instead.File names are e-Gov law IDs, which stay the same when a title changes. Search the frontmatter by title:
git grep -l '^title: "個人情報の保護に関する法律"' -- laws
Heading depth depends on the chapters around an article, so match any depth:
git log -L '/^##* *第十六条/,/^##* *第十七条/:laws/act/415/415AC0000000057.md'
This takes the first match, the main text. For an article of a 附則, start the range at
that 附則's heading, which names its amending law: /^## 附 則(令和二年/,/^## 附 則/.
出典:e-Gov法令検索(https://laws.e-gov.go.jp/)、PDL1.0(https://www.digital.go.jp/resources/open_data/public_data_license_v1.0)
e-Gov法令検索の法令データ(法令API v2)を houritsu-builder(Kohei-Wada)が markdown に加工して作成。 条文の文字は変更していない(markdown のための見出し記号とエスケープ、図へのリンクを加えた)。正本は官報。改正履歴は e-Gov が提供する範囲に限る。
議案との対応:衆議院議案データベース(smartnews-smri、MIT)。議案番号と本文ページへのリンクのみ使用。
The characters of the statute text are unchanged; headings, markdown escapes and figure links are added. This is not the official text; the official text is the 官報. Revision history is limited to what e-Gov provides.
CC BY 4.0, which PDL1.0 §1.7 allows for the source data. Attribute as in the section above. The statute text itself is not copyrighted (著作権法第13条).
No warranty: this is not legal advice, and the text may be out of date or wrong. Check e-Gov or the 官報 before relying on it.
uvx [email protected] check