Skip to main content

Topic place rankings

Issue: #1437. Decided 2026-11-28. Builds on the speaker stance classifier (#1391), which reads each public speaker's own side on a topic from their words at a meeting. The page is #1438.

The owner asked for a gauge that shows, per contested local question, which places lean against and which lean for. Everything here is built from our own recorded meetings, speakers and classifier readings, in our own words. A company with a similar public page is listed in the citations as reference-only: none of its data, numbers, wording or layout is used.

What a row is​

gold.topic_place_ranking: one row per place x topic x window (PK jurisdiction_id, topic_id, window_months; FKs to jurisdictions and civicsearch_topic). public.topic_place_ranking serves it unchanged: it holds counts per place and no names.

Counting​

  • Only confident sides count. A reading counts only when meeting_speaker_topic_side.side is for or against, which already means the classifier was at least 0.8 sure. Concerns-only, no-side and not-sure readings are left out, and so are off-topic mentions, which never reach the mart.
  • Each speaker counts once per place and topic. A speaker's readings across the window's meetings collapse to their majority side. A speaker evenly split between for and against takes no side (speakers_split). One regular commenter therefore cannot outweigh a room of first-time speakers.
  • How a speaker is recognised across meetings. Only inside one place, and only by the name the site already shows (residents as "First L."). An unnamed speaker ("Speaker N") cannot be recognised, so counts once per meeting. Two residents with the same "First L." in one place merge into one, which undercounts and never overcounts. The key exists only inside the model and is never stored or served.
  • Window. The last ranking_window_months = 24 months, up to ranking_as_of (empty = the run date).
  • Not counted: possible minors, every school-district place (school-board residents are never read, AGENTS.md), and readings with no place.

Evidence minimum​

A place is ranked only with at least 10 distinct sided speakers across at least 2 meetings in the window (ranking_min_speakers, ranking_min_meetings). Below that it is still listed, as unranked, and the page draws it as a light dot. A single heated hearing cannot rank a town on its own.

Score and shrinkage​

  • against_share = speakers_against / (speakers_for + speakers_against).
  • national_against_share: the topic's against share over every place's sided speakers in the window.
  • shrunk_against_share = (speakers_against + k * national) / (speakers_for + speakers_against + k), with k = 10 pseudo-speakers (ranking_prior_weight). A place with 10 speakers sits halfway between its own share and the national rate. One with 100 sits within about a tenth of its own share. This is the usual beta-binomial prior, written as pseudo-counts: it stops a small place's 10-for-0 from looking more certain than a large place's 80-for-20.
  • A ranked place leans against when its shrunk share is above 0.5 and leans for when it is below. Exactly 0.5 is neither.

Size bands and rank​

Places are compared only with places of similar size, by Census ACS population (jurisdictions.population): large ≥ 250,000, mid 50,000-249,999, small < 50,000, and unknown where we have no population (most towns). band_rank 1 is the most against among ranked places in the band. Ties are broken by more speakers.

Officials​

Officials are never added to residents' counts. An officials' side (officials_for, officials_against, officials_side) comes only from speakers matched to an official roster (attribution_method = 'official_roster_match'). An unconfirmed speaker is never treated as an official. The classifier reads only the public-comment period today, and only 4 speakers are roster-confirmed, so this marker is almost always empty. Reading roster-confirmed officials' own words is follow-up work, not something we infer.

API​

  • GET /api/rankings/topics: per topic, places ranked and unranked, ranked places leaning against and for, the national against share, and the median shrunk share of ranked places.
  • GET /api/rankings?topic=<slug|id>&band=&state=: that topic's places in scope (ranked first, by band and rank), with a national summary of the same scope.

Shares are fractions 0-1. Nothing is defaulted: an empty scope returns no places and null shares.

What this is not​

It is not a poll or a survey. People who speak at public meetings are not a sample of residents: they are often people with a stake in the outcome. The rankings describe what was said at the meetings we hold recordings for, and only those places: a place we have no meetings for has no dot at all, and that says nothing about its residents.

National results (2026-11-28 build)​

The 13 validated topics, over the 24 months to 2026-11-28. Speakers are distinct people per place: a person who spoke in two places counts in each. "Lean" counts only ranked places. "Median" is the median shrunk against-share of ranked places. No place has a roster-confirmed officials' side yet.

topicplacesrankedlean againstlean forspeakers forspeakers againstnational againstmedian
data-centers118232301251,0150.8900.913
surveillance-cameras9410100654210.8660.868
affordable-housing98808335220.0620.042
short-term-rentals626061601050.3960.315
homelessness-and-shelters7650527190.0320.014
license-plate-readers62440372340.8640.864
police-staffing2433041100.9650.991
guns152025280.1330.098
immigration-and-sanctuary3810170100.1250.063
alcohol-licensing3610147230.3290.262
pickleball3411065380.3690.604
water-fluoridation1110134190.3590.226
renewable-energy2800030330.524-

696 place-topic rows in all, 65 of them ranked (large 29, mid 20, small 15, unknown 1). Most places with readings sit below the evidence minimum, so the page shows them as light dots.

Tests​

  • dbt unit test topic_place_ranking_counts_once_shrinks_and_bands (_schema_topic_place_ranking.yml) covers: a speaker counted once across three meetings, a split speaker taking no side, not-sure, concerns-only, minor and out-of-window readings left out, a roster-confirmed official kept apart, a school district left out, the 10/2 minimum, shrinkage to 7/19 national, and size bands.
  • tests/test_topic_place_ranking_dbt.py checks that spec against this page's numbers and runs it with RUN_DBT_UNIT_TESTS=1. tests/test_api_rankings.py covers the API.