ISO 3166-1 Alpha2 country code
ID countrycode_alpha2
Pattern of countryNot PIIcategorical
ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest.
- Pattern of
- Country code or name
country - Categories
- Geographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- AutoType benchmark
countrycode- Bioregistry
iso.3166-2- FTA
COUNTRY.ISO-3166-2- Wikidata
- P297
- Quality
- 80/100 · missing: anchored regexp, negative example, translation
- Metacrafter rules
- 2 rules (0 by field name, 2 by value)
iso3166-alpha2data, common/intcodes.yamliso3166-alpha2imprecisedata, common/intcodes.yaml
- Supported by tools
- Auto-Type, csv-detective, FTA (Fast Text Analysis), Great Expectations Semantic Types Expectations, IBM Knowledge Catalog (IBM watsonx.data intelligence), metacrafter, metacrafterpro, Tableau, Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory), Alteryx Woodwork
Regular expression
[A-Z]{2}
Python re syntax. Not anchored: it can match inside longer text.
Examples
| Value | Description |
|---|---|
| WF | Wallis and Futuna |
| AI | Anguilla |
Sources
- wikipedia: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
- wikidata: https://www.wikidata.org/wiki/Property:P297
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/countrycode_alpha2 - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/geo/countrycode_alpha2.yamlon GitHub