Ingest: preserve duplicate U.S. Code section numbers; title-scoped tags
The Code genuinely contains distinct sections sharing one number (two 5 U.S.C. 5757, two 10 U.S.C. 130g, two 5 U.S.C. 3598). The ingest silently overwrote the first with the second — data loss in a mirror. Later occurrences now get a deterministic -N suffix. The 'elections' tag was hardcoded from the Title 52 seed; it now applies only to Title 52, with a per-title EXTRA_TAGS map. Makefile gains TITLES override: make legal-us-code TITLES="7 10". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,9 @@ board: ## Rebuild the Board (inlines fresh data into viz/board.html)
|
||||
changelog: ## What changed in the government since the last commit (BASE/HEAD overridable)
|
||||
python3 scripts/generate_changelog.py $(BASE) $(HEAD)
|
||||
|
||||
legal-us-code: ## Ingest the pinned U.S. Code Title 52 seed corpus
|
||||
python3 scripts/ingest_us_code.py --title 52
|
||||
TITLES ?= 1 2 3 4 5 6 7 8 9 10 11 52
|
||||
|
||||
legal-us-code: ## Ingest the pinned U.S. Code titles (override with TITLES="…")
|
||||
@for t in $(TITLES); do python3 scripts/ingest_us_code.py --title $$t; done
|
||||
|
||||
check: build validate ## Build, then validate — the full gate
|
||||
|
||||
Reference in New Issue
Block a user