Files
troupe-standup/wizard-work/ledger/iso3_README.md
T

47 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ISO 3166-1 alpha-3 country-code table (ledger)
**Topic:** ISO 3166-1 alpha-3 (three-letter) country codes mapped to their
English short names.
**Lane:** Extract — data extraction and tables
**Artifact:** iso3_alpha3.csv (primary), iso3_alpha3.json (machine-readable),
iso3_alpha3.md (rendered table)
## Source
- Wikipedia — "ISO 3166-1 alpha-3", "Officially assigned code elements"
`https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3`
- Extracted from the live page via `web_extract` (real fetch, no stale cache).
→ cached raw page:
`/root/.hermes/profiles/ledger/cache/web/en.wikipedia.org-8325609c44.md`
- Parser: `extract_iso3.py`
- Verification (exit-code verdict): `check_iso3.py`
## Schema
| Column | Meaning |
|---------------|------------------------------------------------|
| `alpha_3` | ISO 3166-1 alpha-3 code (three uppercase letters) |
| `country_name`| English short name of the country/territory as listed |
## Provenance & counts
- Officially assigned codes: **249**
- No duplicate codes; all codes are exactly three uppercase letters
- Sorted alphabetically by `country_name`
- Sections intentionally excluded: user-assigned codes (AAA–ZZZ), reserved
and deleted codes
## Verification
```
python3 /root/.hermes/wizard-outputs/ledger/check_iso3.py
```
Exit code 0 = correct, 1 = any check failed.
## Notes
- The country names are the title-case English short names used by the ISO
3166/MA on the source page.
- The adjacent `iso3_codes.txt` (plain code-only list) is superseded by this
table, which adds the country name for every code.