Add elections + demographics layer: candidates and jurisdictions

Two new entity types, built deterministically from the raw exports:

  Candidate (2,494)     — 2026 federal candidates as files under
                          us/states/<st>/candidates/, with office,
                          district, party, incumbent/challenger stance,
                          campaign committee, FEC id.

  Jurisdiction (3,494)  — demographic nodes carrying ACS 2023 data:
                          3,131 counties (deduped from 3,231 mixed-format
                          fips keys) + 363 congressional districts.

This completes the county skeleton nationwide: every US county is now a
browsable node with population, income, poverty, race, education and
housing — even where no officeholders are mapped yet. In Florida the
county index.md merges into the existing dir and reports its officeholder
count alongside demographics (St. Lucie: 33 officeholders + ACS profile).

build.py now reads seven raw inputs in one deterministic pass
(byte-identical on rerun). The mirror now answers: who holds power, who
runs this institution, who is running, and what each place is made of.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Fabio
2026-07-03 23:35:00 -04:00
parent 6b3249ecc0
commit 5b0712c31f
5989 changed files with 304296 additions and 0 deletions
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-01"
classification: congressional-district
state: "MA"
district: "MA-01"
demographics:
population: 779993
population_under_18: 173169
population_18_64: 252835
population_65_plus: 353989
median_household_income: 75462
poverty_rate: 13.82
homeownership_rate: 66.69
unemployment_rate: 3.99
median_home_value: 345400
gini_index: 0.4548
vacancy_rate: 8.16
race_white: 547387
race_black: 47733
race_asian: 21193
hispanic: 157307
bachelors_plus: 181603
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-01
Congressional district MA-01.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 779993 |
| Under 18 | 173169 |
| 1864 | 252835 |
| 65+ | 353989 |
| Median household income | 75462 |
| Poverty rate | 13.82 |
| Homeownership rate | 66.69 |
| Unemployment rate | 3.99 |
| Median home value | 345400 |
| Gini index | 0.4548 |
| Vacancy rate | 8.16 |
| White | 547387 |
| Black | 47733 |
| Asian | 21193 |
| Hispanic/Latino | 157307 |
| Bachelor's or higher | 181603 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-02"
classification: congressional-district
state: "MA"
district: "MA-02"
demographics:
population: 801772
population_under_18: 180818
population_18_64: 262864
population_65_plus: 358090
median_household_income: 97024
poverty_rate: 9.23
homeownership_rate: 66.37
unemployment_rate: 4.1
median_home_value: 485300
gini_index: 0.455
vacancy_rate: 5.08
race_white: 565823
race_black: 43183
race_asian: 61199
hispanic: 92763
bachelors_plus: 266581
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-02
Congressional district MA-02.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 801772 |
| Under 18 | 180818 |
| 1864 | 262864 |
| 65+ | 358090 |
| Median household income | 97024 |
| Poverty rate | 9.23 |
| Homeownership rate | 66.37 |
| Unemployment rate | 4.1 |
| Median home value | 485300 |
| Gini index | 0.455 |
| Vacancy rate | 5.08 |
| White | 565823 |
| Black | 43183 |
| Asian | 61199 |
| Hispanic/Latino | 92763 |
| Bachelor's or higher | 266581 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-03"
classification: congressional-district
state: "MA"
district: "MA-03"
demographics:
population: 792213
population_under_18: 193952
population_18_64: 254877
population_65_plus: 343384
median_household_income: 98501
poverty_rate: 10.71
homeownership_rate: 61.82
unemployment_rate: 4.88
median_home_value: 553500
gini_index: 0.4635
vacancy_rate: 3.43
race_white: 458735
race_black: 38899
race_asian: 71224
hispanic: 196213
bachelors_plus: 217318
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-03
Congressional district MA-03.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 792213 |
| Under 18 | 193952 |
| 1864 | 254877 |
| 65+ | 343384 |
| Median household income | 98501 |
| Poverty rate | 10.71 |
| Homeownership rate | 61.82 |
| Unemployment rate | 4.88 |
| Median home value | 553500 |
| Gini index | 0.4635 |
| Vacancy rate | 3.43 |
| White | 458735 |
| Black | 38899 |
| Asian | 71224 |
| Hispanic/Latino | 196213 |
| Bachelor's or higher | 217318 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-04"
classification: congressional-district
state: "MA"
district: "MA-04"
demographics:
population: 802402
population_under_18: 187006
population_18_64: 248358
population_65_plus: 367038
median_household_income: 115485
poverty_rate: 6.47
homeownership_rate: 67.7
unemployment_rate: 3.4
median_home_value: 641000
gini_index: 0.4853
vacancy_rate: 4.22
race_white: 603117
race_black: 39241
race_asian: 57984
hispanic: 55341
bachelors_plus: 285275
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-04
Congressional district MA-04.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 802402 |
| Under 18 | 187006 |
| 1864 | 248358 |
| 65+ | 367038 |
| Median household income | 115485 |
| Poverty rate | 6.47 |
| Homeownership rate | 67.7 |
| Unemployment rate | 3.4 |
| Median home value | 641000 |
| Gini index | 0.4853 |
| Vacancy rate | 4.22 |
| White | 603117 |
| Black | 39241 |
| Asian | 57984 |
| Hispanic/Latino | 55341 |
| Bachelor's or higher | 285275 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-05"
classification: congressional-district
state: "MA"
district: "MA-05"
demographics:
population: 790877
population_under_18: 177378
population_18_64: 287327
population_65_plus: 326172
median_household_income: 136612
poverty_rate: 7.48
homeownership_rate: 56.56
unemployment_rate: 3.85
median_home_value: 852700
gini_index: 0.4769
vacancy_rate: 5.21
race_white: 486249
race_black: 40932
race_asian: 116769
hispanic: 89816
bachelors_plus: 350781
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-05
Congressional district MA-05.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 790877 |
| Under 18 | 177378 |
| 1864 | 287327 |
| 65+ | 326172 |
| Median household income | 136612 |
| Poverty rate | 7.48 |
| Homeownership rate | 56.56 |
| Unemployment rate | 3.85 |
| Median home value | 852700 |
| Gini index | 0.4769 |
| Vacancy rate | 5.21 |
| White | 486249 |
| Black | 40932 |
| Asian | 116769 |
| Hispanic/Latino | 89816 |
| Bachelor's or higher | 350781 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-06"
classification: congressional-district
state: "MA"
district: "MA-06"
demographics:
population: 796651
population_under_18: 177957
population_18_64: 247017
population_65_plus: 371677
median_household_income: 121409
poverty_rate: 7.22
homeownership_rate: 69.42
unemployment_rate: 3.74
median_home_value: 705600
gini_index: 0.4754
vacancy_rate: 4.86
race_white: 598614
race_black: 27572
race_asian: 40255
hispanic: 108780
bachelors_plus: 292135
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-06
Congressional district MA-06.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 796651 |
| Under 18 | 177957 |
| 1864 | 247017 |
| 65+ | 371677 |
| Median household income | 121409 |
| Poverty rate | 7.22 |
| Homeownership rate | 69.42 |
| Unemployment rate | 3.74 |
| Median home value | 705600 |
| Gini index | 0.4754 |
| Vacancy rate | 4.86 |
| White | 598614 |
| Black | 27572 |
| Asian | 40255 |
| Hispanic/Latino | 108780 |
| Bachelor's or higher | 292135 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-07"
classification: congressional-district
state: "MA"
district: "MA-07"
demographics:
population: 789900
population_under_18: 160778
population_18_64: 377852
population_65_plus: 251270
median_household_income: 98603
poverty_rate: 16.35
homeownership_rate: 34.21
unemployment_rate: 4.36
median_home_value: 687400
gini_index: 0.5006
vacancy_rate: 6.42
race_white: 320490
race_black: 155669
race_asian: 91046
hispanic: 183358
bachelors_plus: 272970
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-07
Congressional district MA-07.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 789900 |
| Under 18 | 160778 |
| 1864 | 377852 |
| 65+ | 251270 |
| Median household income | 98603 |
| Poverty rate | 16.35 |
| Homeownership rate | 34.21 |
| Unemployment rate | 4.36 |
| Median home value | 687400 |
| Gini index | 0.5006 |
| Vacancy rate | 6.42 |
| White | 320490 |
| Black | 155669 |
| Asian | 91046 |
| Hispanic/Latino | 183358 |
| Bachelor's or higher | 272970 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-08"
classification: congressional-district
state: "MA"
district: "MA-08"
demographics:
population: 784982
population_under_18: 158234
population_18_64: 295230
population_65_plus: 331518
median_household_income: 118563
poverty_rate: 8.08
homeownership_rate: 60.76
unemployment_rate: 3.88
median_home_value: 664600
gini_index: 0.4778
vacancy_rate: 4.95
race_white: 512563
race_black: 77162
race_asian: 81048
hispanic: 61166
bachelors_plus: 318455
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-08
Congressional district MA-08.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 784982 |
| Under 18 | 158234 |
| 1864 | 295230 |
| 65+ | 331518 |
| Median household income | 118563 |
| Poverty rate | 8.08 |
| Homeownership rate | 60.76 |
| Unemployment rate | 3.88 |
| Median home value | 664600 |
| Gini index | 0.4778 |
| Vacancy rate | 4.95 |
| White | 512563 |
| Black | 77162 |
| Asian | 81048 |
| Hispanic/Latino | 61166 |
| Bachelor's or higher | 318455 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "MA-09"
classification: congressional-district
state: "MA"
district: "MA-09"
demographics:
population: 797381
population_under_18: 157507
population_18_64: 224588
population_65_plus: 415286
median_household_income: 101312
poverty_rate: 8.55
homeownership_rate: 77.27
unemployment_rate: 4.48
median_home_value: 645400
gini_index: 0.4701
vacancy_rate: 20.69
race_white: 668151
race_black: 19099
race_asian: 10861
hispanic: 54051
bachelors_plus: 264452
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ma]
timestamp: "2026-07-03"
---
# MA-09
Congressional district MA-09.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 797381 |
| Under 18 | 157507 |
| 1864 | 224588 |
| 65+ | 415286 |
| Median household income | 101312 |
| Poverty rate | 8.55 |
| Homeownership rate | 77.27 |
| Unemployment rate | 4.48 |
| Median home value | 645400 |
| Gini index | 0.4701 |
| Vacancy rate | 20.69 |
| White | 668151 |
| Black | 19099 |
| Asian | 10861 |
| Hispanic/Latino | 54051 |
| Bachelor's or higher | 264452 |
## Source
- demographics: Census ACS 2023