Language code
A language code is a code that assigns letters and/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-name.
Difficulties of classification
Language code schemes attempt to classify within 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, most people in Central America and South America speak Spanish. 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 idioms.
Common schemes
Some common language code schemes include:
Scheme | Notes | Examples | |
---|---|---|---|
Codes for English | Codes for Spanish | ||
ISO 639 | The original ISO standard from 1967 to 2002. Now obsolete, it was replaced by ISO 639‑1, ISO 639‑2, and ISO 639‑3. Sometimes used as a shorthand for the union of all 639 standard codes. |
(source: Library of Congress[1]) |
|
ISO 639‑1 | Two-letter code system made official in 2002, containing 136 codes. Many systems use two-letter ISO 639‑1 codes supplemented by three-letter ISO 639‑2 codes when no two-letter code is applicable. |
(from List of ISO 639‑1 codes) |
|
ISO 639‑2 | Three-letter system of 464 codes. |
(from List of ISO 639‑2 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. |
(from List of ISO 639‑3 codes) |
|
Old SIL codes | Codes created for use in the Ethnologue, a publication of SIL International that lists language statistics. The publication now uses ISO 639‑3 codes. | SPN | |
IETF language tag | An IETF best practice, currently specified by RFC 5646 and RFC 4647, for language tags easy to parse by computer. The tag system is extensible to region, dialect, and private designations. |
|
|
LS‑2010 | Two-digit + one to six letter Linguasphere code system published in 2000, updated 2010, containing over 32,000 codes. |
(within hierarchy of Linguasphere-2010 codes, as follows:)
compare: 52-ABA-a Scots + Northumbrian |
(within hierarchy of Linguasphere-2010 codes, as follows:)
compare: 51-AAA-a Português + Galego outer unit & |
Verbix Language Codes | Constructed codes starting with old SIL codes and adding more information.[3] |
See also
- Country code
- Ethnologue (SIL code)
- HTTP Accept-Language header
- IETF language tag
- ISO 639
- List of ISO 639-1 codes
- Codes for constructed languages
- Linguasphere language code
References
- ↑ ISO 639 Language Codes, Library of Congress
- ↑ Best Current Practice 47 – Tags for Identifying Languages, IETF
- ↑ Verbix language codes, Verbix