On this page6 sections
Data Sources
Last updated: 2026-11-08 (SPR polling/nomination dates as an input, and the two places they must land)
HitungKerusi's standing on data provenance. Every number on the site traces to one of these sources.
Electoral results
| Source | What we take | Licence/access |
|---|---|---|
| TindakMalaysia GE15 dataset | Candidate-level results for all 222 parliamentary seats, GE15 (19 Nov 2022): votes per bloc, electorates, turnout | Open (GitHub) |
| Wikipedia: GE14 results by constituency | GE14 (9 May 2018) party-level votes per seat, parsed from wikitext; coalition totals reconcile exactly with the official result | CC BY-SA |
| MECo results corpus | Standardised candidate-level ballots 1955–2026; loaded elections: GE12, GE13 (federal shares), PRN Johor 2022 + 2026, PRN NS 2023 + 2026, PRN Sabah 2025 (full DUN chambers); the six Aug-2023 peninsular PRNs enter as aggregate state shares (swing evidence only) | Open (GitHub) |
| Wikipedia state-election pages (PRN Johor 2026, PRN Negeri Sembilan 2026) | State-level bloc vote shares feeding the parliament swing layer; cross-validated against MECo (Johor agrees within ~1pt; NS PN differs ~4.6pt on alliance-boundary definitions — PAS under PN vs Bersatu rows) | CC BY-SA |
| Wikipedia state-election results pages (PRN Melaka 2021, PRN Sarawak 2021) | DUN baselines incl. candidate display names; both reproduce the actual seat counts exactly | CC BY-SA |
| Wikipedia by-election pages (Kuala Terengganu, Pulai, Kemaman 2023) | Post-GE15 Dewan Rakyat by-election results, incl. candidate names | CC BY-SA |
| Wikipedia candidates matrix (e.g. 2026 Malacca state election) | The filed candidate field for an upcoming election — who contests which seat. Load-bearing since 2026-11-01: the forecast's contest layer reads it to bar blocs that are not on a seat's ballot. Parsed from the raw wikitext by row shape (see development.md §4.10); sanity-checked against the page's own 2/3/4-way contest tally, and refused by the model when any seat names fewer than two blocs | CC BY-SA |
Curated contest_blocs.csv (in-repo) | Per-election party→bloc attribution override: "who is on this ballot" when that differs from "who belongs to whom" — Bersatu contesting alone in Melaka 2026 counts as BERSATU, not PN. History is untouched; past votes keep the attribution they were cast under | Human-curated |
| TindakMalaysia General-Election-Data | August 2025 electorates per seat; by-election demographics | Open (GitHub) |
| Sinar Project GE15 open data | Cross-checking; boundaries (planned) | Open |
| electiondata.my | Cross-checking seat totals | Public web |
| SPR (Election Commission of Malaysia) gazettes | Authoritative result confirmation; by-election results; polling and nomination dates for a called election — the written-order announcement, as reported through the news layer, which must then be written into CHAMBER_CONFIG (model horizon) and the elections table (the site's announced/expected state) | Official |
Known data caveats: Wikipedia's GE14 "total valid votes" cells are occasionally stale (e.g. P.119 implies 98.8% turnout) — we therefore derive valid votes from the candidate sum, which reconciles with the stated percentages. GE14 Sabah/Sarawak labels are coalition-level for some seats where component-level detail would refine the notional mapping (impact is bounded by GE14's ~2% weight in the baseline). Candidate names come from the results tables where a parser exists (PRN 2021 Melaka/Sarawak, the 2023 by-elections; the {{MASelec}} template pages match on votes) — a small number of runner-up rows keep a party-label fallback, and GE14's party-level source means those rows display the party rather than a person. Constituency names for state seats are filled from the MECo-maps boundary labels where the source dataset carried only codes.
Coalition membership history
Curated in-repo (data/seed/memberships.yaml), human-reviewed with dates (e.g. Bersatu's PH exit on 24 Feb 2020, GTA's 2022 formation and 2023 dissolution). Corrections welcome — this file is the single source of truth for notional realignment.
News
- Google News RSS, English and Bahasa Malaysia editions. Each query returns at most ~100 items ranked by relevance, so coverage comes from many narrow queries: national politics (EN/BM), pilihan raya, Dewan Rakyat, party names; one query per coalition in each language (Perikatan Nasional, Pakatan Harapan, Barisan Nasional, plus a Sabah/Sarawak query for GRS, GPS and Warisan); the institutions that decide who may contest (Registrar of Societies / JPPM, Election Commission / SPR); state-election queries (PRN Melaka, PRN Sarawak); and, inside 90 days of a polling day, a feed per constituency of that state
- Direct publisher RSS: Malay Mail (Malaysia section feed — the site-wide feed went 404 in October 2026 and returned nothing for weeks), Free Malaysia Today (nation)
- A baseline backfill (
hk collect-news --days 180) re-runs every Google News query once per weekly date window across the span, so history is not truncated by the per-query cap; the daily cycle looks back 14 days - We store headlines and RSS-provided summaries only; full-text scraping of paywalled publishers is intentionally out of scope
- Tagging: deterministic keyword/lexicon tagger always; LLM tagger when configured. Both record what a story concerns (coalitions, parties, seats) and a one-sentence bilingual rationale for why it matters, shown under each headline on the site; keyword-only tags are upgraded by the LLM in later cycles
Polls
Manually entered from public releases: Ilham Centre, Merdeka Center, EMIR Research, and university-affiliated surveys — each with field dates, sample size, and source URL. If a pollster does not publish methodology, it is entered with a low grade and down-weighted by the trust cap (see Methodology §6).
Status (Nov 2026): no poll is entered for any live chamber. The Melaka PRN campaign has produced only qualitative pollster readings circulating via news summaries — no per-bloc numbers with field dates on a source page, so none qualify. Ilham Centre's often-cited Melaka report is their 2021 survey (1,051 respondents, fielded 23 Oct–15 Nov 2021), retained as a candidate L3 backtest case, not a 2026 input. Their 12 November 2026 Melaka release (805 respondents, fielded 1–12 Nov, margin 3.45%) was reviewed against the entry bar and ruled ineligible: it publishes a seat projection (BN-PN leading 24 of 28) and vote-transfer rates, not per-bloc vote shares, so there is nothing the L3 poll layer can ingest. Melaka therefore went to polls on baseline + swings + news nudges alone. A daily automated watch hunts releases; entry remains a reviewed, sourced decision.
Boundaries (live)
MECo-maps constituency GeoJSON, thinned and keyed to seat codes by scripts/build_boundaries.py into apps/web/data/boundaries*.json — federal (GE-15 polygons, 222 seats) and five state assets (Melaka, Sarawak, Johor, Negeri Sembilan, Sabah).
Attribution
HitungKerusi is an independent analytical project. Forecast outputs are model estimates, not predictions of certainty; see the Methodology document for assumptions and limitations.