File Coverage

blib/lib/ISO/639_1.pm
Criterion Covered Total %
statement 34 37 91.8
branch 8 12 66.6
condition 1 3 33.3
subroutine 9 9 100.0
pod 4 4 100.0
total 56 65 86.1


line stmt bran cond sub pod time code
1             # vim:set sw=4 ts=4 sts=4 ft=perl expandtab:
2             package ISO::639_1;
3 2     2   69645 use 5.008001;
  2         16  
4 2     2   10 use strict;
  2         5  
  2         38  
5 2     2   9 use warnings;
  2         4  
  2         52  
6 2     2   9 use Exporter 'import';
  2         3  
  2         7522  
7              
8             our $VERSION = "0.04";
9              
10             our @EXPORT = qw(get_iso639_1 get_iso639_1_from_639_2 get_iso639_1_from_name get_iso639_1_from_native_name);
11              
12             my %codes = (
13             "aa" => {
14             "639-1" => "aa",
15             "639-2" => "aar",
16             "family" => "Afro-Asiatic",
17             "name" => "Afar",
18             "nativeName" => "Afaraf",
19             "wikiUrl" => "https://en.wikipedia.org/wiki/Afar_language"
20             },
21             "ab" => {
22             "639-1" => "ab",
23             "639-2" => "abk",
24             "family" => "Northwest Caucasian",
25             "name" => "Abkhaz",
26             "nativeName" => "аҧсуа бызшәа, аҧсшәа",
27             "wikiUrl" => "https://en.wikipedia.org/wiki/Abkhaz_language"
28             },
29             "ae" => {
30             "639-1" => "ae",
31             "639-2" => "ave",
32             "family" => "Indo-European",
33             "name" => "Avestan",
34             "nativeName" => "avesta",
35             "wikiUrl" => "https://en.wikipedia.org/wiki/Avestan_language"
36             },
37             "af" => {
38             "639-1" => "af",
39             "639-2" => "afr",
40             "family" => "Indo-European",
41             "name" => "Afrikaans",
42             "nativeName" => "Afrikaans",
43             "wikiUrl" => "https://en.wikipedia.org/wiki/Afrikaans_language"
44             },
45             "ak" => {
46             "639-1" => "ak",
47             "639-2" => "aka",
48             "family" => "Niger–Congo",
49             "name" => "Akan",
50             "nativeName" => "Akan",
51             "wikiUrl" => "https://en.wikipedia.org/wiki/Akan_language"
52             },
53             "am" => {
54             "639-1" => "am",
55             "639-2" => "amh",
56             "family" => "Afro-Asiatic",
57             "name" => "Amharic",
58             "nativeName" => "አማርኛ",
59             "wikiUrl" => "https://en.wikipedia.org/wiki/Amharic_language"
60             },
61             "an" => {
62             "639-1" => "an",
63             "639-2" => "arg",
64             "family" => "Indo-European",
65             "name" => "Aragonese",
66             "nativeName" => "aragonés",
67             "wikiUrl" => "https://en.wikipedia.org/wiki/Aragonese_language"
68             },
69             "ar" => {
70             "639-1" => "ar",
71             "639-2" => "ara",
72             "family" => "Afro-Asiatic",
73             "name" => "Arabic",
74             "nativeName" => "العربية",
75             "wikiUrl" => "https://en.wikipedia.org/wiki/Arabic_language"
76             },
77             "as" => {
78             "639-1" => "as",
79             "639-2" => "asm",
80             "family" => "Indo-European",
81             "name" => "Assamese",
82             "nativeName" => "অসমীয়া",
83             "wikiUrl" => "https://en.wikipedia.org/wiki/Assamese_language"
84             },
85             "av" => {
86             "639-1" => "av",
87             "639-2" => "ava",
88             "family" => "Northeast Caucasian",
89             "name" => "Avaric",
90             "nativeName" => "авар мацӀ, магӀарул мацӀ",
91             "wikiUrl" => "https://en.wikipedia.org/wiki/Avar_language"
92             },
93             "ay" => {
94             "639-1" => "ay",
95             "639-2" => "aym",
96             "family" => "Aymaran",
97             "name" => "Aymara",
98             "nativeName" => "aymar aru",
99             "wikiUrl" => "https://en.wikipedia.org/wiki/Aymara_language"
100             },
101             "az" => {
102             "639-1" => "az",
103             "639-2" => "aze",
104             "family" => "Turkic",
105             "name" => "Azerbaijani",
106             "nativeName" => "azərbaycan dili",
107             "wikiUrl" => "https://en.wikipedia.org/wiki/Azerbaijani_language"
108             },
109             "ba" => {
110             "639-1" => "ba",
111             "639-2" => "bak",
112             "family" => "Turkic",
113             "name" => "Bashkir",
114             "nativeName" => "башҡорт теле",
115             "wikiUrl" => "https://en.wikipedia.org/wiki/Bashkir_language"
116             },
117             "be" => {
118             "639-1" => "be",
119             "639-2" => "bel",
120             "family" => "Indo-European",
121             "name" => "Belarusian",
122             "nativeName" => "беларуская мова",
123             "wikiUrl" => "https://en.wikipedia.org/wiki/Belarusian_language"
124             },
125             "bg" => {
126             "639-1" => "bg",
127             "639-2" => "bul",
128             "family" => "Indo-European",
129             "name" => "Bulgarian",
130             "nativeName" => "български език",
131             "wikiUrl" => "https://en.wikipedia.org/wiki/Bulgarian_language"
132             },
133             "bh" => {
134             "639-1" => "bh",
135             "639-2" => "bih",
136             "family" => "Indo-European",
137             "name" => "Bihari",
138             "nativeName" => "भोजपुरी",
139             "wikiUrl" => "https://en.wikipedia.org/wiki/Bihari_languages"
140             },
141             "bi" => {
142             "639-1" => "bi",
143             "639-2" => "bis",
144             "family" => "Creole",
145             "name" => "Bislama",
146             "nativeName" => "Bislama",
147             "wikiUrl" => "https://en.wikipedia.org/wiki/Bislama_language"
148             },
149             "bm" => {
150             "639-1" => "bm",
151             "639-2" => "bam",
152             "family" => "Niger–Congo",
153             "name" => "Bambara",
154             "nativeName" => "bamanankan",
155             "wikiUrl" => "https://en.wikipedia.org/wiki/Bambara_language"
156             },
157             "bn" => {
158             "639-1" => "bn",
159             "639-2" => "ben",
160             "family" => "Indo-European",
161             "name" => "Bengali, Bangla",
162             "nativeName" => "বাংলা",
163             "wikiUrl" => "https://en.wikipedia.org/wiki/Bengali_language"
164             },
165             "bo" => {
166             "639-1" => "bo",
167             "639-2" => "bod",
168             "639-2/B" => "tib",
169             "family" => "Sino-Tibetan",
170             "name" => "Tibetan Standard, Tibetan, Central",
171             "nativeName" => "བོད་ཡིག",
172             "wikiUrl" => "https://en.wikipedia.org/wiki/Standard_Tibetan"
173             },
174             "br" => {
175             "639-1" => "br",
176             "639-2" => "bre",
177             "family" => "Indo-European",
178             "name" => "Breton",
179             "nativeName" => "brezhoneg",
180             "wikiUrl" => "https://en.wikipedia.org/wiki/Breton_language"
181             },
182             "bs" => {
183             "639-1" => "bs",
184             "639-2" => "bos",
185             "family" => "Indo-European",
186             "name" => "Bosnian",
187             "nativeName" => "bosanski jezik",
188             "wikiUrl" => "https://en.wikipedia.org/wiki/Bosnian_language"
189             },
190             "ca" => {
191             "639-1" => "ca",
192             "639-2" => "cat",
193             "family" => "Indo-European",
194             "name" => "Catalan",
195             "nativeName" => "català",
196             "wikiUrl" => "https://en.wikipedia.org/wiki/Catalan_language"
197             },
198             "ce" => {
199             "639-1" => "ce",
200             "639-2" => "che",
201             "family" => "Northeast Caucasian",
202             "name" => "Chechen",
203             "nativeName" => "нохчийн мотт",
204             "wikiUrl" => "https://en.wikipedia.org/wiki/Chechen_language"
205             },
206             "ch" => {
207             "639-1" => "ch",
208             "639-2" => "cha",
209             "family" => "Austronesian",
210             "name" => "Chamorro",
211             "nativeName" => "Chamoru",
212             "wikiUrl" => "https://en.wikipedia.org/wiki/Chamorro_language"
213             },
214             "co" => {
215             "639-1" => "co",
216             "639-2" => "cos",
217             "family" => "Indo-European",
218             "name" => "Corsican",
219             "nativeName" => "corsu, lingua corsa",
220             "wikiUrl" => "https://en.wikipedia.org/wiki/Corsican_language"
221             },
222             "cr" => {
223             "639-1" => "cr",
224             "639-2" => "cre",
225             "family" => "Algonquian",
226             "name" => "Cree",
227             "nativeName" => "ᓀᐦᐃᔭᐍᐏᐣ",
228             "wikiUrl" => "https://en.wikipedia.org/wiki/Cree_language"
229             },
230             "cs" => {
231             "639-1" => "cs",
232             "639-2" => "ces",
233             "639-2/B" => "cze",
234             "family" => "Indo-European",
235             "name" => "Czech",
236             "nativeName" => "čeština, český jazyk",
237             "wikiUrl" => "https://en.wikipedia.org/wiki/Czech_language"
238             },
239             "cu" => {
240             "639-1" => "cu",
241             "639-2" => "chu",
242             "family" => "Indo-European",
243             "name" => "Old Church Slavonic, Church Slavonic, Old Bulgarian",
244             "nativeName" => "ѩзыкъ словѣньскъ",
245             "wikiUrl" => "https://en.wikipedia.org/wiki/Old_Church_Slavonic"
246             },
247             "cv" => {
248             "639-1" => "cv",
249             "639-2" => "chv",
250             "family" => "Turkic",
251             "name" => "Chuvash",
252             "nativeName" => "чӑваш чӗлхи",
253             "wikiUrl" => "https://en.wikipedia.org/wiki/Chuvash_language"
254             },
255             "cy" => {
256             "639-1" => "cy",
257             "639-2" => "cym",
258             "639-2/B" => "wel",
259             "family" => "Indo-European",
260             "name" => "Welsh",
261             "nativeName" => "Cymraeg",
262             "wikiUrl" => "https://en.wikipedia.org/wiki/Welsh_language"
263             },
264             "da" => {
265             "639-1" => "da",
266             "639-2" => "dan",
267             "family" => "Indo-European",
268             "name" => "Danish",
269             "nativeName" => "dansk",
270             "wikiUrl" => "https://en.wikipedia.org/wiki/Danish_language"
271             },
272             "de" => {
273             "639-1" => "de",
274             "639-2" => "deu",
275             "639-2/B" => "ger",
276             "family" => "Indo-European",
277             "name" => "German",
278             "nativeName" => "Deutsch",
279             "wikiUrl" => "https://en.wikipedia.org/wiki/German_language"
280             },
281             "dv" => {
282             "639-1" => "dv",
283             "639-2" => "div",
284             "family" => "Indo-European",
285             "name" => "Divehi, Dhivehi, Maldivian",
286             "nativeName" => "ދިވެހި",
287             "wikiUrl" => "https://en.wikipedia.org/wiki/Dhivehi_language"
288             },
289             "dz" => {
290             "639-1" => "dz",
291             "639-2" => "dzo",
292             "family" => "Sino-Tibetan",
293             "name" => "Dzongkha",
294             "nativeName" => "རྫོང་ཁ",
295             "wikiUrl" => "https://en.wikipedia.org/wiki/Dzongkha_language"
296             },
297             "ee" => {
298             "639-1" => "ee",
299             "639-2" => "ewe",
300             "family" => "Niger–Congo",
301             "name" => "Ewe",
302             "nativeName" => "Eʋegbe",
303             "wikiUrl" => "https://en.wikipedia.org/wiki/Ewe_language"
304             },
305             "el" => {
306             "639-1" => "el",
307             "639-2" => "ell",
308             "639-2/B" => "gre",
309             "family" => "Indo-European",
310             "name" => "Greek (modern)",
311             "nativeName" => "ελληνικά",
312             "wikiUrl" => "https://en.wikipedia.org/wiki/Greek_language"
313             },
314             "en" => {
315             "639-1" => "en",
316             "639-2" => "eng",
317             "family" => "Indo-European",
318             "name" => "English",
319             "nativeName" => "English",
320             "wikiUrl" => "https://en.wikipedia.org/wiki/English_language"
321             },
322             "eo" => {
323             "639-1" => "eo",
324             "639-2" => "epo",
325             "family" => "Constructed",
326             "name" => "Esperanto",
327             "nativeName" => "Esperanto",
328             "wikiUrl" => "https://en.wikipedia.org/wiki/Esperanto"
329             },
330             "es" => {
331             "639-1" => "es",
332             "639-2" => "spa",
333             "family" => "Indo-European",
334             "name" => "Spanish",
335             "nativeName" => "Español",
336             "wikiUrl" => "https://en.wikipedia.org/wiki/Spanish_language"
337             },
338             "et" => {
339             "639-1" => "et",
340             "639-2" => "est",
341             "family" => "Uralic",
342             "name" => "Estonian",
343             "nativeName" => "eesti, eesti keel",
344             "wikiUrl" => "https://en.wikipedia.org/wiki/Estonian_language"
345             },
346             "eu" => {
347             "639-1" => "eu",
348             "639-2" => "eus",
349             "639-2/B" => "baq",
350             "family" => "Language isolate",
351             "name" => "Basque",
352             "nativeName" => "euskara, euskera",
353             "wikiUrl" => "https://en.wikipedia.org/wiki/Basque_language"
354             },
355             "fa" => {
356             "639-1" => "fa",
357             "639-2" => "fas",
358             "639-2/B" => "per",
359             "family" => "Indo-European",
360             "name" => "Persian (Farsi)",
361             "nativeName" => "فارسی",
362             "wikiUrl" => "https://en.wikipedia.org/wiki/Persian_language"
363             },
364             "ff" => {
365             "639-1" => "ff",
366             "639-2" => "ful",
367             "family" => "Niger–Congo",
368             "name" => "Fula, Fulah, Pulaar, Pular",
369             "nativeName" => "Fulfulde, Pulaar, Pular",
370             "wikiUrl" => "https://en.wikipedia.org/wiki/Fula_language"
371             },
372             "fi" => {
373             "639-1" => "fi",
374             "639-2" => "fin",
375             "family" => "Uralic",
376             "name" => "Finnish",
377             "nativeName" => "suomi, suomen kieli",
378             "wikiUrl" => "https://en.wikipedia.org/wiki/Finnish_language"
379             },
380             "fj" => {
381             "639-1" => "fj",
382             "639-2" => "fij",
383             "family" => "Austronesian",
384             "name" => "Fijian",
385             "nativeName" => "vosa Vakaviti",
386             "wikiUrl" => "https://en.wikipedia.org/wiki/Fijian_language"
387             },
388             "fo" => {
389             "639-1" => "fo",
390             "639-2" => "fao",
391             "family" => "Indo-European",
392             "name" => "Faroese",
393             "nativeName" => "føroyskt",
394             "wikiUrl" => "https://en.wikipedia.org/wiki/Faroese_language"
395             },
396             "fr" => {
397             "639-1" => "fr",
398             "639-2" => "fra",
399             "639-2/B" => "fre",
400             "family" => "Indo-European",
401             "name" => "French",
402             "nativeName" => "Français",
403             "wikiUrl" => "https://en.wikipedia.org/wiki/French_language"
404             },
405             "fy" => {
406             "639-1" => "fy",
407             "639-2" => "fry",
408             "family" => "Indo-European",
409             "name" => "Western Frisian",
410             "nativeName" => "Frysk",
411             "wikiUrl" => "https://en.wikipedia.org/wiki/West_Frisian_language"
412             },
413             "ga" => {
414             "639-1" => "ga",
415             "639-2" => "gle",
416             "family" => "Indo-European",
417             "name" => "Irish",
418             "nativeName" => "Gaeilge",
419             "wikiUrl" => "https://en.wikipedia.org/wiki/Irish_language"
420             },
421             "gd" => {
422             "639-1" => "gd",
423             "639-2" => "gla",
424             "family" => "Indo-European",
425             "name" => "Scottish Gaelic, Gaelic",
426             "nativeName" => "Gàidhlig",
427             "wikiUrl" => "https://en.wikipedia.org/wiki/Scottish_Gaelic_language"
428             },
429             "gl" => {
430             "639-1" => "gl",
431             "639-2" => "glg",
432             "family" => "Indo-European",
433             "name" => "Galician",
434             "nativeName" => "galego",
435             "wikiUrl" => "https://en.wikipedia.org/wiki/Galician_language"
436             },
437             "gn" => {
438             "639-1" => "gn",
439             "639-2" => "grn",
440             "family" => "Tupian",
441             "name" => "Guaraní",
442             "nativeName" => "Avañe'ẽ",
443             "wikiUrl" => "https://en.wikipedia.org/wiki/Guaran%C3%AD_language"
444             },
445             "gu" => {
446             "639-1" => "gu",
447             "639-2" => "guj",
448             "family" => "Indo-European",
449             "name" => "Gujarati",
450             "nativeName" => "ગુજરાતી",
451             "wikiUrl" => "https://en.wikipedia.org/wiki/Gujarati_language"
452             },
453             "gv" => {
454             "639-1" => "gv",
455             "639-2" => "glv",
456             "family" => "Indo-European",
457             "name" => "Manx",
458             "nativeName" => "Gaelg, Gailck",
459             "wikiUrl" => "https://en.wikipedia.org/wiki/Manx_language"
460             },
461             "ha" => {
462             "639-1" => "ha",
463             "639-2" => "hau",
464             "family" => "Afro-Asiatic",
465             "name" => "Hausa",
466             "nativeName" => "(Hausa) هَوُسَ",
467             "wikiUrl" => "https://en.wikipedia.org/wiki/Hausa_language"
468             },
469             "he" => {
470             "639-1" => "he",
471             "639-2" => "heb",
472             "family" => "Afro-Asiatic",
473             "name" => "Hebrew (modern)",
474             "nativeName" => "עברית",
475             "wikiUrl" => "https://en.wikipedia.org/wiki/Hebrew_language"
476             },
477             "hi" => {
478             "639-1" => "hi",
479             "639-2" => "hin",
480             "family" => "Indo-European",
481             "name" => "Hindi",
482             "nativeName" => "हिन्दी, हिंदी",
483             "wikiUrl" => "https://en.wikipedia.org/wiki/Hindi"
484             },
485             "ho" => {
486             "639-1" => "ho",
487             "639-2" => "hmo",
488             "family" => "Austronesian",
489             "name" => "Hiri Motu",
490             "nativeName" => "Hiri Motu",
491             "wikiUrl" => "https://en.wikipedia.org/wiki/Hiri_Motu_language"
492             },
493             "hr" => {
494             "639-1" => "hr",
495             "639-2" => "hrv",
496             "family" => "Indo-European",
497             "name" => "Croatian",
498             "nativeName" => "hrvatski jezik",
499             "wikiUrl" => "https://en.wikipedia.org/wiki/Croatian_language"
500             },
501             "ht" => {
502             "639-1" => "ht",
503             "639-2" => "hat",
504             "family" => "Creole",
505             "name" => "Haitian, Haitian Creole",
506             "nativeName" => "Kreyòl ayisyen",
507             "wikiUrl" => "https://en.wikipedia.org/wiki/Haitian_Creole_language"
508             },
509             "hu" => {
510             "639-1" => "hu",
511             "639-2" => "hun",
512             "family" => "Uralic",
513             "name" => "Hungarian",
514             "nativeName" => "magyar",
515             "wikiUrl" => "https://en.wikipedia.org/wiki/Hungarian_language"
516             },
517             "hy" => {
518             "639-1" => "hy",
519             "639-2" => "hye",
520             "639-2/B" => "arm",
521             "family" => "Indo-European",
522             "name" => "Armenian",
523             "nativeName" => "Հայերեն",
524             "wikiUrl" => "https://en.wikipedia.org/wiki/Armenian_language"
525             },
526             "hz" => {
527             "639-1" => "hz",
528             "639-2" => "her",
529             "family" => "Niger–Congo",
530             "name" => "Herero",
531             "nativeName" => "Otjiherero",
532             "wikiUrl" => "https://en.wikipedia.org/wiki/Herero_language"
533             },
534             "ia" => {
535             "639-1" => "ia",
536             "639-2" => "ina",
537             "family" => "Constructed",
538             "name" => "Interlingua",
539             "nativeName" => "Interlingua",
540             "wikiUrl" => "https://en.wikipedia.org/wiki/Interlingua"
541             },
542             "id" => {
543             "639-1" => "id",
544             "639-2" => "ind",
545             "family" => "Austronesian",
546             "name" => "Indonesian",
547             "nativeName" => "Bahasa Indonesia",
548             "wikiUrl" => "https://en.wikipedia.org/wiki/Indonesian_language"
549             },
550             "ie" => {
551             "639-1" => "ie",
552             "639-2" => "ile",
553             "family" => "Constructed",
554             "name" => "Interlingue",
555             "nativeName" => "Originally called Occidental; then Interlingue after WWII",
556             "wikiUrl" => "https://en.wikipedia.org/wiki/Interlingue_language"
557             },
558             "ig" => {
559             "639-1" => "ig",
560             "639-2" => "ibo",
561             "family" => "Niger–Congo",
562             "name" => "Igbo",
563             "nativeName" => "Asụsụ Igbo",
564             "wikiUrl" => "https://en.wikipedia.org/wiki/Igbo_language"
565             },
566             "ii" => {
567             "639-1" => "ii",
568             "639-2" => "iii",
569             "family" => "Sino-Tibetan",
570             "name" => "Nuosu",
571             "nativeName" => "ꆈꌠ꒿ Nuosuhxop",
572             "wikiUrl" => "https://en.wikipedia.org/wiki/Nuosu_language"
573             },
574             "ik" => {
575             "639-1" => "ik",
576             "639-2" => "ipk",
577             "family" => "Eskimo–Aleut",
578             "name" => "Inupiaq",
579             "nativeName" => "Iñupiaq, Iñupiatun",
580             "wikiUrl" => "https://en.wikipedia.org/wiki/Inupiaq_language"
581             },
582             "io" => {
583             "639-1" => "io",
584             "639-2" => "ido",
585             "family" => "Constructed",
586             "name" => "Ido",
587             "nativeName" => "Ido",
588             "wikiUrl" => "https://en.wikipedia.org/wiki/Ido_(language)"
589             },
590             "is" => {
591             "639-1" => "is",
592             "639-2" => "isl",
593             "639-2/B" => "ice",
594             "family" => "Indo-European",
595             "name" => "Icelandic",
596             "nativeName" => "Íslenska",
597             "wikiUrl" => "https://en.wikipedia.org/wiki/Icelandic_language"
598             },
599             "it" => {
600             "639-1" => "it",
601             "639-2" => "ita",
602             "family" => "Indo-European",
603             "name" => "Italian",
604             "nativeName" => "Italiano",
605             "wikiUrl" => "https://en.wikipedia.org/wiki/Italian_language"
606             },
607             "iu" => {
608             "639-1" => "iu",
609             "639-2" => "iku",
610             "family" => "Eskimo–Aleut",
611             "name" => "Inuktitut",
612             "nativeName" => "ᐃᓄᒃᑎᑐᑦ",
613             "wikiUrl" => "https://en.wikipedia.org/wiki/Inuktitut"
614             },
615             "ja" => {
616             "639-1" => "ja",
617             "639-2" => "jpn",
618             "family" => "Japonic",
619             "name" => "Japanese",
620             "nativeName" => "日本語 (にほんご)",
621             "wikiUrl" => "https://en.wikipedia.org/wiki/Japanese_language"
622             },
623             "jv" => {
624             "639-1" => "jv",
625             "639-2" => "jav",
626             "family" => "Austronesian",
627             "name" => "Javanese",
628             "nativeName" => "ꦧꦱꦗꦮ, Basa Jawa",
629             "wikiUrl" => "https://en.wikipedia.org/wiki/Javanese_language"
630             },
631             "ka" => {
632             "639-1" => "ka",
633             "639-2" => "kat",
634             "639-2/B" => "geo",
635             "family" => "South Caucasian",
636             "name" => "Georgian",
637             "nativeName" => "ქართული",
638             "wikiUrl" => "https://en.wikipedia.org/wiki/Georgian_language"
639             },
640             "kg" => {
641             "639-1" => "kg",
642             "639-2" => "kon",
643             "family" => "Niger–Congo",
644             "name" => "Kongo",
645             "nativeName" => "Kikongo",
646             "wikiUrl" => "https://en.wikipedia.org/wiki/Kongo_language"
647             },
648             "ki" => {
649             "639-1" => "ki",
650             "639-2" => "kik",
651             "family" => "Niger–Congo",
652             "name" => "Kikuyu, Gikuyu",
653             "nativeName" => "Gĩkũyũ",
654             "wikiUrl" => "https://en.wikipedia.org/wiki/Gikuyu_language"
655             },
656             "kj" => {
657             "639-1" => "kj",
658             "639-2" => "kua",
659             "family" => "Niger–Congo",
660             "name" => "Kwanyama, Kuanyama",
661             "nativeName" => "Kuanyama",
662             "wikiUrl" => "https://en.wikipedia.org/wiki/Kwanyama"
663             },
664             "kk" => {
665             "639-1" => "kk",
666             "639-2" => "kaz",
667             "family" => "Turkic",
668             "name" => "Kazakh",
669             "nativeName" => "қазақ тілі",
670             "wikiUrl" => "https://en.wikipedia.org/wiki/Kazakh_language"
671             },
672             "kl" => {
673             "639-1" => "kl",
674             "639-2" => "kal",
675             "family" => "Eskimo–Aleut",
676             "name" => "Kalaallisut, Greenlandic",
677             "nativeName" => "kalaallisut, kalaallit oqaasii",
678             "wikiUrl" => "https://en.wikipedia.org/wiki/Kalaallisut_language"
679             },
680             "km" => {
681             "639-1" => "km",
682             "639-2" => "khm",
683             "family" => "Austroasiatic",
684             "name" => "Khmer",
685             "nativeName" => "ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ",
686             "wikiUrl" => "https://en.wikipedia.org/wiki/Khmer_language"
687             },
688             "kn" => {
689             "639-1" => "kn",
690             "639-2" => "kan",
691             "family" => "Dravidian",
692             "name" => "Kannada",
693             "nativeName" => "ಕನ್ನಡ",
694             "wikiUrl" => "https://en.wikipedia.org/wiki/Kannada_language"
695             },
696             "ko" => {
697             "639-1" => "ko",
698             "639-2" => "kor",
699             "family" => "Koreanic",
700             "name" => "Korean",
701             "nativeName" => "한국어",
702             "wikiUrl" => "https://en.wikipedia.org/wiki/Korean_language"
703             },
704             "kr" => {
705             "639-1" => "kr",
706             "639-2" => "kau",
707             "family" => "Nilo-Saharan",
708             "name" => "Kanuri",
709             "nativeName" => "Kanuri",
710             "wikiUrl" => "https://en.wikipedia.org/wiki/Kanuri_language"
711             },
712             "ks" => {
713             "639-1" => "ks",
714             "639-2" => "kas",
715             "family" => "Indo-European",
716             "name" => "Kashmiri",
717             "nativeName" => "कश्मीरी, كشميري‎",
718             "wikiUrl" => "https://en.wikipedia.org/wiki/Kashmiri_language"
719             },
720             "ku" => {
721             "639-1" => "ku",
722             "639-2" => "kur",
723             "family" => "Indo-European",
724             "name" => "Kurdish",
725             "nativeName" => "Kurdî, كوردی‎",
726             "wikiUrl" => "https://en.wikipedia.org/wiki/Kurdish_language"
727             },
728             "kv" => {
729             "639-1" => "kv",
730             "639-2" => "kom",
731             "family" => "Uralic",
732             "name" => "Komi",
733             "nativeName" => "коми кыв",
734             "wikiUrl" => "https://en.wikipedia.org/wiki/Komi_language"
735             },
736             "kw" => {
737             "639-1" => "kw",
738             "639-2" => "cor",
739             "family" => "Indo-European",
740             "name" => "Cornish",
741             "nativeName" => "Kernewek",
742             "wikiUrl" => "https://en.wikipedia.org/wiki/Cornish_language"
743             },
744             "ky" => {
745             "639-1" => "ky",
746             "639-2" => "kir",
747             "family" => "Turkic",
748             "name" => "Kyrgyz",
749             "nativeName" => "Кыргызча, Кыргыз тили",
750             "wikiUrl" => "https://en.wikipedia.org/wiki/Kyrgyz_language"
751             },
752             "la" => {
753             "639-1" => "la",
754             "639-2" => "lat",
755             "family" => "Indo-European",
756             "name" => "Latin",
757             "nativeName" => "latine, lingua latina",
758             "wikiUrl" => "https://en.wikipedia.org/wiki/Latin"
759             },
760             "lb" => {
761             "639-1" => "lb",
762             "639-2" => "ltz",
763             "family" => "Indo-European",
764             "name" => "Luxembourgish, Letzeburgesch",
765             "nativeName" => "Lëtzebuergesch",
766             "wikiUrl" => "https://en.wikipedia.org/wiki/Luxembourgish_language"
767             },
768             "lg" => {
769             "639-1" => "lg",
770             "639-2" => "lug",
771             "family" => "Niger–Congo",
772             "name" => "Ganda",
773             "nativeName" => "Luganda",
774             "wikiUrl" => "https://en.wikipedia.org/wiki/Luganda"
775             },
776             "li" => {
777             "639-1" => "li",
778             "639-2" => "lim",
779             "family" => "Indo-European",
780             "name" => "Limburgish, Limburgan, Limburger",
781             "nativeName" => "Limburgs",
782             "wikiUrl" => "https://en.wikipedia.org/wiki/Limburgish_language"
783             },
784             "ln" => {
785             "639-1" => "ln",
786             "639-2" => "lin",
787             "family" => "Niger–Congo",
788             "name" => "Lingala",
789             "nativeName" => "Lingála",
790             "wikiUrl" => "https://en.wikipedia.org/wiki/Lingala_language"
791             },
792             "lo" => {
793             "639-1" => "lo",
794             "639-2" => "lao",
795             "family" => "Tai–Kadai",
796             "name" => "Lao",
797             "nativeName" => "ພາສາລາວ",
798             "wikiUrl" => "https://en.wikipedia.org/wiki/Lao_language"
799             },
800             "lt" => {
801             "639-1" => "lt",
802             "639-2" => "lit",
803             "family" => "Indo-European",
804             "name" => "Lithuanian",
805             "nativeName" => "lietuvių kalba",
806             "wikiUrl" => "https://en.wikipedia.org/wiki/Lithuanian_language"
807             },
808             "lu" => {
809             "639-1" => "lu",
810             "639-2" => "lub",
811             "family" => "Niger–Congo",
812             "name" => "Luba-Katanga",
813             "nativeName" => "Tshiluba",
814             "wikiUrl" => "https://en.wikipedia.org/wiki/Tshiluba_language"
815             },
816             "lv" => {
817             "639-1" => "lv",
818             "639-2" => "lav",
819             "family" => "Indo-European",
820             "name" => "Latvian",
821             "nativeName" => "latviešu valoda",
822             "wikiUrl" => "https://en.wikipedia.org/wiki/Latvian_language"
823             },
824             "mg" => {
825             "639-1" => "mg",
826             "639-2" => "mlg",
827             "family" => "Austronesian",
828             "name" => "Malagasy",
829             "nativeName" => "fiteny malagasy",
830             "wikiUrl" => "https://en.wikipedia.org/wiki/Malagasy_language"
831             },
832             "mh" => {
833             "639-1" => "mh",
834             "639-2" => "mah",
835             "family" => "Austronesian",
836             "name" => "Marshallese",
837             "nativeName" => "Kajin M̧ajeļ",
838             "wikiUrl" => "https://en.wikipedia.org/wiki/Marshallese_language"
839             },
840             "mi" => {
841             "639-1" => "mi",
842             "639-2" => "mri",
843             "639-2/B" => "mao",
844             "family" => "Austronesian",
845             "name" => "Māori",
846             "nativeName" => "te reo Māori",
847             "wikiUrl" => "https://en.wikipedia.org/wiki/M%C4%81ori_language"
848             },
849             "mk" => {
850             "639-1" => "mk",
851             "639-2" => "mkd",
852             "639-2/B" => "mac",
853             "family" => "Indo-European",
854             "name" => "Macedonian",
855             "nativeName" => "македонски јазик",
856             "wikiUrl" => "https://en.wikipedia.org/wiki/Macedonian_language"
857             },
858             "ml" => {
859             "639-1" => "ml",
860             "639-2" => "mal",
861             "family" => "Dravidian",
862             "name" => "Malayalam",
863             "nativeName" => "മലയാളം",
864             "wikiUrl" => "https://en.wikipedia.org/wiki/Malayalam_language"
865             },
866             "mn" => {
867             "639-1" => "mn",
868             "639-2" => "mon",
869             "family" => "Mongolic",
870             "name" => "Mongolian",
871             "nativeName" => "Монгол хэл",
872             "wikiUrl" => "https://en.wikipedia.org/wiki/Mongolian_language"
873             },
874             "mr" => {
875             "639-1" => "mr",
876             "639-2" => "mar",
877             "family" => "Indo-European",
878             "name" => "Marathi (Marāṭhī)",
879             "nativeName" => "मराठी",
880             "wikiUrl" => "https://en.wikipedia.org/wiki/Marathi_language"
881             },
882             "ms" => {
883             "639-1" => "ms",
884             "639-2" => "msa",
885             "639-2/B" => "may",
886             "family" => "Austronesian",
887             "name" => "Malay",
888             "nativeName" => "bahasa Melayu, بهاس ملايو‎",
889             "wikiUrl" => "https://en.wikipedia.org/wiki/Malay_language"
890             },
891             "mt" => {
892             "639-1" => "mt",
893             "639-2" => "mlt",
894             "family" => "Afro-Asiatic",
895             "name" => "Maltese",
896             "nativeName" => "Malti",
897             "wikiUrl" => "https://en.wikipedia.org/wiki/Maltese_language"
898             },
899             "my" => {
900             "639-1" => "my",
901             "639-2" => "mya",
902             "639-2/B" => "bur",
903             "family" => "Sino-Tibetan",
904             "name" => "Burmese",
905             "nativeName" => "ဗမာစာ",
906             "wikiUrl" => "https://en.wikipedia.org/wiki/Burmese_language"
907             },
908             "na" => {
909             "639-1" => "na",
910             "639-2" => "nau",
911             "family" => "Austronesian",
912             "name" => "Nauruan",
913             "nativeName" => "Dorerin Naoero",
914             "wikiUrl" => "https://en.wikipedia.org/wiki/Nauruan_language"
915             },
916             "nb" => {
917             "639-1" => "nb",
918             "639-2" => "nob",
919             "family" => "Indo-European",
920             "name" => "Norwegian Bokmål",
921             "nativeName" => "Norsk bokmål",
922             "wikiUrl" => "https://en.wikipedia.org/wiki/Bokm%C3%A5l"
923             },
924             "nd" => {
925             "639-1" => "nd",
926             "639-2" => "nde",
927             "family" => "Niger–Congo",
928             "name" => "Northern Ndebele",
929             "nativeName" => "isiNdebele",
930             "wikiUrl" => "https://en.wikipedia.org/wiki/Northern_Ndebele_language"
931             },
932             "ne" => {
933             "639-1" => "ne",
934             "639-2" => "nep",
935             "family" => "Indo-European",
936             "name" => "Nepali",
937             "nativeName" => "नेपाली",
938             "wikiUrl" => "https://en.wikipedia.org/wiki/Nepali_language"
939             },
940             "ng" => {
941             "639-1" => "ng",
942             "639-2" => "ndo",
943             "family" => "Niger–Congo",
944             "name" => "Ndonga",
945             "nativeName" => "Owambo",
946             "wikiUrl" => "https://en.wikipedia.org/wiki/Ndonga"
947             },
948             "nl" => {
949             "639-1" => "nl",
950             "639-2" => "nld",
951             "639-2/B" => "dut",
952             "family" => "Indo-European",
953             "name" => "Dutch",
954             "nativeName" => "Nederlands, Vlaams",
955             "wikiUrl" => "https://en.wikipedia.org/wiki/Dutch_language"
956             },
957             "nn" => {
958             "639-1" => "nn",
959             "639-2" => "nno",
960             "family" => "Indo-European",
961             "name" => "Norwegian Nynorsk",
962             "nativeName" => "Norsk nynorsk",
963             "wikiUrl" => "https://en.wikipedia.org/wiki/Nynorsk"
964             },
965             "no" => {
966             "639-1" => "no",
967             "639-2" => "nor",
968             "family" => "Indo-European",
969             "name" => "Norwegian",
970             "nativeName" => "Norsk",
971             "wikiUrl" => "https://en.wikipedia.org/wiki/Norwegian_language"
972             },
973             "nr" => {
974             "639-1" => "nr",
975             "639-2" => "nbl",
976             "family" => "Niger–Congo",
977             "name" => "Southern Ndebele",
978             "nativeName" => "isiNdebele",
979             "wikiUrl" => "https://en.wikipedia.org/wiki/Southern_Ndebele_language"
980             },
981             "nv" => {
982             "639-1" => "nv",
983             "639-2" => "nav",
984             "family" => "Dené–Yeniseian",
985             "name" => "Navajo, Navaho",
986             "nativeName" => "Diné bizaad",
987             "wikiUrl" => "https://en.wikipedia.org/wiki/Navajo_language"
988             },
989             "ny" => {
990             "639-1" => "ny",
991             "639-2" => "nya",
992             "family" => "Niger–Congo",
993             "name" => "Chichewa, Chewa, Nyanja",
994             "nativeName" => "chiCheŵa, chinyanja",
995             "wikiUrl" => "https://en.wikipedia.org/wiki/Chichewa_language"
996             },
997             "oc" => {
998             "639-1" => "oc",
999             "639-2" => "oci",
1000             "family" => "Indo-European",
1001             "name" => "Occitan",
1002             "nativeName" => "occitan, lenga d'òc",
1003             "wikiUrl" => "https://en.wikipedia.org/wiki/Occitan_language"
1004             },
1005             "oj" => {
1006             "639-1" => "oj",
1007             "639-2" => "oji",
1008             "family" => "Algonquian",
1009             "name" => "Ojibwe, Ojibwa",
1010             "nativeName" => "ᐊᓂᔑᓈᐯᒧᐎᓐ",
1011             "wikiUrl" => "https://en.wikipedia.org/wiki/Ojibwe_language"
1012             },
1013             "om" => {
1014             "639-1" => "om",
1015             "639-2" => "orm",
1016             "family" => "Afro-Asiatic",
1017             "name" => "Oromo",
1018             "nativeName" => "Afaan Oromoo",
1019             "wikiUrl" => "https://en.wikipedia.org/wiki/Oromo_language"
1020             },
1021             "or" => {
1022             "639-1" => "or",
1023             "639-2" => "ori",
1024             "family" => "Indo-European",
1025             "name" => "Oriya",
1026             "nativeName" => "ଓଡ଼ିଆ",
1027             "wikiUrl" => "https://en.wikipedia.org/wiki/Oriya_language"
1028             },
1029             "os" => {
1030             "639-1" => "os",
1031             "639-2" => "oss",
1032             "family" => "Indo-European",
1033             "name" => "Ossetian, Ossetic",
1034             "nativeName" => "ирон æвзаг",
1035             "wikiUrl" => "https://en.wikipedia.org/wiki/Ossetic_language"
1036             },
1037             "pa" => {
1038             "639-1" => "pa",
1039             "639-2" => "pan",
1040             "family" => "Indo-European",
1041             "name" => "(Eastern) Punjabi",
1042             "nativeName" => "ਪੰਜਾਬੀ",
1043             "wikiUrl" => "https://en.wikipedia.org/wiki/Eastern_Punjabi_language"
1044             },
1045             "pi" => {
1046             "639-1" => "pi",
1047             "639-2" => "pli",
1048             "family" => "Indo-European",
1049             "name" => "Pāli",
1050             "nativeName" => "पाऴि",
1051             "wikiUrl" => "https://en.wikipedia.org/wiki/P%C4%81li_language"
1052             },
1053             "pl" => {
1054             "639-1" => "pl",
1055             "639-2" => "pol",
1056             "family" => "Indo-European",
1057             "name" => "Polish",
1058             "nativeName" => "język polski, polszczyzna",
1059             "wikiUrl" => "https://en.wikipedia.org/wiki/Polish_language"
1060             },
1061             "ps" => {
1062             "639-1" => "ps",
1063             "639-2" => "pus",
1064             "family" => "Indo-European",
1065             "name" => "Pashto, Pushto",
1066             "nativeName" => "پښتو",
1067             "wikiUrl" => "https://en.wikipedia.org/wiki/Pashto_language"
1068             },
1069             "pt" => {
1070             "639-1" => "pt",
1071             "639-2" => "por",
1072             "family" => "Indo-European",
1073             "name" => "Portuguese",
1074             "nativeName" => "Português",
1075             "wikiUrl" => "https://en.wikipedia.org/wiki/Portuguese_language"
1076             },
1077             "qu" => {
1078             "639-1" => "qu",
1079             "639-2" => "que",
1080             "family" => "Quechuan",
1081             "name" => "Quechua",
1082             "nativeName" => "Runa Simi, Kichwa",
1083             "wikiUrl" => "https://en.wikipedia.org/wiki/Quechua_language"
1084             },
1085             "rm" => {
1086             "639-1" => "rm",
1087             "639-2" => "roh",
1088             "family" => "Indo-European",
1089             "name" => "Romansh",
1090             "nativeName" => "rumantsch grischun",
1091             "wikiUrl" => "https://en.wikipedia.org/wiki/Romansh_language"
1092             },
1093             "rn" => {
1094             "639-1" => "rn",
1095             "639-2" => "run",
1096             "family" => "Niger–Congo",
1097             "name" => "Kirundi",
1098             "nativeName" => "Ikirundi",
1099             "wikiUrl" => "https://en.wikipedia.org/wiki/Kirundi"
1100             },
1101             "ro" => {
1102             "639-1" => "ro",
1103             "639-2" => "ron",
1104             "639-2/B" => "rum",
1105             "family" => "Indo-European",
1106             "name" => "Romanian",
1107             "nativeName" => "Română",
1108             "wikiUrl" => "https://en.wikipedia.org/wiki/Romanian_language"
1109             },
1110             "ru" => {
1111             "639-1" => "ru",
1112             "639-2" => "rus",
1113             "family" => "Indo-European",
1114             "name" => "Russian",
1115             "nativeName" => "Русский",
1116             "wikiUrl" => "https://en.wikipedia.org/wiki/Russian_language"
1117             },
1118             "rw" => {
1119             "639-1" => "rw",
1120             "639-2" => "kin",
1121             "family" => "Niger–Congo",
1122             "name" => "Kinyarwanda",
1123             "nativeName" => "Ikinyarwanda",
1124             "wikiUrl" => "https://en.wikipedia.org/wiki/Kinyarwanda"
1125             },
1126             "sa" => {
1127             "639-1" => "sa",
1128             "639-2" => "san",
1129             "family" => "Indo-European",
1130             "name" => "Sanskrit (Saṁskṛta)",
1131             "nativeName" => "संस्कृतम्",
1132             "wikiUrl" => "https://en.wikipedia.org/wiki/Sanskrit"
1133             },
1134             "sc" => {
1135             "639-1" => "sc",
1136             "639-2" => "srd",
1137             "family" => "Indo-European",
1138             "name" => "Sardinian",
1139             "nativeName" => "sardu",
1140             "wikiUrl" => "https://en.wikipedia.org/wiki/Sardinian_language"
1141             },
1142             "sd" => {
1143             "639-1" => "sd",
1144             "639-2" => "snd",
1145             "family" => "Indo-European",
1146             "name" => "Sindhi",
1147             "nativeName" => "सिन्धी, سنڌي، سندھی‎",
1148             "wikiUrl" => "https://en.wikipedia.org/wiki/Sindhi_language"
1149             },
1150             "se" => {
1151             "639-1" => "se",
1152             "639-2" => "sme",
1153             "family" => "Uralic",
1154             "name" => "Northern Sami",
1155             "nativeName" => "Davvisámegiella",
1156             "wikiUrl" => "https://en.wikipedia.org/wiki/Northern_Sami"
1157             },
1158             "sg" => {
1159             "639-1" => "sg",
1160             "639-2" => "sag",
1161             "family" => "Creole",
1162             "name" => "Sango",
1163             "nativeName" => "yângâ tî sängö",
1164             "wikiUrl" => "https://en.wikipedia.org/wiki/Sango_language"
1165             },
1166             "si" => {
1167             "639-1" => "si",
1168             "639-2" => "sin",
1169             "family" => "Indo-European",
1170             "name" => "Sinhalese, Sinhala",
1171             "nativeName" => "සිංහල",
1172             "wikiUrl" => "https://en.wikipedia.org/wiki/Sinhalese_language"
1173             },
1174             "sk" => {
1175             "639-1" => "sk",
1176             "639-2" => "slk",
1177             "639-2/B" => "slo",
1178             "family" => "Indo-European",
1179             "name" => "Slovak",
1180             "nativeName" => "slovenčina, slovenský jazyk",
1181             "wikiUrl" => "https://en.wikipedia.org/wiki/Slovak_language"
1182             },
1183             "sl" => {
1184             "639-1" => "sl",
1185             "639-2" => "slv",
1186             "family" => "Indo-European",
1187             "name" => "Slovene",
1188             "nativeName" => "slovenski jezik, slovenščina",
1189             "wikiUrl" => "https://en.wikipedia.org/wiki/Slovene_language"
1190             },
1191             "sm" => {
1192             "639-1" => "sm",
1193             "639-2" => "smo",
1194             "family" => "Austronesian",
1195             "name" => "Samoan",
1196             "nativeName" => "gagana fa'a Samoa",
1197             "wikiUrl" => "https://en.wikipedia.org/wiki/Samoan_language"
1198             },
1199             "sn" => {
1200             "639-1" => "sn",
1201             "639-2" => "sna",
1202             "family" => "Niger–Congo",
1203             "name" => "Shona",
1204             "nativeName" => "chiShona",
1205             "wikiUrl" => "https://en.wikipedia.org/wiki/Shona_language"
1206             },
1207             "so" => {
1208             "639-1" => "so",
1209             "639-2" => "som",
1210             "family" => "Afro-Asiatic",
1211             "name" => "Somali",
1212             "nativeName" => "Soomaaliga, af Soomaali",
1213             "wikiUrl" => "https://en.wikipedia.org/wiki/Somali_language"
1214             },
1215             "sq" => {
1216             "639-1" => "sq",
1217             "639-2" => "sqi",
1218             "639-2/B" => "alb",
1219             "family" => "Indo-European",
1220             "name" => "Albanian",
1221             "nativeName" => "Shqip",
1222             "wikiUrl" => "https://en.wikipedia.org/wiki/Albanian_language"
1223             },
1224             "sr" => {
1225             "639-1" => "sr",
1226             "639-2" => "srp",
1227             "family" => "Indo-European",
1228             "name" => "Serbian",
1229             "nativeName" => "српски језик",
1230             "wikiUrl" => "https://en.wikipedia.org/wiki/Serbian_language"
1231             },
1232             "ss" => {
1233             "639-1" => "ss",
1234             "639-2" => "ssw",
1235             "family" => "Niger–Congo",
1236             "name" => "Swati",
1237             "nativeName" => "SiSwati",
1238             "wikiUrl" => "https://en.wikipedia.org/wiki/Swati_language"
1239             },
1240             "st" => {
1241             "639-1" => "st",
1242             "639-2" => "sot",
1243             "family" => "Niger–Congo",
1244             "name" => "Southern Sotho",
1245             "nativeName" => "Sesotho",
1246             "wikiUrl" => "https://en.wikipedia.org/wiki/Sotho_language"
1247             },
1248             "su" => {
1249             "639-1" => "su",
1250             "639-2" => "sun",
1251             "family" => "Austronesian",
1252             "name" => "Sundanese",
1253             "nativeName" => "Basa Sunda",
1254             "wikiUrl" => "https://en.wikipedia.org/wiki/Sundanese_language"
1255             },
1256             "sv" => {
1257             "639-1" => "sv",
1258             "639-2" => "swe",
1259             "family" => "Indo-European",
1260             "name" => "Swedish",
1261             "nativeName" => "svenska",
1262             "wikiUrl" => "https://en.wikipedia.org/wiki/Swedish_language"
1263             },
1264             "sw" => {
1265             "639-1" => "sw",
1266             "639-2" => "swa",
1267             "family" => "Niger–Congo",
1268             "name" => "Swahili",
1269             "nativeName" => "Kiswahili",
1270             "wikiUrl" => "https://en.wikipedia.org/wiki/Swahili_language"
1271             },
1272             "ta" => {
1273             "639-1" => "ta",
1274             "639-2" => "tam",
1275             "family" => "Dravidian",
1276             "name" => "Tamil",
1277             "nativeName" => "தமிழ்",
1278             "wikiUrl" => "https://en.wikipedia.org/wiki/Tamil_language"
1279             },
1280             "te" => {
1281             "639-1" => "te",
1282             "639-2" => "tel",
1283             "family" => "Dravidian",
1284             "name" => "Telugu",
1285             "nativeName" => "తెలుగు",
1286             "wikiUrl" => "https://en.wikipedia.org/wiki/Telugu_language"
1287             },
1288             "tg" => {
1289             "639-1" => "tg",
1290             "639-2" => "tgk",
1291             "family" => "Indo-European",
1292             "name" => "Tajik",
1293             "nativeName" => "тоҷикӣ, toçikī, تاجیکی‎",
1294             "wikiUrl" => "https://en.wikipedia.org/wiki/Tajik_language"
1295             },
1296             "th" => {
1297             "639-1" => "th",
1298             "639-2" => "tha",
1299             "family" => "Tai–Kadai",
1300             "name" => "Thai",
1301             "nativeName" => "ไทย",
1302             "wikiUrl" => "https://en.wikipedia.org/wiki/Thai_language"
1303             },
1304             "ti" => {
1305             "639-1" => "ti",
1306             "639-2" => "tir",
1307             "family" => "Afro-Asiatic",
1308             "name" => "Tigrinya",
1309             "nativeName" => "ትግርኛ",
1310             "wikiUrl" => "https://en.wikipedia.org/wiki/Tigrinya_language"
1311             },
1312             "tk" => {
1313             "639-1" => "tk",
1314             "639-2" => "tuk",
1315             "family" => "Turkic",
1316             "name" => "Turkmen",
1317             "nativeName" => "Türkmen, Түркмен",
1318             "wikiUrl" => "https://en.wikipedia.org/wiki/Turkmen_language"
1319             },
1320             "tl" => {
1321             "639-1" => "tl",
1322             "639-2" => "tgl",
1323             "family" => "Austronesian",
1324             "name" => "Tagalog",
1325             "nativeName" => "Wikang Tagalog",
1326             "wikiUrl" => "https://en.wikipedia.org/wiki/Tagalog_language"
1327             },
1328             "tn" => {
1329             "639-1" => "tn",
1330             "639-2" => "tsn",
1331             "family" => "Niger–Congo",
1332             "name" => "Tswana",
1333             "nativeName" => "Setswana",
1334             "wikiUrl" => "https://en.wikipedia.org/wiki/Tswana_language"
1335             },
1336             "to" => {
1337             "639-1" => "to",
1338             "639-2" => "ton",
1339             "family" => "Austronesian",
1340             "name" => "Tonga (Tonga Islands)",
1341             "nativeName" => "faka Tonga",
1342             "wikiUrl" => "https://en.wikipedia.org/wiki/Tongan_language"
1343             },
1344             "tr" => {
1345             "639-1" => "tr",
1346             "639-2" => "tur",
1347             "family" => "Turkic",
1348             "name" => "Turkish",
1349             "nativeName" => "Türkçe",
1350             "wikiUrl" => "https://en.wikipedia.org/wiki/Turkish_language"
1351             },
1352             "ts" => {
1353             "639-1" => "ts",
1354             "639-2" => "tso",
1355             "family" => "Niger–Congo",
1356             "name" => "Tsonga",
1357             "nativeName" => "Xitsonga",
1358             "wikiUrl" => "https://en.wikipedia.org/wiki/Tsonga_language"
1359             },
1360             "tt" => {
1361             "639-1" => "tt",
1362             "639-2" => "tat",
1363             "family" => "Turkic",
1364             "name" => "Tatar",
1365             "nativeName" => "татар теле, tatar tele",
1366             "wikiUrl" => "https://en.wikipedia.org/wiki/Tatar_language"
1367             },
1368             "tw" => {
1369             "639-1" => "tw",
1370             "639-2" => "twi",
1371             "family" => "Niger–Congo",
1372             "name" => "Twi",
1373             "nativeName" => "Twi",
1374             "wikiUrl" => "https://en.wikipedia.org/wiki/Twi"
1375             },
1376             "ty" => {
1377             "639-1" => "ty",
1378             "639-2" => "tah",
1379             "family" => "Austronesian",
1380             "name" => "Tahitian",
1381             "nativeName" => "Reo Tahiti",
1382             "wikiUrl" => "https://en.wikipedia.org/wiki/Tahitian_language"
1383             },
1384             "ug" => {
1385             "639-1" => "ug",
1386             "639-2" => "uig",
1387             "family" => "Turkic",
1388             "name" => "Uyghur",
1389             "nativeName" => "ئۇيغۇرچە‎, Uyghurche",
1390             "wikiUrl" => "https://en.wikipedia.org/wiki/Uyghur_language"
1391             },
1392             "uk" => {
1393             "639-1" => "uk",
1394             "639-2" => "ukr",
1395             "family" => "Indo-European",
1396             "name" => "Ukrainian",
1397             "nativeName" => "Українська",
1398             "wikiUrl" => "https://en.wikipedia.org/wiki/Ukrainian_language"
1399             },
1400             "ur" => {
1401             "639-1" => "ur",
1402             "639-2" => "urd",
1403             "family" => "Indo-European",
1404             "name" => "Urdu",
1405             "nativeName" => "اردو",
1406             "wikiUrl" => "https://en.wikipedia.org/wiki/Urdu"
1407             },
1408             "uz" => {
1409             "639-1" => "uz",
1410             "639-2" => "uzb",
1411             "family" => "Turkic",
1412             "name" => "Uzbek",
1413             "nativeName" => "Oʻzbek, Ўзбек, أۇزبېك‎",
1414             "wikiUrl" => "https://en.wikipedia.org/wiki/Uzbek_language"
1415             },
1416             "ve" => {
1417             "639-1" => "ve",
1418             "639-2" => "ven",
1419             "family" => "Niger–Congo",
1420             "name" => "Venda",
1421             "nativeName" => "Tshivenḓa",
1422             "wikiUrl" => "https://en.wikipedia.org/wiki/Venda_language"
1423             },
1424             "vi" => {
1425             "639-1" => "vi",
1426             "639-2" => "vie",
1427             "family" => "Austroasiatic",
1428             "name" => "Vietnamese",
1429             "nativeName" => "Tiếng Việt",
1430             "wikiUrl" => "https://en.wikipedia.org/wiki/Vietnamese_language"
1431             },
1432             "vo" => {
1433             "639-1" => "vo",
1434             "639-2" => "vol",
1435             "family" => "Constructed",
1436             "name" => "Volapük",
1437             "nativeName" => "Volapük",
1438             "wikiUrl" => "https://en.wikipedia.org/wiki/Volap%C3%BCk"
1439             },
1440             "wa" => {
1441             "639-1" => "wa",
1442             "639-2" => "wln",
1443             "family" => "Indo-European",
1444             "name" => "Walloon",
1445             "nativeName" => "walon",
1446             "wikiUrl" => "https://en.wikipedia.org/wiki/Walloon_language"
1447             },
1448             "wo" => {
1449             "639-1" => "wo",
1450             "639-2" => "wol",
1451             "family" => "Niger–Congo",
1452             "name" => "Wolof",
1453             "nativeName" => "Wollof",
1454             "wikiUrl" => "https://en.wikipedia.org/wiki/Wolof_language"
1455             },
1456             "xh" => {
1457             "639-1" => "xh",
1458             "639-2" => "xho",
1459             "family" => "Niger–Congo",
1460             "name" => "Xhosa",
1461             "nativeName" => "isiXhosa",
1462             "wikiUrl" => "https://en.wikipedia.org/wiki/Xhosa_language"
1463             },
1464             "yi" => {
1465             "639-1" => "yi",
1466             "639-2" => "yid",
1467             "family" => "Indo-European",
1468             "name" => "Yiddish",
1469             "nativeName" => "ייִדיש",
1470             "wikiUrl" => "https://en.wikipedia.org/wiki/Yiddish_language"
1471             },
1472             "yo" => {
1473             "639-1" => "yo",
1474             "639-2" => "yor",
1475             "family" => "Niger–Congo",
1476             "name" => "Yoruba",
1477             "nativeName" => "Yorùbá",
1478             "wikiUrl" => "https://en.wikipedia.org/wiki/Yoruba_language"
1479             },
1480             "za" => {
1481             "639-1" => "za",
1482             "639-2" => "zha",
1483             "family" => "Tai–Kadai",
1484             "name" => "Zhuang, Chuang",
1485             "nativeName" => "Saɯ cueŋƅ, Saw cuengh",
1486             "wikiUrl" => "https://en.wikipedia.org/wiki/Zhuang_languages"
1487             },
1488             "zh" => {
1489             "639-1" => "zh",
1490             "639-2" => "zho",
1491             "639-2/B" => "chi",
1492             "family" => "Sino-Tibetan",
1493             "name" => "Chinese",
1494             "nativeName" => "中文 (Zhōngwén), 汉语, 漢語",
1495             "wikiUrl" => "https://en.wikipedia.org/wiki/Chinese_language"
1496             },
1497             "zu" => {
1498             "639-1" => "zu",
1499             "639-2" => "zul",
1500             "family" => "Niger–Congo",
1501             "name" => "Zulu",
1502             "nativeName" => "isiZulu",
1503             "wikiUrl" => "https://en.wikipedia.org/wiki/Zulu_language"
1504             }
1505             );
1506              
1507             my %from_639_2 = ();
1508             my %from_name = ();
1509             my %from_native_name = ();
1510             for my $key (keys %codes) {
1511             $from_639_2{lc($codes{$key}->{'639-2'})} = $key if $codes{$key}->{'639-2'};
1512             $from_639_2{lc($codes{$key}->{'639-2/B'})} = $key if $codes{$key}->{'639-2/B'};
1513             $from_name{lc($codes{$key}->{name})} = $key if $codes{$key}->{name};
1514             $from_native_name{lc($codes{$key}->{nativeName})} = $key if $codes{$key}->{nativeName};
1515             }
1516              
1517             sub get_iso639_1 {
1518 13     13 1 122 my $input = lc(shift);
1519              
1520 13 100       41 if ($codes{$input}) {
1521 9         13 my %result = %{$codes{$input}};
  9         57  
1522 9         62 return \%result;
1523             }
1524              
1525 4 100       25 if ($input =~ m/(?[^_-]+)[_-](?[^_-]+)/) {
1526 2     2   1004 my ($code, $localization) = ($+{code}, uc($+{localization}));
  2         784  
  2         854  
  2         27  
1527              
1528 2 50 33     18 if (defined($code) && defined $codes{$code}) {
1529 2         5 my %result = %{$codes{$code}};
  2         11  
1530 2         8 $result{nativeName} .= ' ('.uc($localization).')';
1531 2         6 $result{name} .= ' ('.$localization.')';
1532 2         10 return \%result;
1533             }
1534             }
1535 2         17 return undef;
1536             }
1537              
1538             sub get_iso639_1_from_639_2 {
1539 2     2 1 6 my $input = lc(shift);
1540              
1541 2 50       13 return get_iso639_1($from_639_2{$input}) if defined $from_639_2{$input};
1542 0         0 return undef;
1543             }
1544              
1545             sub get_iso639_1_from_name {
1546 1     1 1 3 my $input = lc(shift);
1547              
1548 1 50       8 return get_iso639_1($from_name{$input}) if defined $from_name{$input};
1549 0         0 return undef;
1550             }
1551              
1552             sub get_iso639_1_from_native_name {
1553 1     1 1 5 my $input = lc(shift);
1554              
1555 1 50       8 return get_iso639_1($from_native_name{$input}) if defined $from_native_name{$input};
1556 0           return undef;
1557             }
1558              
1559             1;
1560             __END__