Skip to content

Add Mongolia's Khural to opensanctions-parliaments - #1368

Open
derek73 wants to merge 2 commits into
masterfrom
tools/parliaments-mn-dataset
Open

derek73 wants to merge 2 commits into
masterfrom
tools/parliaments-mn-dataset

Conversation

@derek73

@derek73 derek73 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Adds mn_parliament, Mongolia's State Great Khural, to tools/differential/local_parliaments.DATASETS. It is tools only; nothing about the Mongolian pack.

Why now

The shared cache ~/.cache/nameparser-tools/local/opensanctions-parliaments was fetched with this dataset on 2026-11-12, for #1237's measurement in #1365. A tree whose list holds 23 datasets refuses that cache (_check_datasets: "meta.json was fetched from the datasets [… 24 …], and this tool reads [23]; fetch it again"). Master, #1363, #1366 and #1367 are all refused until this lands. Re-fetching back to 23 would only undo the Mongolian measurement, since the other 23 datasets' export versions are identical to the same day's earlier fetch. Landing the list is the quickest way back to a readable cache for every checkout.

The dataset

  • OpenSanctions' mn_parliament (export of 2026-11-06): 126 members, each written once in Cyrillic, father's name first, with no aliases.
  • Its index.json has the same structure as the datasets already listed (tags: list.pep, resources with checksum and size).
  • Licence: OpenSanctions' CC BY-NC 4.0, as recorded in the module's docstring for the whole source.
  • Cached, never committed.

What changes

  • local_parliaments.DATASETS gains mn_parliament, and tests/v2/test_local_parliaments.py's count goes from 23 to 24.
  • The module's docstring, the "Local corpora" table in tools/differential/README.md, and root AGENTS.md's parliaments sentence name the Khural.
  • The dated counts are re-taken. On 2026-11-12: 24 datasets, 24,302 spellings, 24,192 distinct names, 19,283 members. The 2026-11-08 figures are kept beside them, labelled.

Checks

  • uv run pytest: 45,994 passed. uv run pytest -n0 -m serial: 35 passed.
  • mypy and ruff: clean.
  • snapshot.py --local opensanctions-parliaments loads the shared cache on this branch (24,302 spellings); a master checkout refuses it.

Review

A code review (pr-review-toolkit code-reviewer) ran on e1fe505. It found nothing blocking: every enumeration is updated, the dated counts match the cache's meta.json, and the check loads the cache here and refuses one without the Khural. One wording fix: the 2026-11-08 count predates newer exports of other lists too, not only the Khural. Fixed in the next commit. Noted, not changed: the README's per-script breakdown is a dated 2026-11-08 snapshot.

🤖 Generated with Claude Code

local_parliaments.DATASETS gains mn_parliament: the State Great Khural's
126 members, each written once in Cyrillic with the father's name
first, which #1237 measures. The shared cache was fetched with it on
2026-11-12 (24 datasets, 24,302 spellings, 19,283 members), so a tree
listing 23 datasets refuses it until this lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.1 milestone Nov 12, 2026
@derek73 derek73 self-assigned this Nov 12, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant