ISO 639 Databases
This repository is borne out of a need for a singular database of languages mapped to their ISO 639-1 and ISO 639-3 codes with their native name (“autonym”) listed against their tags.
This database has been extended to include tables for resolving default ISO 15924 scripts for a given ISO 639 tag, and a table for resolving locales to LCIDs for Microsoft Windows and Microsoft Office-related localisation efforts.
BCP 47 Autonyms - bcp47-autonyms.tsv
While the data has initially been generated from standard sources, contributions are welcomed for any overly-anglicised names (those not using the native character set of the language) or those languages with name variants that have not been included.
Interpretation
Each row is a BCP 47 language tag split into its parts. tag3 and tag1 columns represent the ISO 639-3 (or -5) and -1 tags respectively, script is an ISO 15924 script code, and region is an ISO 3166-1 alpha-2 or UN M.49 region code. To build the tag, use tag1 if present, otherwise tag3, then append script and region if present, for example se, se-FI or crk-Cans.
A blank script means the row is in the language’s default script, as given by iso639-default-script.tsv, and a blank region means the row applies regardless of region. Look up the most specific tag first, then fall back by dropping the region, then the script. For example, sr gives Српски and sr-Latn gives Srpski.
More tag columns may be added to the end in future, so read columns by their header name rather than by position.
The common_name field is what the speakers call their language in English. This may differ from the ISO 639-3 reference name.
The autonym field is what the speakers call their language in that language. Where the autonym is the same as the common_name, the autonym field is left blank.
A blank autonym therefore means either that it is the same as the common_name, or that there is no confirmed autonym for this language in this database. In both cases, use the common_name field.
Sources
Here are the currently utilised sources by this table:
ISO 639 Default Script (ISO 15924) - iso639-default-script.tsv
Interpretation
tag3 and tag1 columns represent the ISO 639-3 and -1 tags respectively.
The script field is the most likely valid ISO 15924 script given no more context than just simply the ISO 639 tag. An example case is crk, which nominally exists in both Latn and Cans forms, where software should reasonable expect that crk with no other context to be considered to be Latn by default.
Sources
Here are the currently utilised sources by this table:
ISO 639 Microsoft Office LCIDs - iso639-lcids.tsv
The LCIDs used in this table are defined by MS-LCID: Windows Language Code Identifier (LCID) Reference, with Office-only LCIDs from MS-OE376: 2.1.1907 Part 4 Section 7.6.2.39, LCID (Locale ID). Where the two disagree, MS-LCID is used. Languages that Windows only identifies with the unassigned LCID 0x1000 are not included.
Interpretation
tag3 and tag1 columns represent the ISO 639-3 and -1 tags respectively.
In effect, if a field is blank, it indicates that in BCP47 form, that segment should not be included to be equal to the given LCID. For example, ar is 1025, while ar-AE is 14337.
ISO 639-5 Language Families - iso639-5.json
This table is sourced from the authoritative source, the Library of Congress.
Interpretation
tag5 represents the ISO 639-5 language family tag, name represents the English name of the language family, and hierarchy represents the hierarchy of the language family.
License
Databases in many countries do not attract intellectual property rights, and where they do it, they very rarely attract copyright due to the raw and inexpressive nature of the data. However, to alleviate doubt, this data is being published by a resident of Sweden where sui generis database rights do not apply to non-EU datasets. CLDR and Ethnologue are both datasets published in the US, where database rights also do not apply.
However, for those who have annoying and immovable legal teams and want to use this in a product, the dataset is licensed under the Creative Commons Zero 1.0 license.
Contributing
Any contributions to this repository are on the condition that the contributor relinquishes all database rights, copyrights and all other intellectual property rights or claims to the contribution.
Mark the source as github in the data.
评论