Datatypes › Common › language

ISO 639-1 language code (two letters)

ID iso639_1

Pattern of languageNot PIIcategoricalDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

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 language
Categories
Common
Countries
Global (not tied to a country)
Languages
Common to most languages
FTA
LANGUAGE.ISO-639-1
Wikidata
P218
Quality
100/100
Metacrafter rules
no detection rule yet
Supported by tools
FTA (Fast Text Analysis), Great Expectations Semantic Types Expectations, Pydantic and pydantic-extra-types, Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory), validator.js

Regular expression

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

Python re syntax.

Test a value

Examples

ValueDescription
en English
de German
JA Japanese, in uppercase
eng invalid a three-letter ISO 639-2 code

Translations

LanguageNameDescription
RussianКод языка ISO 639-1

Sources

Use this record