66 governments in the roster are named NOT AVAILABLE, so no search by name can find them #76

Closed
opened 2026-10-16 13:54:47 -04:00 by jared · 2 comments
Owner

Found from cog_chat on 2026-10-16, while designing a search by name. Filed here at Jared's call because the names are missing upstream of any app.

cog_gov_search() returns 66 governments whose gov_name is NOT AVAILABLE: 40 cities and 26 townships across 22 states, the most in Kansas (13 townships) and Alaska (6 cities). 49 of the 66 have finance rows.

The eight largest, from cog_chat's index (governments with finance rows):

canonical_govid state type legacy GOVS id years population
263163900001 MI township 233082015 1967–1973 49,658 (1973)
263081900000 MI township 233041016 1967–1973 19,235 (1973)
503007900000 VT township 463004012 1967–1973 10,032 (1973)
262125900002 MI city 232063801 1972 9,668 (1972)
502003900000 VT city 462002001 1967–1973 7,950 (1973)
262061900000 MI city 232031801 1972 6,067 (1972)
272139900001 MN city 242070701 1967–1973 5,771 (1973)
423033900000 PA township 393017801 1972 5,360 (1972)

All eight have id_source = corpus_assigned, no census_geoid, and finances only in FY1967–FY1973. That suggests the names were lost where governments known only by a legacy GOVS id entered the roster. That is an inference from these eight rows; I have not traced the build.

What it breaks: no search by name can find these governments, and any list that includes one prints "Not Available" to a reader.

Done when: each of the 66 has its name, recovered from the legacy GOVS files or another source, or a decision record says the names cannot be recovered and what gov_name carries instead.

Found from cog_chat on 2026-10-16, while designing a search by name. Filed here at Jared's call because the names are missing upstream of any app. `cog_gov_search()` returns 66 governments whose `gov_name` is `NOT AVAILABLE`: 40 cities and 26 townships across 22 states, the most in Kansas (13 townships) and Alaska (6 cities). 49 of the 66 have finance rows. The eight largest, from cog_chat's index (governments with finance rows): | canonical_govid | state | type | legacy GOVS id | years | population | |---|---|---|---|---|---| | 263163900001 | MI | township | 233082015 | 1967–1973 | 49,658 (1973) | | 263081900000 | MI | township | 233041016 | 1967–1973 | 19,235 (1973) | | 503007900000 | VT | township | 463004012 | 1967–1973 | 10,032 (1973) | | 262125900002 | MI | city | 232063801 | 1972 | 9,668 (1972) | | 502003900000 | VT | city | 462002001 | 1967–1973 | 7,950 (1973) | | 262061900000 | MI | city | 232031801 | 1972 | 6,067 (1972) | | 272139900001 | MN | city | 242070701 | 1967–1973 | 5,771 (1973) | | 423033900000 | PA | township | 393017801 | 1972 | 5,360 (1972) | All eight have `id_source = corpus_assigned`, no `census_geoid`, and finances only in FY1967–FY1973. That suggests the names were lost where governments known only by a legacy GOVS id entered the roster. That is an inference from these eight rows; I have not traced the build. What it breaks: no search by name can find these governments, and any list that includes one prints "Not Available" to a reader. Done when: each of the 66 has its name, recovered from the legacy GOVS files or another source, or a decision record says the names cannot be recovered and what `gov_name` carries instead.
jared added the
ws
corpus
type
defect
labels 2026-10-16 13:54:47 -04:00
Author
Owner

The fix is merged in the pipeline: Civilytics/census_of_governments_finance_pipeline#156 (PR #157), with decision record 0008 there. NOT AVAILABLE is Census's own placeholder (User Guide, docs/userguide/05_user_notes.md:247), copied from ALLids.csv.

  • 8 of the 66 get their names back. They come from the FY1974 Individual Unit file, the only Census file that names them, listed with source in data/gov_name_overrides.csv. 353024002 COKATO TOWNSHIP is coded North Dakota and is unconfirmed.
  • The other 58 keep NOT AVAILABLE. No Census file searched names them, including the eight largest in the table above. The printed 1967 and 1972 directories were not searched.
  • Yearly rows are unchanged. Rows in long/ keep each year's as-reported name; only the roster changes.

