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,61 @@
---
type: Jurisdiction
title: "Barnstable County, MA"
classification: county
fips: "25001"
state: "MA"
demographics:
population: 231668
population_under_18: 32704
population_18_64: 122209
population_65_plus: 76755
median_household_income: 95241
poverty_rate: 7.67
homeownership_rate: 81.07
unemployment_rate: 5.02
median_home_value: 629000
gini_index: 0.4787
vacancy_rate: 36.36
race_white: 198817
race_black: 6467
race_asian: 3422
race_native: 1025
hispanic: 8561
bachelors_plus: 129740
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Barnstable County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 231668 |
| Under 18 | 32704 |
| 1864 | 122209 |
| 65+ | 76755 |
| Median household income | 95241 |
| Poverty rate | 7.67 |
| Homeownership rate | 81.07 |
| Unemployment rate | 5.02 |
| Median home value | 629000 |
| Gini index | 0.4787 |
| Vacancy rate | 36.36 |
| White | 198817 |
| Black | 6467 |
| Asian | 3422 |
| Native | 1025 |
| Hispanic/Latino | 8561 |
| Bachelor's or higher | 129740 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Berkshire County, MA"
classification: county
fips: "25003"
state: "MA"
demographics:
population: 129430
population_under_18: 20662
population_18_64: 76351
population_65_plus: 32417
median_household_income: 76013
poverty_rate: 11.43
homeownership_rate: 69.92
unemployment_rate: 5.36
median_home_value: 305400
gini_index: 0.4938
vacancy_rate: 17.74
race_white: 111145
race_black: 3426
race_asian: 2461
race_native: 565
hispanic: 7591
bachelors_plus: 56324
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Berkshire County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 129430 |
| Under 18 | 20662 |
| 1864 | 76351 |
| 65+ | 32417 |
| Median household income | 76013 |
| Poverty rate | 11.43 |
| Homeownership rate | 69.92 |
| Unemployment rate | 5.36 |
| Median home value | 305400 |
| Gini index | 0.4938 |
| Vacancy rate | 17.74 |
| White | 111145 |
| Black | 3426 |
| Asian | 2461 |
| Native | 565 |
| Hispanic/Latino | 7591 |
| Bachelor's or higher | 56324 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Bristol County, MA"
classification: county
fips: "25005"
state: "MA"
demographics:
population: 582270
population_under_18: 119489
population_18_64: 359313
population_65_plus: 103468
median_household_income: 85625
poverty_rate: 11.32
homeownership_rate: 62.29
unemployment_rate: 5.46
median_home_value: 451200
gini_index: 0.4576
vacancy_rate: 4.57
race_white: 447540
race_black: 25982
race_asian: 14233
race_native: 1323
hispanic: 59389
bachelors_plus: 174153
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Bristol County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 582270 |
| Under 18 | 119489 |
| 1864 | 359313 |
| 65+ | 103468 |
| Median household income | 85625 |
| Poverty rate | 11.32 |
| Homeownership rate | 62.29 |
| Unemployment rate | 5.46 |
| Median home value | 451200 |
| Gini index | 0.4576 |
| Vacancy rate | 4.57 |
| White | 447540 |
| Black | 25982 |
| Asian | 14233 |
| Native | 1323 |
| Hispanic/Latino | 59389 |
| Bachelor's or higher | 174153 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Dukes County, MA"
classification: county
fips: "25007"
state: "MA"
demographics:
population: 20933
population_under_18: 3513
population_18_64: 11882
population_65_plus: 5538
median_household_income: 125786
poverty_rate: 4.43
homeownership_rate: 82.08
unemployment_rate: 6.56
median_home_value: 1165800
gini_index: 0.5535
vacancy_rate: 57.45
race_white: 16860
race_black: 574
race_asian: 309
race_native: 222
hispanic: 682
bachelors_plus: 12627
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Dukes County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 20933 |
| Under 18 | 3513 |
| 1864 | 11882 |
| 65+ | 5538 |
| Median household income | 125786 |
| Poverty rate | 4.43 |
| Homeownership rate | 82.08 |
| Unemployment rate | 6.56 |
| Median home value | 1165800 |
| Gini index | 0.5535 |
| Vacancy rate | 57.45 |
| White | 16860 |
| Black | 574 |
| Asian | 309 |
| Native | 222 |
| Hispanic/Latino | 682 |
| Bachelor's or higher | 12627 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Essex County, MA"
classification: county
fips: "25009"
state: "MA"
demographics:
population: 813054
population_under_18: 169485
population_18_64: 493463
population_65_plus: 150106
median_household_income: 101883
poverty_rate: 9.37
homeownership_rate: 63.5
unemployment_rate: 5.11
median_home_value: 619100
gini_index: 0.4819
vacancy_rate: 5.04
race_white: 551107
race_black: 32753
race_asian: 29493
race_native: 2429
hispanic: 195593
bachelors_plus: 348582
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Essex County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 813054 |
| Under 18 | 169485 |
| 1864 | 493463 |
| 65+ | 150106 |
| Median household income | 101883 |
| Poverty rate | 9.37 |
| Homeownership rate | 63.5 |
| Unemployment rate | 5.11 |
| Median home value | 619100 |
| Gini index | 0.4819 |
| Vacancy rate | 5.04 |
| White | 551107 |
| Black | 32753 |
| Asian | 29493 |
| Native | 2429 |
| Hispanic/Latino | 195593 |
| Bachelor's or higher | 348582 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Franklin County, MA"
classification: county
fips: "25011"
state: "MA"
demographics:
population: 70944
population_under_18: 11803
population_18_64: 41681
population_65_plus: 17460
median_household_income: 74907
poverty_rate: 12.12
homeownership_rate: 70.14
unemployment_rate: 5.38
median_home_value: 329000
gini_index: 0.4361
vacancy_rate: 8.57
race_white: 63125
race_black: 956
race_asian: 1439
race_native: 82
hispanic: 3839
bachelors_plus: 32142
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Franklin County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 70944 |
| Under 18 | 11803 |
| 1864 | 41681 |
| 65+ | 17460 |
| Median household income | 74907 |
| Poverty rate | 12.12 |
| Homeownership rate | 70.14 |
| Unemployment rate | 5.38 |
| Median home value | 329000 |
| Gini index | 0.4361 |
| Vacancy rate | 8.57 |
| White | 63125 |
| Black | 956 |
| Asian | 1439 |
| Native | 82 |
| Hispanic/Latino | 3839 |
| Bachelor's or higher | 32142 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Hampden County, MA"
classification: county
fips: "25013"
state: "MA"
demographics:
population: 462815
population_under_18: 96761
population_18_64: 281531
population_65_plus: 84523
median_household_income: 71306
poverty_rate: 16.34
homeownership_rate: 62.22
unemployment_rate: 6.01
median_home_value: 298800
gini_index: 0.4704
vacancy_rate: 6.64
race_white: 295267
race_black: 40334
race_asian: 12007
race_native: 1292
hispanic: 125188
bachelors_plus: 132778
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Hampden County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 462815 |
| Under 18 | 96761 |
| 1864 | 281531 |
| 65+ | 84523 |
| Median household income | 71306 |
| Poverty rate | 16.34 |
| Homeownership rate | 62.22 |
| Unemployment rate | 6.01 |
| Median home value | 298800 |
| Gini index | 0.4704 |
| Vacancy rate | 6.64 |
| White | 295267 |
| Black | 40334 |
| Asian | 12007 |
| Native | 1292 |
| Hispanic/Latino | 125188 |
| Bachelor's or higher | 132778 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Hampshire County, MA"
classification: county
fips: "25015"
state: "MA"
demographics:
population: 162028
population_under_18: 23042
population_18_64: 107548
population_65_plus: 31438
median_household_income: 87001
poverty_rate: 11.31
homeownership_rate: 67.8
unemployment_rate: 5.0
median_home_value: 390300
gini_index: 0.4709
vacancy_rate: 7.0
race_white: 132861
race_black: 4236
race_asian: 8612
race_native: 333
hispanic: 11964
bachelors_plus: 79914
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Hampshire County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 162028 |
| Under 18 | 23042 |
| 1864 | 107548 |
| 65+ | 31438 |
| Median household income | 87001 |
| Poverty rate | 11.31 |
| Homeownership rate | 67.8 |
| Unemployment rate | 5.0 |
| Median home value | 390300 |
| Gini index | 0.4709 |
| Vacancy rate | 7.0 |
| White | 132861 |
| Black | 4236 |
| Asian | 8612 |
| Native | 333 |
| Hispanic/Latino | 11964 |
| Bachelor's or higher | 79914 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Middlesex County, MA"
classification: county
fips: "25017"
state: "MA"
demographics:
population: 1638365
population_under_18: 318865
population_18_64: 1052493
population_65_plus: 267007
median_household_income: 130847
poverty_rate: 7.74
homeownership_rate: 61.32
unemployment_rate: 4.35
median_home_value: 727800
gini_index: 0.4747
vacancy_rate: 4.52
race_white: 1093628
race_black: 80327
race_asian: 223582
race_native: 3246
hispanic: 151761
bachelors_plus: 1044737
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Middlesex County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 1638365 |
| Under 18 | 318865 |
| 1864 | 1052493 |
| 65+ | 267007 |
| Median household income | 130847 |
| Poverty rate | 7.74 |
| Homeownership rate | 61.32 |
| Unemployment rate | 4.35 |
| Median home value | 727800 |
| Gini index | 0.4747 |
| Vacancy rate | 4.52 |
| White | 1093628 |
| Black | 80327 |
| Asian | 223582 |
| Native | 3246 |
| Hispanic/Latino | 151761 |
| Bachelor's or higher | 1044737 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Nantucket County, MA"
classification: county
fips: "25019"
state: "MA"
demographics:
population: 14483
population_under_18: 2975
population_18_64: 9181
population_65_plus: 2327
median_household_income: 139688
poverty_rate: 3.16
homeownership_rate: 71.78
unemployment_rate: 4.32
median_home_value: 1593800
gini_index: 0.4719
vacancy_rate: 58.3
race_white: 10090
race_black: 1372
race_asian: 251
race_native: 8
hispanic: 2467
bachelors_plus: 8240
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Nantucket County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 14483 |
| Under 18 | 2975 |
| 1864 | 9181 |
| 65+ | 2327 |
| Median household income | 139688 |
| Poverty rate | 3.16 |
| Homeownership rate | 71.78 |
| Unemployment rate | 4.32 |
| Median home value | 1593800 |
| Gini index | 0.4719 |
| Vacancy rate | 58.3 |
| White | 10090 |
| Black | 1372 |
| Asian | 251 |
| Native | 8 |
| Hispanic/Latino | 2467 |
| Bachelor's or higher | 8240 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Norfolk County, MA"
classification: county
fips: "25021"
state: "MA"
demographics:
population: 730082
population_under_18: 149313
population_18_64: 451124
population_65_plus: 129645
median_household_income: 130739
poverty_rate: 6.69
homeownership_rate: 68.75
unemployment_rate: 4.94
median_home_value: 683900
gini_index: 0.4841
vacancy_rate: 4.02
race_white: 509654
race_black: 54240
race_asian: 90735
race_native: 706
hispanic: 42383
bachelors_plus: 451470
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Norfolk County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 730082 |
| Under 18 | 149313 |
| 1864 | 451124 |
| 65+ | 129645 |
| Median household income | 130739 |
| Poverty rate | 6.69 |
| Homeownership rate | 68.75 |
| Unemployment rate | 4.94 |
| Median home value | 683900 |
| Gini index | 0.4841 |
| Vacancy rate | 4.02 |
| White | 509654 |
| Black | 54240 |
| Asian | 90735 |
| Native | 706 |
| Hispanic/Latino | 42383 |
| Bachelor's or higher | 451470 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Plymouth County, MA"
classification: county
fips: "25023"
state: "MA"
demographics:
population: 535075
population_under_18: 110836
population_18_64: 318499
population_65_plus: 105740
median_household_income: 114201
poverty_rate: 7.1
homeownership_rate: 77.61
unemployment_rate: 5.09
median_home_value: 556000
gini_index: 0.4625
vacancy_rate: 6.86
race_white: 411816
race_black: 42910
race_asian: 8987
race_native: 801
hispanic: 26184
bachelors_plus: 220404
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Plymouth County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 535075 |
| Under 18 | 110836 |
| 1864 | 318499 |
| 65+ | 105740 |
| Median household income | 114201 |
| Poverty rate | 7.1 |
| Homeownership rate | 77.61 |
| Unemployment rate | 5.09 |
| Median home value | 556000 |
| Gini index | 0.4625 |
| Vacancy rate | 6.86 |
| White | 411816 |
| Black | 42910 |
| Asian | 8987 |
| Native | 801 |
| Hispanic/Latino | 26184 |
| Bachelor's or higher | 220404 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Suffolk County, MA"
classification: county
fips: "25025"
state: "MA"
demographics:
population: 785121
population_under_18: 125812
population_18_64: 555150
population_65_plus: 104159
median_household_income: 95631
poverty_rate: 16.18
homeownership_rate: 36.48
unemployment_rate: 6.3
median_home_value: 705800
gini_index: 0.5251
vacancy_rate: 8.43
race_white: 362430
race_black: 143125
race_asian: 72712
race_native: 2825
hispanic: 182283
bachelors_plus: 409219
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Suffolk County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 785121 |
| Under 18 | 125812 |
| 1864 | 555150 |
| 65+ | 104159 |
| Median household income | 95631 |
| Poverty rate | 16.18 |
| Homeownership rate | 36.48 |
| Unemployment rate | 6.3 |
| Median home value | 705800 |
| Gini index | 0.5251 |
| Vacancy rate | 8.43 |
| White | 362430 |
| Black | 143125 |
| Asian | 72712 |
| Native | 2825 |
| Hispanic/Latino | 182283 |
| Bachelor's or higher | 409219 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,61 @@
---
type: Jurisdiction
title: "Worcester County, MA"
classification: county
fips: "25027"
state: "MA"
demographics:
population: 867788
population_under_18: 178921
population_18_64: 541177
population_65_plus: 147690
median_household_income: 95939
poverty_rate: 10.33
homeownership_rate: 65.78
unemployment_rate: 5.27
median_home_value: 423700
gini_index: 0.4525
vacancy_rate: 5.45
race_white: 630934
race_black: 45228
race_asian: 46238
race_native: 2170
hispanic: 118968
bachelors_plus: 343880
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, county, ma]
timestamp: "2026-07-03"
---
# Worcester County, MA
County jurisdiction.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 867788 |
| Under 18 | 178921 |
| 1864 | 541177 |
| 65+ | 147690 |
| Median household income | 95939 |
| Poverty rate | 10.33 |
| Homeownership rate | 65.78 |
| Unemployment rate | 5.27 |
| Median home value | 423700 |
| Gini index | 0.4525 |
| Vacancy rate | 5.45 |
| White | 630934 |
| Black | 45228 |
| Asian | 46238 |
| Native | 2170 |
| Hispanic/Latino | 118968 |
| Bachelor's or higher | 343880 |
## Source
- demographics: Census ACS 2023