Language code
A language code is a code that assigns letters or numbers as identifiers or classifiers for languages. These codes may be used to organize library collections or presentations of data, to choose the correct localizations and translations in computing, and as a shorthand designation for longer forms of language names.
Difficulties of classification
Language code schemes attempt to classify the complex world of human languages, dialects, and variants. Most schemes make some compromises between being general and being complete enough to support specific dialects.
For example, Spanish is spoken in over 20 countries in North America, Central America, the Caribbean, and Europe. Spanish spoken in Mexico will be slightly different from Spanish spoken in Peru. Different regions of Mexico will have slightly different dialects and accents of Spanish. A language code scheme might group these all as "Spanish" for choosing a keyboard layout, most as "Spanish" for general usage, or separate each dialect to allow region-specific variation.
Common schemes
Scheme | Notes | Examples for English | Examples for Spanish |
---|---|---|---|
Glottolog codes | Created for minority languages as a scientific alternative to the industrial ISO 639‑3 standard. Intentionally do not resemble abbreviations. |
|
|
IETF language tag | An IETF best practice, specified by BCP 47,[1] for language tags easy to parse by computer. The tag system is extensible to region, dialect, and private designations. It references ISO 639, ISO 3166 and ISO 15924. |
|
|
ISO 639‑1 | Two-letter code system made official in 2002, containing 136 codes at the time. Many systems use two-letter ISO 639‑1 codes supplemented by three-letter ISO 639‑2 codes when no two-letter code is applicable.
There are 183 two-letter codes registered as of June 2021. See: List of ISO 639 language codes |
|
|
ISO 639‑2 | Three-letter system of 464 codes. |
|
|
ISO 639‑3 | An extension of ISO 639‑2 to cover all known, living or dead, spoken or written languages in 7,589 entries. |
|
|
Linguasphere Register code-system | Two-digit + one to six letter Linguasphere Register code-system published in 2000,[3] containing over 32,000 codes within 10 sectors of reference, covering the world's languages and speech communities.
Navigate also the hierarchy of the Linguasphere Register code-system published online by hortensj-garden.org [4] |
Within hierarchy of Linguasphere Register code-system:
Compare: 52-ABA-a Scots + Northumbrian |
Within hierarchy of Linguasphere Register code-system:
Compare: 51-AAA-a Português + Galego outer unit & 51-AAA-c Astur + Leonés outer unit, etc. |
SIL codes (10th–14th editions) | Codes created for use in the Ethnologue, a publication of SIL International that lists language statistics. The publication now uses ISO 639‑3 codes. | ENG | SPN |
Verbix language codes | Constructed codes starting with old SIL codes and adding more information.[5] | ENG | SPN |
See also
- Accept-Language
- Codes for constructed languages
- Country code
- Flag icons for languages
- List of ISO 639-1 codes - codes for common languages
- List of ISO 639-2 codes - expanded 3 character code list of all languages coded by ISO
- Locale (computer software)
References
- ^ "Information on BCP 47 » RFC Editor".
- ^ Best Current Practice 47 – Tags for Identifying Languages, IETF
- ^ "The Linguasphere Register in PDF". l’Observatoire linguistique (Linguasphere Observatory). Archived from the original on 27 April 2015. Retrieved 20 April 2015.
- ^ "Linguasphere Register hierarchy". Retrieved 8 June 2016.
- ^ Verbix language codes Archived 2009-04-01 at the Wayback Machine, Verbix
External links
- List of usual language codes and its variants
- Language Tags in HTML and XML
- Language Identifiers in the Markup Context