Open until the next corpus rebuild and publish, which needs Jared. The Nov 10 publish tree predates #156, so it has to be rebuilt from main first.

The fix is merged in the pipeline: Civilytics/census_of_governments_finance_pipeline#156 (PR #157), with decision record 0008 there. `NOT AVAILABLE` is Census's own placeholder (User Guide, `docs/userguide/05_user_notes.md:247`), copied from `ALLids.csv`. - **8 of the 66 get their names back.** They come from the FY1974 Individual Unit file, the only Census file that names them, listed with source in `data/gov_name_overrides.csv`. 353024002 COKATO TOWNSHIP is coded North Dakota and is unconfirmed. - **The other 58 keep `NOT AVAILABLE`.** No Census file searched names them, including the eight largest in the table above. The printed 1967 and 1972 directories were not searched. - **Yearly rows are unchanged.** Rows in `long/` keep each year's as-reported name; only the roster changes. Open until the next corpus rebuild and publish, which needs Jared. The Nov 10 publish tree predates #156, so it has to be rebuilt from main first.
jared added the
needs
human
label 2026-11-13 08:05:25 -05:00
Author
Owner

Published 2026-11-13 (corpus built_at 14:54:03Z, pipeline 6c2b746), on Nextcloud and Hugging Face; both cog-api replicas restarted.

  • 6 names recovered from the FY1974 file: Metlakatla (AK), Hindsville (AR), Smoky Hill Township (KS), Guilford College (NC), Smithtown (NC), Cokato Township (coded ND, unconfirmed).
  • 2 rejected after the first publish. The FY1974 file named 362067801 "AURORA CITY" and 432094802 "FAIRVIEW CITY". Each collides with a real city of the same name in the same county filing in the same years: Aurora city 362067001 (Portage Co., OH) and Fairview city 432094501 (Williamson Co., TN). Both go back to NOT AVAILABLE, and the pipeline now stops the build on any override that collides this way (census_of_governments_finance_pipeline#161).
  • 60 keep Census's NOT AVAILABLE: the 58 never named in any Census file searched, plus those two. Decision 0008 in the pipeline repo records why.

Checked from a fresh cache: cog_gov_search("Aurora", state = "OH", type = "city") and the Fairview equivalent each return one government, and the roster has 60 placeholders.

Published 2026-11-13 (corpus `built_at` 14:54:03Z, pipeline `6c2b746`), on Nextcloud and Hugging Face; both cog-api replicas restarted. - **6 names recovered** from the FY1974 file: Metlakatla (AK), Hindsville (AR), Smoky Hill Township (KS), Guilford College (NC), Smithtown (NC), Cokato Township (coded ND, unconfirmed). - **2 rejected after the first publish.** The FY1974 file named 362067801 "AURORA CITY" and 432094802 "FAIRVIEW CITY". Each collides with a real city of the same name in the same county filing in the same years: Aurora city 362067001 (Portage Co., OH) and Fairview city 432094501 (Williamson Co., TN). Both go back to `NOT AVAILABLE`, and the pipeline now stops the build on any override that collides this way (census_of_governments_finance_pipeline#161). - **60 keep Census's `NOT AVAILABLE`**: the 58 never named in any Census file searched, plus those two. Decision 0008 in the pipeline repo records why. Checked from a fresh cache: `cog_gov_search("Aurora", state = "OH", type = "city")` and the Fairview equivalent each return one government, and the roster has 60 placeholders.
jared removed the
needs
human
label 2026-11-13 09:55:33 -05:00
jared closed this issue 2026-11-13 09:55:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Civilytics/uscogdata#76