---
id: "iso639_1"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["common"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/iso639_1"
---

# ISO 639-1 language code (two letters) (`iso639_1`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Two-letter code of a language from ISO 639-1, such as en (English), de (German) or ja (Japanese). About 180 languages have such a code. It is written in lowercase, but data sets often use uppercase.

- Pattern of: `language`
- Personal data (PII): no
- Categories: Common (common)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:[a-z]{2}|[A-Z]{2})$
```

## Examples

- `en` — English
- `de` — German
- `JA` — Japanese, in uppercase
- `eng` (invalid example) — a three-letter ISO 639-2 code

## Mappings

- fta: `LANGUAGE.ISO-639-1`
- wikidata: `P218`

## Supported by tools

- `fta`
- `greatexpectations`
- `talend`

## Translations

- ru: Код языка ISO 639-1

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/ISO_639-1>
- wikidata: <https://www.wikidata.org/wiki/Property:P218>
- other: <https://github.com/tsegall/fta/blob/main/SemanticTypes.md>

## Quality

Score 100/100.

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