-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i49: Add collective codes from ISO 639-5
- Loading branch information
1 parent
87f6680
commit 2655d6c
Showing
9 changed files
with
212 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
URI code Label (English) Label (French) | ||
http://id.loc.gov/vocabulary/iso639-5/aav aav Austro-Asiatic languages austro-asiatiques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/afa afa Afro-Asiatic languages afro-asiatiques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/alg alg Algonquian languages algonquines, langues | ||
http://id.loc.gov/vocabulary/iso639-5/alv alv Atlantic-Congo languages atlantique-congo, langues | ||
http://id.loc.gov/vocabulary/iso639-5/apa apa Apache languages apaches, langues | ||
http://id.loc.gov/vocabulary/iso639-5/aqa aqa Alacalufan languages alacalufanes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/aql aql Algic languages algiques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/art art Artificial languages artificielles, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ath ath Athapascan languages athapascanes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/auf auf Arauan languages arauanes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/aus aus Australian languages australiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/awd awd Arawakan languages arawak, langues | ||
http://id.loc.gov/vocabulary/iso639-5/azc azc Uto-Aztecan languages uto-aztèques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/bad bad Banda languages banda, langues | ||
http://id.loc.gov/vocabulary/iso639-5/bai bai Bamileke languages bamiléké, langues | ||
http://id.loc.gov/vocabulary/iso639-5/bat bat Baltic languages baltes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ber ber Berber languages berbères, langues | ||
http://id.loc.gov/vocabulary/iso639-5/bih bih Bihari languages langues biharis | ||
http://id.loc.gov/vocabulary/iso639-5/bnt bnt Bantu languages bantou, langues | ||
http://id.loc.gov/vocabulary/iso639-5/btk btk Batak languages batak, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cai cai Central American Indian languages amérindiennes de l'Amérique centrale, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cau cau Caucasian languages caucasiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cba cba Chibchan languages chibcha, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ccn ccn North Caucasian languages caucasiennes du Nord, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ccs ccs South Caucasian languages caucasiennes du Sud, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cdc cdc Chadic languages tchadiques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cdd cdd Caddoan languages caddoanes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cel cel Celtic languages celtiques, langues; celtes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cmc cmc Chamic languages chames, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cpe cpe Creoles and pidgins, English‑based créoles et pidgins basés sur l'anglais | ||
http://id.loc.gov/vocabulary/iso639-5/cpf cpf Creoles and pidgins, French‑based créoles et pidgins basés sur le français | ||
http://id.loc.gov/vocabulary/iso639-5/cpp cpp Creoles and pidgins, Portuguese-based créoles et pidgins basés sur le portugais | ||
http://id.loc.gov/vocabulary/iso639-5/crp crp Creoles and pidgins créoles et pidgins | ||
http://id.loc.gov/vocabulary/iso639-5/csu csu Central Sudanic languages soudaniques centrales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/cus cus Cushitic languages couchitiques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/day day Land Dayak languages dayak, langues | ||
http://id.loc.gov/vocabulary/iso639-5/dmn dmn Mande languages mandé, langues | ||
http://id.loc.gov/vocabulary/iso639-5/dra dra Dravidian languages dravidiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/egx egx Egyptian languages égyptiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/esx esx Eskimo-Aleut languages esquimaudes-aléoutiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/euq euq Basque (family) basque (famille) | ||
http://id.loc.gov/vocabulary/iso639-5/fiu fiu Finno-Ugrian languages finno-ougriennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/fox fox Formosan languages formosanes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/gem gem Germanic languages germaniques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/gme gme East Germanic languages germaniques orientales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/gmq gmq North Germanic languages germaniques septentrionales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/gmw gmw West Germanic languages germaniques occidentales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/grk grk Greek languages grecques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/hmx hmx Hmong-Mien languages hmong-mien, langues | ||
http://id.loc.gov/vocabulary/iso639-5/hok hok Hokan languages hoka, langues | ||
http://id.loc.gov/vocabulary/iso639-5/hyx hyx Armenian (family) arménien (famille) | ||
http://id.loc.gov/vocabulary/iso639-5/iir iir Indo-Iranian languages indo-iraniennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ijo ijo Ijo languages ijo, langues | ||
http://id.loc.gov/vocabulary/iso639-5/inc inc Indic languages indo-aryennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ine ine Indo-European languages indo-européennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ira ira Iranian languages iraniennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/iro iro Iroquoian languages iroquoises, langues | ||
http://id.loc.gov/vocabulary/iso639-5/itc itc Italic languages italiques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/jpx jpx Japanese (family) japonais (famille) | ||
http://id.loc.gov/vocabulary/iso639-5/kar kar Karen languages karen, langues | ||
http://id.loc.gov/vocabulary/iso639-5/kdo kdo Kordofanian languages kordofaniennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/khi khi Khoisan languages khoïsan, langues | ||
http://id.loc.gov/vocabulary/iso639-5/kro kro Kru languages krou, langues | ||
http://id.loc.gov/vocabulary/iso639-5/map map Austronesian languages austronésiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/mkh mkh Mon-Khmer languages môn-khmer, langues | ||
http://id.loc.gov/vocabulary/iso639-5/mno mno Manobo languages manobo, langues | ||
http://id.loc.gov/vocabulary/iso639-5/mun mun Munda languages mounda, langues | ||
http://id.loc.gov/vocabulary/iso639-5/myn myn Mayan languages maya, langues | ||
http://id.loc.gov/vocabulary/iso639-5/nah nah Nahuatl languages nahuatl, langues | ||
http://id.loc.gov/vocabulary/iso639-5/nai nai North American Indian languages nord-amérindiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ngf ngf Trans-New Guinea languages trans-nouvelle-guinée, langues | ||
http://id.loc.gov/vocabulary/iso639-5/nic nic Niger-Kordofanian languages nigéro-kordofaniennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/nub nub Nubian languages nubiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/omq omq Oto-Manguean languages otomangue, langues | ||
http://id.loc.gov/vocabulary/iso639-5/omv omv Omotic languages omotiques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/oto oto Otomian languages otomi, langues | ||
http://id.loc.gov/vocabulary/iso639-5/paa paa Papuan languages papoues, langues | ||
http://id.loc.gov/vocabulary/iso639-5/phi phi Philippine languages philippines, langues | ||
http://id.loc.gov/vocabulary/iso639-5/plf plf Central Malayo-Polynesian languages malayo-polynésiennes centrales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/poz poz Malayo-Polynesian languages malayo-polynésiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/pqe pqe Eastern Malayo-Polynesian languages malayo-polynésiennes orientales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/pqw pqw Western Malayo-Polynesian languages malayo-polynésiennes occidentales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/pra pra Prakrit languages prâkrit, langues | ||
http://id.loc.gov/vocabulary/iso639-5/qwe qwe Quechuan (family) quechua (famille) | ||
http://id.loc.gov/vocabulary/iso639-5/roa roa Romance languages romanes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/sai sai South American Indian languages sud-amérindiennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/sal sal Salishan languages salishennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/sdv sdv Eastern Sudanic languages soudaniques orientales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/sem sem Semitic languages sémitiques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/sgn sgn sign languages langues des signes | ||
http://id.loc.gov/vocabulary/iso639-5/sio sio Siouan languages sioux, langues | ||
http://id.loc.gov/vocabulary/iso639-5/sit sit Sino-Tibetan languages sino-tibétaines, langues | ||
http://id.loc.gov/vocabulary/iso639-5/sla sla Slavic languages slaves, langues | ||
http://id.loc.gov/vocabulary/iso639-5/smi smi Sami languages sames, langues | ||
http://id.loc.gov/vocabulary/iso639-5/son son Songhai languages songhai, langues | ||
http://id.loc.gov/vocabulary/iso639-5/sqj sqj Albanian languages albanaises, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ssa ssa Nilo-Saharan languages nilo-sahariennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/syd syd Samoyedic languages samoyèdes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/tai tai Tai languages tai, langues | ||
http://id.loc.gov/vocabulary/iso639-5/tbq tbq Tibeto-Burman languages tibéto-birmanes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/trk trk Turkic languages turques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/tup tup Tupi languages tupi, langues | ||
http://id.loc.gov/vocabulary/iso639-5/tut tut Altaic languages altaïques, langues | ||
http://id.loc.gov/vocabulary/iso639-5/tuw tuw Tungus languages toungouses, langues | ||
http://id.loc.gov/vocabulary/iso639-5/urj urj Uralic languages ouraliennes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/wak wak Wakashan languages wakashanes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/wen wen Sorbian languages sorabes, langues | ||
http://id.loc.gov/vocabulary/iso639-5/xgn xgn Mongolian languages mongoles, langues | ||
http://id.loc.gov/vocabulary/iso639-5/xnd xnd Na-Dene languages na-déné, langues | ||
http://id.loc.gov/vocabulary/iso639-5/ypk ypk Yupik languages yupik, langues | ||
http://id.loc.gov/vocabulary/iso639-5/zhx zhx Chinese (family) chinois (famille) | ||
http://id.loc.gov/vocabulary/iso639-5/zle zle East Slavic languages slaves orientales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/zls zls South Slavic languages slaves méridionales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/zlw zlw West Slavic languages slaves occidentales, langues | ||
http://id.loc.gov/vocabulary/iso639-5/znd znd Zande languages zandé, langues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
module Languages | ||
# Collective Language Code defined in ISO 639-5 | ||
class Collective < Language | ||
# rubocop:disable Lint/MissingSuper | ||
def initialize(csv_attributes) | ||
@iso639_3 = nil | ||
@iso639_2b = csv_attributes['code']&.to_sym | ||
@iso639_2t = csv_attributes['code']&.to_sym | ||
@iso639_1 = nil | ||
@scope = :collective | ||
@type = :collective | ||
@name = csv_attributes['Label (English)'] | ||
end | ||
# rubocop:enable Lint/MissingSuper | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test_helper' | ||
|
||
class TestCollective < Minitest::Test | ||
def setup | ||
@collective = ::Languages::Collective.new({ | ||
'code' => 'nah', | ||
'Label (English)' => 'Nahuatl languages' | ||
}) | ||
end | ||
|
||
def test_that_it_has_a_name | ||
assert_instance_of String, @collective.name | ||
assert_equal 'Nahuatl languages', @collective.name | ||
end | ||
|
||
def test_that_it_has_no_alpha2 | ||
assert_nil @collective.alpha2 | ||
end | ||
|
||
def test_it_has_alpha3_bibliographic | ||
assert_equal :nah, @collective.alpha3_bibliographic | ||
end | ||
|
||
def test_it_has_collective_type | ||
assert_equal :collective, @collective.type | ||
end | ||
|
||
def test_it_has_collective_scope | ||
assert_equal :collective, @collective.scope | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters