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

# ISO 639-2 language code (three letters) (`iso639_2`)

> **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.

Three-letter code of a language from ISO 639-2, such as eng (English) or rus (Russian). About twenty languages have two codes: a bibliographic one based on the English name (ger, fre) and a terminology one based on the native name (deu, fra).

- 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]{3}|[A-Z]{3})$
```

## Examples

- `eng` — English
- `rus` — Russian
- `deu` — German, terminology code
- `ger` — German, bibliographic code
- `en` (invalid example) — a two-letter ISO 639-1 code

## Mappings

- fta: `LANGUAGE.ISO-639-2`
- wikidata: `P219`

## Supported by tools

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

## Translations

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

## Sources

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

## Quality

Score 100/100.

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