---
id: "caprovincecode"
kind: "pattern"
status: "stable"
is_pii: false
categories: ["geo"]
country: ["CA"]
langs: ["en"]
quality: 55
url: "http://registry.apicrafter.io/datatype/caprovincecode"
---

# Province of Canada alpha2 code (`caprovincecode`)

Provinces and territories of Canada alpha2 code

- Pattern of: `caprovince`
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Canada (CA)
- Languages: English (en)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
(NL|PE|NS|NB|QC|ON|MB|SK|AB|BC|YT|NT|NU)
```

## Mappings

- fta: `STATE_PROVINCE.PROVINCE_CA`

## Supported by tools

- `fta`
- `ibmknowledgecatalog`
- `talend`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Provinces_and_territories_of_Canada>

## Quality

Score 55/100. Missing: longer description, anchored regexp, examples, negative example, translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/caprovincecode.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/geo/caprovincecode.yaml>
