local m_langdata = require("Module:languages/data")

-- Loaded on demand, as it may not be needed (depending on the data).
local function u(...)
	u = require("Module:string utilities").char
	return u(...)
end

local c = m_langdata.chars
local p = m_langdata.puaChars
local s = m_langdata.shared

local m = {}

-- Ainu varieties

m["ain-hok"] = {
	"ไอนุแบบฮกไกโด",
	20968488,
	"ain",
	aliases = {"Hokkaido Ainu", "Hokkaidō Ainu"},
}

m["ain-kur"] = {
	"ไอนุแบบคูริล",
	20967012,
	"ain",
	aliases = {"Kuril Ainu"},
}

m["ain-sak"] = {
	"ไอนุแบบซาฮาลิน",
	20747371,
	"ain",
	aliases = {"Sakhalin Ainu"},
}

-- Akan varieties

m["tw"] = {
	"Twi Akan",
	36850,
	"ak",
	aliases = {"Twi"},
}

m["tw-abr"] = {
	"Bono Twi",
	34831,
	"tw",
	aliases = {"Bono", "Abron", "Brong"},
}

m["tw-asa"] = {
	"Asante Twi",
	19261685,
	"tw",
	aliases = {"Asante", "Ashanti", "Ashante"},
}

m["tw-aku"] = {
	"Akuapem Twi",
	31150449,
	"tw",
	aliases = {"Akuapem", "Akuapim", "Akwapem Twi", "Akwapi"},
}

m["fat"] = {
	"Fante Akan",
	35570,
	"ak",
	aliases = {"Fante", "Fanti", "Fantse", "Mfantse"},
}

-- Albanian varieties

m["aln"] = {
	"Gheg Albanian",
	181037,
	"sq",
	aliases = {"Gheg"},
}

m["aae"] = {
	"Arbëresh Albanian",
	1075302,
	"als",
	aliases = {"Arbëreshë", "Arbëresh"},
}

m["aat"] = {
	"Arvanitika Albanian",
	29347,
	"als",
	aliases = {"Arvanitika"},
}

m["als"] = {
	"Tosk Albanian",
	180937,
	"sq",
	aliases = {"Tosk"},
}

-- Bantu varieties

m["bnt-cmn"] = {
	"Common Bantu",
	nil,
	"bnt-pro",
}

-- Semitic varieties

-- Akkadian varieties

m["akk-old"] = {
	"Old Akkadian",
	nil,
	"akk",
}

m["akk-obb"] = {
	"Old Babylonian",
	nil,
	"akk",
}

m["akk-oas"] = {
	"Old Assyrian",
	nil,
	"akk",
}

m["akk-mbb"] = {
	"Middle Babylonian",
	nil,
	"akk",
}

m["akk-mas"] = {
	"Middle Assyrian",
	nil,
	"akk",
}

m["akk-nbb"] = {
	"Neo-Babylonian",
	nil,
	"akk",
}

m["akk-nas"] = {
	"Neo-Assyrian",
	nil,
	"akk",
}

m["akk-lbb"] = {
	"Late Babylonian",
	nil,
	"akk",
}

m["akk-stb"] = {
	"Standard Babylonian",
	nil,
	"akk",
}

-- Arabic varieties

m["jrb"] = {
	"Judeo-Arabic",
	37733,
	"ar",
}

-- Aramaic varieties

m["arc-bib"] = {
	"อารามายาไบเบิล",
	843235,
	"arc",
	family = "sem-are",
	aliases = {"Biblical Aramaic"},
}

m["arc-cpa"] = {
	"อารามายาแบบคริสต์ปาเลสไตน์",
	60790119,
	"arc",
	family = "sem-arw",
	aliases = {"Christian Palestinian Aramaic", "Melkite Aramaic", "Palestinian Syriac", "Syropalestinian Aramaic"},
}

m["arc-imp"] = {
	"อารามายาจักรวรรดิ",
	7079491,
	"arc",
	aliases = {"อารามายาทางการ", "Imperial Aramaic", "Official Aramaic"},
}

m["arc-hat"] = {
	"อารามายาแบบฮัตรา",
	3832926,
	"arc",
	family = "sem-are",
	aliases = {"อารามายาแบบฮาตรา", "Hatran Aramaic"},
}

m["arc-jla"] = {
	"Jewish Literary Aramaic",
	105952842,
	"arc",
}

m["arc-nab"] = {
	"อารามายาแบบแนบาเทีย",
	36178,
	"arc",
	aliases = {"Nabataean Aramaic"},
}

m["arc-old"] = {
	"อารามายาเก่า",
	3398392,
	"arc",
	aliases = {"Old Aramaic"},
}

m["arc-pal"] = {
	"อารามายาแบบแพลไมรา",
	1510113,
	"arc",
	family = "sem-arw",
	aliases = {"Palmyrene Aramaic"},
}

m["tmr"] = {
	"อารามายาแบบยิวบาบิโลเนีย",
	33407,
	"arc",
	family = "sem-ase",
	aliases = {"Jewish Babylonian Aramaic"},
}

m["jpa"] = {
	"อารามายาแบบยิวปาเลสไตน์",
	948909,
	"arc",
	family = "sem-arw",
	aliases = {"Jewish Palestinian Aramaic", "Galilean Aramaic"},
}

-- Catalan varieties

m["ca-val"] = {
	"Valencian",
	32641,
	"ca",
}

-- Central Nicobarese varieties

m["ncb-cam"] = {
	"Camorta",
	5026908,
	"ncb",
	aliases = {"Kamorta"},
}

m["ncb-kat"] = {
	"Katchal",
	17064263,
	"ncb",
	aliases = {"Tehnu"},
}

m["ncb-nan"] = {
	"Nancowry",
	6962504,
	"ncb",
	aliases = {"Nankwari"},
}

-----------------------------------------------------
--                Chinese varieties                --
-----------------------------------------------------

------------- Old Chinese, Middle Chinese -------------

m["och-ear"] = {
	"จีนเก่าช่วงต้น",
	nil,
	"och",
	aliases = {"Early Old Chinese"},
}

m["och-lat"] = {
	"จีนเก่าช่วงปลาย",
	nil,
	"och",
	aliases = {"Late Old Chinese"},
}

m["ltc-ear"] = {
	"จีนยุคกลางช่วงต้น",
	nil,
	"ltc",
	aliases = {"Early Middle Chinese"},
}

m["ltc-lat"] = {
	"จีนยุคกลางช่วงปลาย",
	nil,
	"ltc",
	aliases = {"Late Middle Chinese"},
}

------------- Classical/Literary varieties -------------

-- FIXME: Temporary.
m["lzh-cii"] = {
	"Ci",
	1091366,
	"lzh",
}

-- FIXME: Temporary.
m["lzh-yue"] = {
	"Classical Cantonese",
	nil,
	"lzh",
}

-- FIXME: Temporary.
m["lzh-cmn"] = {
	"Classical Mandarin",
	nil,
	"lzh",
}

-- FIXME: Temporary.
m["lzh-tai"] = {
	"Classical Taishanese",
	nil,
	"lzh",
}

-- FIXME: Temporary.
m["lzh-cmn-TW"] = {
	"Classical Taiwanese Mandarin",
	nil,
	"lzh-cmn",
}

-- FIXME: Temporary.
m["lzh-VI"] = {
	"Vietnamese Classical Chinese",
	17034227,
	"lzh",
}

-- FIXME: Temporary.
m["lzh-KO"] = {
	"Korean Classical Chinese",
	10496257,
	"lzh",
	ietf_subtag = "lzh-KR" -- KR = South Korea, as there is no code for Korea as a whole
}

-- FIXME: Temporary.
m["lzh-lit"] = {
	"Literary Chinese",
	nil,
	"lzh",
}

-- FIXME: Temporary. FIXME: Do we need this? How does it differ from Old Chinese?
m["lzh-pre"] = {
	"Pre-Classical Chinese",
	nil,
	"lzh",
}

------------- Written Vernacular varieties -------------

-- FIXME: Temporary.
m["cmn-wvc"] = {
	"Written vernacular Mandarin",
	783605,
	"cmn",
}

-- FIXME: Temporary. FIXME: How does this differ from "Literary Cantonese"?
m["yue-wvc"] = {
	"Written vernacular Cantonese",
	nil,
	"yue",
}

-- FIXME: Temporary.
m["zhx-tai-wvc"] = {
	"Written vernacular Taishanese",
	nil,
	"zhx-tai",
}

------------- Mandarin varieties -------------

-- FIXME: Temporary. NOTE: The Linguist List assigns the "w:Beijing dialect" (Wikidata 1147606) the code "cmn-bej" and
-- the larger "w:Beijing Mandarin (division of Mandarin)" dialect group (Wikidata 2169652; what we call "Beijingic
-- Mandarin", after Glottolog) the code "cmn-bei".
m["cmn-bei"] = {
	"Beijing Mandarin",
	1147606,
	"cmn-bec",
}

-- FIXME: Temporary.
m["cmn-bec"] = {
	"Beijingic Mandarin",
	2169652,
	"cmn",
}

-- FIXME: Temporary. NOTE: The Linguist List uses the code cmn-zho.
m["cmn-cep"] = {
	"Central Plains Mandarin",
	3048775,
	"cmn",
	aliases = {"Zhongyuan Mandarin"},
}

m["cmn-ear"] = {
	"จีนกลางช่วงต้น",
	837169,
	"cmn",
	ancestors = "ltc",
	aliases = {"Early Mandarin"},
}

-- FIXME: Temporary.
m["cmn-gua"] = {
	"Guanzhong Mandarin",
	3431648,
	"cmn-cep",
}

-- FIXME: Temporary. Appears to be a subdialect of Guiliu Mandarin, which in turn is a subdialect of Southwestern Mandarin.
m["cmn-gui"] = {
	"Guilin Mandarin",
	11111636,
	"cmn-sow",
}

m["cmn-jhu"] = {
	"Jianghuai Mandarin",
	2128953,
	"cmn",
	aliases = {"Lower Yangtze Mandarin"},
}

-- FIXME: Temporary.
m["cmn-lan"] = {
	"Lanyin Mandarin",
	662754,
	"cmn",
}

-- FIXME: Temporary.
m["cmn-MY"] = {
	"Malaysian Mandarin",
	13646143,
	"cmn",
}

-- FIXME: Temporary.
m["cmn-nan"] = {
	"Nanjing Mandarin",
	2681098,
	"cmn-jhu",
}

-- FIXME: Temporary.
m["cmn-noe"] = {
	"Northeastern Mandarin",
	1064504,
	"cmn",
}

-- FIXME: Temporary.
m["cmn-PH"] = {
	"Philippine Mandarin",
	7185155,
	"cmn",
}

-- FIXME: Temporary.
m["cmn-SG"] = {
	"Singapore Mandarin",
	1048980,
	"cmn",
}

-- FIXME: Temporary.
m["cmn-sow"] = {
	"Southwestern Mandarin",
	2609239,
	"cmn",
}

-- FIXME: Temporary. Appears to be a subdialect of Jilu Mandarin.
m["cmn-tia"] = {
	"Tianjin Mandarin",
	7800220,
	"cmn",
}

-- FIXME: Temporary. NOTE: Wikidata also has Q4380827 "Taiwanese Mandarin", defined as "rare dialect of Standard Chinese
-- (Mandarin) used in Taiwan, which is strongly influenced by Taiwanese Hokkien; mostly used by elderlies" and having no
-- English Wikipedia article (but see w:zh:臺灣國語).
m["cmn-TW"] = {
	"Taiwanese Mandarin",
	262828,
	"cmn",
}

-- FIXME: Temporary. Appears to be a subdialect of Wu-Tian Mandarin, in turn a subdialect of Southwestern Mandarin.
-- Given the code cmn-xwu in the Linguist List.
m["cmn-wuh"] = {
	"Wuhan Mandarin",
	11124731,
	"cmn-sow",
	aliases = {"Wuhanese"},
}

-- FIXME: Temporary. Appears to be a subdialect of Lanyin Mandarin.
m["cmn-xin"] = {
	"Xining Mandarin",
	nil,
	"cmn-lan",
}

-- FIXME: Temporary.
m["cmn-yan"] = {
	"Yangzhou Mandarin",
	nil,
	"cmn-jhu",
}

------------- Cantonese varieties -------------

-- FIXME: Temporary.
m["yue-gua"] = {
	"Guangzhou Cantonese",
	nil,
	"yue",
}

-- FIXME: Temporary. Given the codes yue-yue or yue-can in the Linguist List.
m["yue-HK"] = {
	"Hong Kong Cantonese",
	5894342,
	"yue",
}

-- FIXME: Temporary. FIXME: How does this differ from "Written vernacular Cantonese"?
m["yue-lit"] = {
	"Literary Cantonese",
	2472605,
	"yue",
}

------------- Wu varieties -------------

m["wuu-han"] = {
	"Hangzhounese",
	5648144,
	"wuu",
}

m["wuu-nin"] = {
	"Ningbonese",
	3972199,
	"wuu",
}

-- FIXME: Temporary.
m["wuu-nor"] = {
	"Northern Wu",
	7675988,
	"wuu",
	aliases = {"Taihu Wu"},
}

-- FIXME: Temporary? Subvariety of Taihu Wu. NOTE: "chm" stands for Chongming, the main dialect, to avoid a conflict
-- with Shanghainese.
m["wuu-chm"] = {
	"Shadi Wu",
	6112340,
	"wuu-nor",
}

m["wuu-sha"] = {
	"เซี่ยงไฮ้",
	36718,
	"wuu-nor",
	aliases = {"ซ่างไห่", "Shanghainese"},
}

m["wuu-suz"] = {
	"Suzhounese",
	831744,
	"wuu-nor",
}

-- FIXME: Temporary. May be converted into a full language and/or split.
m["wuu-wen"] = {
	"Wenzhounese",
	710218,
	"wuu",
}

------------- Xiang varieties -------------

m["hsn-lou"] = {
	"Loudi Xiang",
	10943823,
	"hsn-old",
}

m["hsn-hya"] = {
	"Hengyang Xiang",
	20689035,
	"hsn-hzh",
}

m["hsn-hzh"] = {
	"Hengzhou Xiang",
	nil,
	"hsn",
}

m["hsn-new"] = {
	"New Xiang",
	7012696,
	"hsn",
	aliases = {"Chang-Yi"},
}

m["hsn-old"] = {
	"เซียงเก่า",
	7085453,
	"hsn",
	aliases = {"Old Xiang", "Lou-Shao"},
}

------------- Hakka varieties -------------

-- FIXME: Temporary.
m["hak-dab"] = {
	"Dabu Hakka",
	19855566,
	"hak", -- formerly hak-TW but seems to be spoken primary in Dabu County in Guangdong
}

-- FIXME: Temporary.
m["hak-eam"] = {
	"Early Modern Hakka",
	nil,
	"hak",
}

-- FIXME: Temporary.
m["hak-hai"] = {
	"Hailu Hakka",
	17038519,
	"hak", -- often considered a Taiwanese lect but also spoken in [[Shanwei]], [[Guangdong]]
}

-- FIXME: Temporary.
m["hak-hui"] = {
	"Huiyang Hakka",
	16873881,
	"hak",
}

-- FIXME: Temporary.
m["hak-hui-MY"] = {
	"Malaysian Huiyang Hakka",
	nil,
	"hak-hui",
}

-- FIXME: Temporary. Similar to and possibly the parent of Sixian Hakka in Taiwan.
m["hak-mei"] = {
	"Meixian Hakka",
	839295,
	"hak",
	aliases = {"Moiyan Hakka", "Meizhou Hakka"},
}

-- FIXME: Temporary.
m["hak-six"] = {
	"Sixian Hakka",
	9668261,
	"hak-TW",
}

-- FIXME: Temporary.
m["hak-TW"] = {
	"Taiwanese Hakka",
	2391532,
	"hak",
}

-- FIXME: Temporary.
m["hak-zha"] = {
	"Zhao'an Hakka",
	6703311,
	"hak",
	aliases = {"Zhangzhou Hakka"},
}

-- Southern Min varieties --

m["nan-anx"] = {
	"Anxi Hokkien",
	97064149,
	"nan-qua",
}

m["nan-cha"] = {
	"Changtai Hokkien",
	nil,
	"nan-zha",
}

m["nan-hou"] = {
	"Houlu Min",
	19855492,
	"nan-dat",
}

m["nan-hui"] = {
	"Hui'an Hokkien",
	16241797,
	"nan-qua",
}

m["nan-jin"] = {
	"ฮกเกี้ยนแบบจิ้นเจียง",
	11089375,
	"nan-qua",
	aliases = {"Jinjiang Hokkien"},
}

m["nan-kin"] = {
	"Kinmenese Hokkien",
	56278342,
	"nan-xia",
	aliases = {"Kinmen Hokkien"},
}

m["nan-med"] = {
	"Medan Hokkien",
	6805114,
	"nan-zha",
}

m["nan-pen"] = {
	"ฮกเกี้ยนแบบปีนัง",
	11120689,
	"nan-zha",
	aliases = {"Penang Hokkien"},
}

m["nan-hbl-PH"] = {
	"ฮกเกี้ยนแบบฟิลิปปินส์",
	3236692,
	"nan-qua",
	aliases = {"Philippine Hokkien"},
}

m["nan-qia"] = {
	"Qianlu Min",
	19842517,
	"nan-dat",
}

m["nan-qua"] = {
	"ฮกเกี้ยนแบบเฉวียนโจว",
	2251677,
	"nan-hbl",
	aliases = {"Quanzhou Hokkien", "Chinchew", "Choanchew"},
}

-- FIXME: Temporary? Derived from both Quanzhou and Zhangzhou Hokkien.
m["nan-hbl-SG"] = {
	"ฮกเกี้ยนแบบสิงคโปร์",
	3846528,
	"nan-hbl",
	aliases = {"Singapore Hokkien"},
}

m["nan-spm"] = {
	"Southern Malaysian Hokkien",
	7570322,
	"nan-qua",
	aliases = {"Southern Malaysia Hokkien", "Southern Peninsular Malaysian Hokkien", "Southern Peninsular Malaysia Hokkien"}
}

m["nan-hbl-TW"] = {
	"ฮกเกี้ยนแบบไต้หวัน",
	36778,
	"nan-hbl",
	aliases = {"Taiwanese Hokkien"},
}

m["nan-ton"] = {
	"Tong'an Hokkien",
	nil,
	"nan-xia",
}

m["nan-xia"] = {
	"ฮกเกี้ยนแบบเซี่ยเหมิน",
	68744,
	"nan-hbl",
	aliases = {"เอ้หมึง", "อามอย", "เซี่ยเหมิน", "Amoy", "Amoyese", "Amoynese", "Xiamenese"},
}

m["nan-yon"] = {
	"Yongchun Hokkien",
	65118728,
	"nan-qua",
}

m["nan-zha"] = {
	"ฮกเกี้ยนแบบจางโจว",
	8070492,
	"nan-hbl",
	aliases = {"Zhangzhou Hokkien", "Changchew", "Chiangchew", "Changchow"},
}

m["nan-zho"] = {
	"Zhao'an Hokkien",
	65118728,
	"nan-zha",
	aliases = {"Zhao'an", "Chawan", "Chawan Hokkien"},
}

m["nan-zhp"] = {
	"Zhangping Hokkien",
	15937822,
	"nan-zha",
}

------------- Other Min varieties -------------

-- FIXME: Temporary. Affiliation within Min uncertain; some combination of Eastern and Southern.
m["zhx-zho"] = {
	"Zhongshan Min",
	8070958,
	"zhx",
}

------------- Other Chinese varieties -------------

-- FIXME: Temporary. Affiliation within Chinese uncertain; possibly Yue.
m["zhx-dan"] = {
	"Danzhou Chinese",
	2578935,
	"zhx",
}

------------- Chinese romanization varieties -------------

-- [[Wiktionary:Information desk/2022/June#Etymology Coding Issue]]
-- [[Wiktionary:Grease pit/2022/June#Transliteration Systems in Etymologies 2]]

m["cmn-pinyin"] = {
	"Hanyu Pinyin",
	42222,
	"cmn",
	aliases = {"Pinyin"},
}

m["cmn-tongyong"] = {
	"Tongyong Pinyin",
	700739,
	"cmn",
}

m["cmn-wadegiles"] = {
	"Wade–Giles",
	208442,
	"cmn",
	aliases = {"Wade-Giles", "Wade Giles"},
}

m["zh-postal"] = {
	"Postal Romanization",
	151868,
	"zh",
}

-- Chinese cyrillization

m["cmn-palladius"] = {
	"Palladius",
	1234239,
	"cmn",
	aliases = {"Palladius system"},
}

-----------------------------------------------------
--                 Coptic varieties                --
-----------------------------------------------------

m["cop-akh"] = {
	"Akhmimic Coptic",
	125176464,
	"cop",
	aliases = {"Akhmimic"},
}

m["cop-boh"] = {
	"Bohairic Coptic",
	890733,
	"cop",
	aliases = {"Bohairic", "Memphitic Coptic", "Memphitic"},
}

m["cop-ggg"] = {
	"Coptic Dialect G",
	nil,
	"cop",
	aliases = {"Dialect G", "Mansuric Coptic", "Mansuric"},
}

m["cop-jjj"] = {
	"Coptic Dialect J",
	nil,
	"cop",
}

m["cop-kkk"] = {
	"Coptic Dialect K",
	nil,
	"cop",
}

m["cop-ppp"] = {
	"Coptic Dialect P",
	nil,
	"cop",
	aliases = {"Proto-Theban Coptic", "Palaeo-Theban Coptic"},
}

m["cop-fay"] = {
	"Fayyumic Coptic",
	1399115,
	"cop",
	aliases = {"Fayyumic", "Faiyumic Coptic", "Faiyumic", "Fayumic Coptic", "Fayumic",
		"Bashmuric Coptic", "Bashmuric"},
}

m["cop-her"] = {
	"Hermopolitan Coptic",
	nil,
	"cop",
	aliases = {"Hermopolitan", "Coptic Dialect H", "Ashmuninic", "Ashmuninic Coptic"},
}

m["cop-lyc"] = {
	"Lycopolitan Coptic",
	nil,
	"cop",
	aliases = {
		"Lycopolitan",
		"Assiutic Coptic", "Asyutic Coptic", "Assiutic", "Asyutic",
		"Lyco-Diospolitan Coptic", "Lyco-Diospolitan",
		"Subakhmimic Coptic", "Subakhmimic"
	},
}

m["cop-old"] = {
	"Old Coptic",
	115518040,
	"cop",
}

m["cop-oxy"] = {
	"Oxyrhynchite Coptic",
	nil,
	"cop",
	aliases = {"Oxyrhynchite", "Mesokemic Coptic", "Mesokemic", "Middle Egyptian Coptic"},
}

m["cop-ply"] = {
	"Proto-Lycopolitan Coptic",
	nil,
	"cop",
	aliases = {"Coptic Dialect i", "Proto-Lyco-Diospolitan Coptic"},
}

m["cop-sah"] = {
	"Sahidic Coptic",
	2645851,
	"cop",
	aliases = {"Sahidic", "Saidic Coptic", "Saidic", "Thebaic Coptic", "Thebaic"},
}

-----------------------------------------------------
--                 Dutch varieties                 --
-----------------------------------------------------

m["nl-BE"] = {
	"Belgian Dutch",
	34147,
	"nl",
	aliases = { "Flemish", "Flemish Dutch", "Southern Dutch"},
}

-----------------------------------------------------
--               Low Saxon varieties               --
-----------------------------------------------------

m["act"] = {
	"Achterhoeks",
	153627,
	"nds-nl",
	aliases = {"Achterhoek", "Achterhooks"},
}

m["drt"] = {
	"Drents",
	2736709,
	"nds-nl",
	aliases = {"Drèents", "Dreins", "Dreints", "Drints"},
}

m["frs"] = {
	"East Frisian Low German",
	149208,
	"nds-de",
	aliases = {"East Frisian", "East Frisian Low Saxon"},
}

m["gos"] = {
	"Gronings",
	508854,
	"nds-nl",
	aliases = {"Grunnegs", "Grönnegs"},
}

m["nds-lpr"] = {
	"Low Prussian",
	33982,
	"nds-de",
}

m["sdz"] = {
	"Sallands",
	3436668,
	"nds-nl",
	aliases = {"Sallaans", "Sallaands"},
}

m["stl"] = {
	"Stellingwerfs",
	506010,
	"nds-nl",
	aliases = {"Stellingwarfs"},
}

m["twd"] = {
	"Twents",
	497363,
	"nds-nl",
	aliases = {"Tweants"},
}

m["vel"] = {
	"Veluws",
	2484810,
	"nds-nl",
}

m["wep"] = {
	"Westphalian",
	505655,
	"nds-de",
	aliases = {"Westfalish", "Westphalien"},
}

-----------------------------------------------------
--               Egyptian varieties                --
-----------------------------------------------------

m["egy-old"] = {
	"Old Egyptian",
	447117,
	"egy",
}

m["egy-mid"] = {
	"Middle Egyptian",
	657330,
	"egy",
	aliases = {"Classical Egyptian"},
}

m["egy-nmi"] = {
	"Neo-Middle Egyptian",
	123735278,
	"egy",
	aliases = {"Égyptien de tradition", "Traditional Egyptian"},
}

m["egy-lat"] = {
	"Late Egyptian",
	1852329,
	"egy",
}

-----------------------------------------------------
--                Elamite varieties                --
-----------------------------------------------------

m["elx-old"] = {
	"Old Elamite",
	nil,
	"elx",
}

m["elx-mid"] = {
	"Middle Elamite",
	nil,
	"elx",
}

m["elx-neo"] = {
	"Neo-Elamite",
	nil,
	"elx",
}

m["elx-ach"] = {
	"Achaemenid Elamite",
	nil,
	"elx",
}

-----------------------------------------------------
--            English and Scots varieties          --
-----------------------------------------------------

-- English varieties

m["en-AU"] = {
	"อังกฤษแบบออสเตรเลีย",
	44679,
	"en",
	aliases = {"Australian English"},
}

m["en-GB"] = {
	"อังกฤษแบบบริเตน",
	7979,
	"en",
	aliases = {"British English"},
}

m["en-GB-SCT"] = {
	"อังกฤษแบบสกอตแลนด์",
	44676,
	"en-GB",
	aliases = {"Scottish English"},
}

m["en-GB-WLS"] = {
	"อังกฤษแบบเวลส์",
	44676,
	"en-GB",
	aliases = {"Welsh English"},
}

m["en-IM"] = {
	"อังกฤษแบบแมงซ์",
	6753295,
	"en-GB",
	aliases = {"Manx English"},
}

m["en-aae"] = {
	"Australian Aboriginal English",
	783347,
	"en-AU",
}

m["en-ear"] = {
	"อังกฤษใหม่ช่วงต้น",
	1472196,
	"en",
	ancestors = "enm",
	aliases = {"Early Modern English", "Early New English"},
}

m["en-geo"] = {
	"Geordie English",
	653421,
	"en",
	ancestors = "enm-nor",
}

m["en-IE"] = { -- FIXME: "IE" doesn't cover Northern Ireland
	"อังกฤษแบบไอร์แลนด์",
	665624,
	"en",
	aliases = {"Irish English"},
}

m["en-uls"] = {
	"Ulster English",
	6840826,
	"en-IE",
}

m["en-GB-NIR"] = {
	"อังกฤษแบบไอร์แลนด์เหนือ",
	6840826, -- actually the code for Ulster English
	"en-uls",
	aliases = {"Northern Irish English"},
}

m["en-NNN"] = { -- NA = Namibia; NNN is NATO 3-letter code for North America
	"อังกฤษแบบอเมริกาเหนือ",
	7053766,
	"en",
	aliases = {"Northern American English"},
	ietf_subtag = "en-021" -- 021 = UN M49 code for "Northern America" (i.e. North America wihout Central America or the Caribbean)
}

m["en-US"] = {
	"อังกฤษแบบอเมริกา",
	7976,
	"en-NNN",
	aliases = {"American English"},
}

m["en-US-CA"] = {
	"อังกฤษแบบแคลิฟอร์เนีย",
	1026812,
	"en-US",
	aliases = {"California English"},
}

m["en-CA"] = {
	"อังกฤษแบบแคนาดา",
	44676,
	"en-US",
	aliases = {"Canadian English"},
}

m["en-HK"] = {
	"อังกฤษแบบฮ่องกง",
	1068863,
	"en",
	aliases = {"Hong Kong English"},
}

m["en-IN"] = {
	"อังกฤษแบบอินเดีย",
	1348800,
	"en",
	aliases = {"Indian English"},
}

m["pld"] = {
	"Polari",
	1359130,
	"en",
}

-- Scots varieties

m["sco-ins"] = {
	"Insular Scots",
	16919205,
	"sco",
}

m["sco-uls"] = {
	"Ulster Scots",
	201966,
	"sco",
}

m["sco-nor"] = {
	"สกอตเหนือ",
	16928150,
	"sco",
	aliases = {"Northern Scots"},
}

m["sco-sou"] = {
	"สกอตใต้",
	7570457,
	"sco",
	aliases = {"South Scots", "Southern Scots", "Borders Scots"},
}

-- Middle English varieties

m["enm-esc"] = { -- Part of Middle English until it developed into Middle Scots.
	"Early Scots",
	5326738,
	"enm",
	ancestors = "enm-nor",
	aliases = {"Old Scots", "Scottish Middle English"},
}

m["enm-nor"] = {
	"Northern Middle English",
	nil,
	"enm",
	ancestors = "ang-nor",
	aliases = {"Northumbrian Middle English"},
}

-- Old English varieties

-- Includes both Mercian and Northumbrian.
m["ang-ang"] = {
	"อังกฤษเก่าแบบแองเกิล",
	nil,
	"ang",
	aliases = {"Anglian Old English"},
}

m["ang-ken"] = {
	"Kentish Old English",
	11687485,
	"ang",
}

m["ang-mer"] = {
	"อังกฤษเก่าแบบเมอร์เซีย",
	602072,
	"ang-ang",
	aliases = {"Mercian Old English"},
}

m["ang-nor"] = {
	"อังกฤษเก่าแบบนอร์ธัมเบรีย",
	1798915,
	"ang-ang",
	aliases = {"Northumbrian Old English"},
}

--[[
m["ang-wsx"] = {
	"อังกฤษเก่าแบบแซกซันตะวันตก",
	nil,
	"ang",
	aliases = {"West Saxon Old English"},
}
]]

-----------------------------------------------------
--     French and French-based creole varieties    --
-----------------------------------------------------

m["fro-nor"] = {
	"ฝรั่งเศสเหนือเก่า",
	2044917,
	"fro",
	aliases = {"นอร์มังเก่า", "Old Northern French", "Old Norman", "Old Norman French"},
}

m["fro-pic"] = {
	"Picard Old French",
	nil,
	"fro",
}

m["xno"] = {
	"แองโกล-นอร์มัง",
	35214,
	"fro-nor",
	aliases = {"Anglo-Norman"},
}

m["xno-law"] = {
	"Law French",
	2044323,
	"xno",
}

m["fr-CA"] = {
	"ฝรั่งเศสแบบแคนาดา",
	1450506,
	"fr",
	aliases = {"Canadian French"},
}

m["fr-CH"] = {
	"ฝรั่งเศสแบบสวิตเซอร์แลนด์",
	1480152,
	"fr",
	aliases = {"Switzerland French"},
}

m["fr-aca"] = {
	"ฝรั่งเศสแบบอะคาเดีย",
	415109,
	"fr",
	aliases = {"Acadian French"},
}

m["fr-lou"] = {
	"Louisiana French",
	3083213,
	"fr",
}

m["fr-mis"] = {
	"Missouri French",
	3083210,
	"fr",
}

m["frc"] = {
	"ฝรั่งเศสแบบเคเจิน",
	880301,
	"fr-lou",
	aliases = {"ฝรั่งเศสแบบลุยเซียนา", "Cajun French", "Louisiana French"},
}

m["ht-sdm"] = {
	"Saint Dominican Creole French",
	nil,
	"ht",
	ancestors = "fr",
}

-- Norman varieties

m["nrf-grn"] = {
	"Guernsey Norman",
	56428,
	"nrf",
	aliases = {"Guernsey"},
}

m["nrf-jer"] = {
	"Jersey Norman",
	56430,
	"nrf",
	aliases = {"Jersey"},
}

-----------------------------------------------------
--                Brythonic varieties              --
-----------------------------------------------------

m["bry-ear"] = {
	"บริทอนิกช่วงต้น",
	nil,
	"cel-bry-pro",
	aliases = {"Early Brythonic"},
}

m["bry-lat"] = {
	"บริทอนิกช่วงปลาย",
	nil,
	"cel-bry-pro",
	aliases = {"Late Brythonic"},
}

-----------------------------------------------------
--                 Gaulish varieties               --
-----------------------------------------------------

m["xcg"] = {
	"Cisalpine Gaulish",
	3832927,
	"cel-gau",
}

m["xtg"] = {
	"Transalpine Gaulish",
	29977,
	"cel-gau",
}

-----------------------------------------------------
--                Portuguese varieties             --
-----------------------------------------------------

m["pt-BR"] = {
	"โปรตุเกสแบบบราซิล",
	750553,
	"pt",
	aliases = {"Brazilian Portuguese"},
}

m["pt-PT"] = {
	"โปรตุเกสแบบยุโรป",
	922399,
	"pt",
	aliases = {"European Portuguese"},
}

-----------------------------------------------------
--                  Spanish varieties              --
-----------------------------------------------------

m["es-ear"] = {
	"Early Modern Spanish",
	5364419,
	"es",
	ancestors = "osp",
}

m["es-AR"] = {
	"Rioplatense Spanish",
	509780,
	"es",
}

m["es-CO"] = {
	"Colombian Spanish",
	1115875,
	"es",
}

m["es-CU"] = {
	"Cuban Spanish",
	824909,
	"es",
}

m["es-MX"] = {
	"Mexican Spanish",
	616620,
	"es",
}

m["es-PE"] = {
	"Peruvian Spanish",
	736236,
	"es",
}

m["es-US"] = {
	"United States Spanish",
	2301077,
	"es",
	aliases = {"US Spanish"},
}
--use label "US Spanish" to put Spanish terms in this category

m["es-PR"] = {
	"Puerto Rican Spanish",
	7258609,
	"es",
}

m["es-VE"] = {
	"Venezuelan Spanish",
	840017,
	"es",
}

-----------------------------------------------------
--                   Fula varieties                --
-----------------------------------------------------

m["fuc"] = {
	"Pulaar",
	1420205,
	"ff",
}

m["fuf"] = {
	"Pular",
	3915357,
	"ff",
}

m["ffm"] = {
	"Maasina Fulfulde",
	3915322,
	"ff",
}

m["fue"] = {
	-- no enwiki entry as of yet but frwiki and pmswiki have one
	"Borgu Fulfulde",
	12952426,
	"ff",
}

m["fuh"] = {
	-- no enwiki entry as of yet but frwiki and pmswiki have one
	"Western Niger Fulfulde",
	12952430,
	"ff",
}

m["fuq"] = {
	-- no enwiki entry as of yet but frwiki, hrwiki and pmswiki have one
	"Central-Eastern Niger Fulfulde",
	12628799,
	"ff",
}

m["fuv"] = {
	-- no enwiki entry as of yet but dewiki, frwiki, hrwiki, pmswiki and swwiki have one
	"Nigerian Fulfulde",
	36129,
	"ff",
}

m["fub"] = {
	-- no enwiki entry as of yet but dewiki, frwiki, hrwiki, pmswiki, ptwiki, swwiki and yowiki have one
	"Adamawa Fulfulde",
	34776,
	"ff",
}

m["fui"] = {
	-- no enwiki entry as of yet but pmswiki and swwiki have one
	"Bagirmi Fulfulde",
	11003859,
	"ff",
}

-----------------------------------------------------
--               German(ic) varieties              --
-----------------------------------------------------

-- (modern) German varieties

m["de-AT"] = {
	"เยอรมันแบบออสเตรีย",
	306626,
	"de",
	aliases = {"Austrian German"},
}

m["de-AT-vie"] = {
	"เยอรมันแบบเวียนนา",
	56474,
	"de-AT",
	aliases = {"Viennese German"},
}

m["de-CH"] = {
	"เยอรมันแบบสวิตเซอร์แลนด์",
	1366643,
	"de",
	aliases = {"Switzerland German", "Schweizer Hochdeutsch", "Swiss Standard German", "Swiss High German"},
}

m["de-bal"] = {
	"Baltic German",
	15785413,
	"de",
}

m["ksh"] = {
	"Kölsch",
	4624,
	"gmw-cfr",
}

m["pfl"] = {
	"เยอรมันแบบปาเลสไตน์",
	23014,
	"gmw-rfr",
	aliases = {"Palatine German", "Pfälzisch", "Pälzisch", "Palatinate German"},
}

m["sli"] = {
	"Silesian East Central German",
	152965,
	"gmw-ecg",
	aliases = {"Silesian"},
}

m["sxu"] = {
	"Upper Saxon German",
	699284,
	"gmw-ecg",
}

-- Old High German varieties

m["lng"] = {
	"Lombardic",
	35972,
	"goh",
}

-- Proto-West Germanic varieties

m["frk"] = {
	"แฟรงก์",
	10860505,
	"gmw-pro",
	aliases = {"แฟรงก์เก่า", "Frankish", "Old Frankish"},
}

-- Alemannic German varieties

m["gsw-low"] = {
	"Low Alemannic German",
	503724,
	"gsw",
}

m["gsw-FR-als"] = {
	"Alsatian Alemannic German",
	8786,
	"gsw-low",
}

m["gsw-hig"] = {
	"High Alemannic German",
	503728,
	"gsw",
}

m["gsw-hst"] = {
	"Highest Alemannic German",
	687538,
	"gsw",
}

m["wae"] = {
	"Walser German",
	680517,
	"gsw-hst",
}

-----------------------------------------------------
--               Old Norse varieties               --
-----------------------------------------------------

m["non-grn"] = {
	"Greenlandic Norse",
	855236,
	"non-own",
}

m["non-oen"] = {
	"Old East Norse",
	10498031,
	"non",
	ancestors = "non",
}

m["non-own"] = {
	"Old West Norse",
	2377483,
	"non",
	ancestors = "non",
}

-----------------------------------------------------
--               Old Swedish varieties             --
-----------------------------------------------------

m["gmq-osw-lat"] = {
	"Late Old Swedish",
	10723594,
	"gmq-osw",
	ancestors = "gmq-osw",
}

-----------------------------------------------------
--                  Greek varieties                --
-----------------------------------------------------

m["qsb-grc"] = {
	"Pre-Greek",
	965052,
	"und",
	family = "qfa-sub",
}

m["grc-aeo"] = {
	"กรีกแบบอีโอลิส",
	406373,
	"grc",
	aliases = {"กรีกแบบอีโอเลีย", "กรีกแบบเลสบอส", "Aeolic Greek", "Lesbic Greek", "Lesbian Greek", "Aeolian Greek"},
}

m["grc-arc"] = {
	"กรีกแบบอาร์เคเดีย",
	nil,
	"grc-arp",
	aliases = {"Arcadian Greek"},
}

m["grc-arp"] = {
	"กรีกแบบอาร์เคโดไซปรัส",
	499602,
	"grc",
	aliases = {"Arcadocypriot Greek"},
}

m["grc-att"] = {
	"กรีกแบบเอเธนส์",
	506588,
	"grc",
	aliases = {"Attic Greek"},
}

m["grc-boi"] = {
	"กรีกแบบบีโอเชีย",
	406373,
	"grc-aeo",
	aliases = {"Boeotian Greek"},
}

m["grc-dor"] = {
	"กรีกแบบดอเรียนส์",
	285494,
	"grc",
	aliases = {"Doric Greek"},
}

m["grc-ela"] = {
	"กรีกแบบเอลิส",
	nil,
	"grc",
	aliases = {"Elean Greek"},
}

m["grc-epc"] = {
	"กรีกมหากาพย์",
	990062,
	"grc",
	aliases = {"กรีกแบบโฮเมอร์", "Epic Greek", "Homeric Greek"},
}

m["grc-ion"] = {
	"กรีกแบบไอโอเนีย",
	504165,
	"grc",
	aliases = {"Ionic Greek"},
}

m["grc-koi"] = {
	"กรีกแบบคอยนี",
	107358,
	"grc",
	ancestors = "grc-att",
	aliases = {"Koine Greek", "Hellenistic Greek"},
}

m["grc-kre"] = {
	"Cretan Ancient Greek", -- to distinguish from Cretan Greek below
	nil,
	"grc-dor",
}

m["grc-opl"] = {
	"โอพุนเชียนโลคริส",
	nil,
	"grc",
	aliases = {"Opuntian Locrian"},
}

m["grc-ozl"] = {
	"โอโซเลียนโลคริส",
	nil,
	"grc",
	aliases = {"Ozolian Locrian"},
}

m["grc-pam"] = {
	"กรีกแบบแพมฟิเลีย",
	2271793,
	"grc",
	aliases = {"Pamphylian Greek"},
}

m["grc-ths"] = {
	"กรีกแบบเธสซาเลีย",
	406373,
	"grc-aeo",
	aliases = {"Thessalian Greek"},
}

m["gkm"] = {
	"กรีกแบบไบแซนไทน์",
	36387,
	"grc",
	ancestors = "grc-koi",
	aliases = {"กรีกสมัยกลาง", "Byzantine Greek", "Medieval Greek"},
}

m["el-cyp"] = {
	"กรีกแบบไซปรัส",
	245899,
	"el",
	aliases = {"Cypriot Greek", "Cypriotic Greek"},
}

m["el-pap"] = {
	"กรีกแบบพาฟอส",
	nil,
	"el",
	aliases = {"Paphian Greek"},
}

m["el-crt"] = {
	"กรีกแบบครีต",
	588306,
	"el",
	aliases = {"Cretan Greek"},
}

m["el-kth"] = {
	"คาทาเรวูซา",
	35961,
	"el",
	ancestors = "gkm",
	aliases = {"กรีกแบบคาทาเรวูซา", "Katharevousa", "Katharevousa Greek"},
}

m["el-kal"] = {
	"Kaliarda",
	nil,
	"el",
}


-----------------------------------------------------
--                 Hebrew varieties                --
-----------------------------------------------------

m["hbo"] = {
	"ฮีบรูไบเบิล",
	1982248,
	"he",
	aliases = {"ฮีบรูคลาสสิก", "Biblical Hebrew", "Classical Hebrew"},
}

m["he-mis"] = {
	"Mishnaic Hebrew",
	1649362,
	"he",
	ancestors = "hbo",
}

m["he-med"] = {
	"ฮีบรูสมัยกลาง",
	2712572,
	"he",
	ancestors = "he-mis",
	aliases = {"Medieval Hebrew"},
}

m["he-IL"] = {
	"ฮีบรูแบบอิสราเอล",
	8141,
	"he",
	aliases = {"Israeli Hebrew"},
}

m["bsh-kat"] = {
	"Kativiri",
	2605045,
	"bsh",
	aliases = {"Katə́viri"},
}

m["xvi"] = {
	"Kamviri",
	1193495,
	"bsh",
	aliases = {"Kamvíri"},
}

m["bsh-mum"] = {
	"Mumviri",
	nil,
	aliases = {"Mumvíri"},
	"bsh"
}

-----------------------------------------------------
--                 Inuit varieties                 --
-----------------------------------------------------

m["esi"] = {
	"North Alaskan Inupiatun",
	nil,
	"ik"
}

m["esk"] = {
	"Northwest Alaskan Inupiatun",
	25559714,
	"ik"
}

-----------------------------------------------------
--                 Iranian varieties               --
-----------------------------------------------------

m["qsb-bma"] = {
	"the BMAC substrate",
	1054850,
	"und",
	family = "qfa-sub",
}

-- Historical and current Iranian dialects

m["ae-old"] = {
	"อเวสตะเก่า",
	29572,
	"ae",
	aliases = {"Old Avestan", "Gathic Avestan"},
}

m["ae-yng"] = {
	"Younger Avestan",
	29572,
	"ae-old",
	aliases = {"Young Avestan"},
}

m["bcc"] = {
	"บาโลจใต้",
	33049,
	"bal",
	aliases = {"Southern Balochi", "Southern Baluchi"},
}

m["bgp"] = {
	"บาโลจตะวันออก",
	33049,
	"bal",
	aliases = {"Eastern Balochi", "Eastern Baluchi"},
}

m["bgn"] = {
	"บาโลจตะวันตก",
	33049,
	"bal",
	aliases = {"Western Balochi", "Western Baluchi"},
}

m["bsg-ban"] = {
	"Bandari",
	nil,
	"bsg",
}

m["bsg-hor"] = {
	"Hormozi",
	nil,
	"bsg",
}

m["bsg-min"] = {
	"Minabi",
	nil,
	"bsg",
}

m["kho-old"] = {
	"Old Khotanese",
	nil,
	"kho",
}

m["kho-lat"] = {
	"Late Khotanese",
	nil,
	"kho-old",
}

m["peo-ear"] = {
	"เปอร์เซียเก่าช่วงต้น",
	nil,
	"peo",
	aliases = {"Early Old Persian"},
}

m["peo-lat"] = {
	"เปอร์เซียเก่าช่วงปลาย",
	nil,
	"peo",
	aliases = {"Late Old Persian"},
}

m["pal-ear"] = {
	"เปอร์เซียกลางช่วงต้น",
	nil,
	"pal",
	aliases = {"Early Middle Persian"},
}

m["pal-lat"] = {
	"เปอร์เซียกลางช่วงปลาย",
	nil,
	"pal",
	ancestors = "pal-ear",
	aliases = {"Late Middle Persian"},
}

m["ps-nwe"] = {
	"ปาทานตะวันตกเฉียงเหนือ",
	nil,
	"ps",
	aliases = {"Northwestern Pashto"},
}

m["ps-cgi"] = {
	"Central Ghilzay",
	nil,
	"ps-nwe",
}

m["ps-mah"] = {
	"Mahsudi",
	nil,
	"ps-nwe",
}

m["ps-nea"] = {
	"ปาทานตะวันออกเฉียงเหนือ",
	nil,
	"ps",
	aliases = {"Northeastern Pashto"},
}

m["ps-afr"] = {
	"Afridi",
	nil,
	"ps-nea",
}

m["ps-bng"] = {
	"Bangash",
	nil,
	"ps-nea",
}


m["ps-xat"] = {
	"Khatak",
	nil,
	"ps-nea",
}

m["ps-pes"] = {
	"Peshawari",
	nil,
	"ps-nea",
}

m["ps-sea"] = {
	"ปาทานตะวันออกเฉียงใต้",
	nil,
	"ps",
	aliases = {"Southeastern Pashto"},
}

m["ps-ban"] = {
	"Bannu",
	nil,
	"ps-sea",
}

m["ps-kak"] = {
	"Kakari",
	nil,
	"ps-sea",
}

m["ps-ser"] = {
	"Sher",
	nil,
	"ps-sea",
}

m["ps-waz"] = {
	"Waziri",
	12274473,
	"ps-sea",
}

m["ps-swe"] = {
	"ปาทานตะวันตกเฉียงใต้",
	nil,
	"ps",
	aliases = {"Southwestern Pashto"},
}

m["ps-kan"] = {
	"Kandahari",
	nil,
	"ps-swe",
}

m["ps-jad"] = {
	"Jadrani",
	nil,
	"ps",
	ancestors = "ira-pat-pro"
}

m["xme-azr"] = {
	"Old Azari",
	nil,
	"xme-ott",
	aliases = {"Old Azeri", "Azari", "Azeri", "Āḏarī", "Adari", "Adhari"},
}

m["xme-ttc-cen"] = {
	"Central Tati",
	nil,
	"xme-ott",
}

m["xme-ttc-eas"] = {
	"Eastern Tati",
	nil,
	"xme-ott",
}

m["xme-ttc-nor"] = {
	"Northern Tati",
	nil,
	"xme-ott",
}

m["xme-ttc-sou"] = {
	"Southern Tati",
	nil,
	"xme-ott",
}

m["xme-ttc-wes"] = {
	"Western Tati",
	nil,
	"xme-ott",
}

m["xmn"] = {
	"Manichaean Middle Persian",
	nil,
	"pal-lat",
}

m["fa-ear"] = {
	"Early New Persian",
	127413796,
	"fa",
	ancestors = "pal-lat",
	translit = "fa-cls-translit",
}

m["fa-cls"] = {
	"เปอร์เซียคลาสสิก",
	9168,
	"fa",
	ancestors = "fa-ear",
	aliases = {"Classical Persian"},
	--translit = "fa-cls-translit",
}

m["fa-ira"] = {
	"เปอร์เซียแบบอิหร่าน",
	3513637,
	"fa",
	aliases = {"เปอร์เซียใหม่", "เปอร์เซียตะวันตก", "Iranian Persian", "Modern Persian", "Western Persian"},
	--translit = "fa-ira-translit",
}

m["prs"] = {
	"ดารี",
	178440,
	"fa",
	aliases = {"เปอร์เซียแบบดารี", "เปอร์เซียตะวันออก", "Dari", "Dari Persian", "Eastern Persian", "Afghan Persian"},
	--translit = "fa-cls-translit",
}

m["haz"] = {
	"Hazaragi",
	33398,
	"prs",
	--translit = "fa-cls-translit",
}

m["os-dig"] = {
	"Digor Ossetian",
	3027861,
	"os",
	aliases = {"Digoron", "Digor"},
}

m["os-iro"] = {
	"Iron Ossetian",
	nil,
	"os",
	aliases = {"Iron"},
}

m["sog-ear"] = {
	"Early Sogdian",
	nil,
	"sog",
}

m["sog-lat"] = {
	"Late Sogdian",
	nil,
	"sog-ear",
}

m["oru-kan"] = {
	"Kaniguram",
	6363164,
	"oru",
}

m["oru-log"] = {
	"Logar",
	nil,
	"oru",
}

m["oos-ear"] = {
	"Early Old Ossetic",
	nil,
	"oos",
}

m["oos-lat"] = {
	"Late Old Ossetic",
	nil,
	"oos",
}

m["rdb-jir"] = {
	"Jirofti",
	nil,
	"rdb",
}

m["rdb-kah"] = {
	"Kahnuji",
	nil,
	"rdb",
}

-- Southwestern Fars lects

m["fay-bur"] = {
	"Burenjani",
	nil,
	"fay",
}

m["fay-bsh"] = {
	"Bushehri",
	nil,
	"fay",
}

m["fay-dsh"] = {
	"Dashtaki",
	nil,
	"fay",
}

m["fay-dav"] = {
	"Davani",
	5228140,
	"fay",
}

m["fay-eze"] = {
	"Emamzada Esma’ili",
	nil,
	"fay",
}

m["fay-gav"] = {
	"Gavkoshaki",
	nil,
	"fay",
}

m["fay-kho"] = {
	"Khollari",
	nil,
	"fay",
}

m["fay-kon"] = {
	"Kondazi",
	nil,
	"fay",
}

m["fay-kzo"] = {
	"Old Kazeruni",
	nil,
	"fay",
}

m["fay-mas"] = {
	"Masarami",
	nil,
	"fay",
}

m["fay-pap"] = {
	"Papuni",
	nil,
	"fay",
}

m["fay-sam"] = {
	"Samghani",
	nil,
	"fay",
}

m["fay-shr"] = {
	"Shirazi",
	nil,
	"fay",
}

m["fay-sho"] = {
	"Old Shirazi",
	nil,
	"fay",
}

m["fay-sam"] = {
	"Samghani",
	nil,
	"fay",
}

m["fay-kar"] = {
	"Khargi",
	nil,
	"fay",
}

m["fay-sor"] = {
	"Sorkhi",
	nil,
	"fay",
}

-- Talysh lects

m["tly-cen"] = {
	"Central Talysh",
	nil,
	"tly",
}

m["tly-asa"] = {
	"Asalemi",
	nil,
	"tly-cen",
}

m["tly-kar"] = {
	"Karganrudi",
	nil,
	"tly-cen",
}

m["tly-tul"] = {
	"Tularudi",
	nil,
	"tly-cen",
}

m["tly-tal"] = {
	"Taleshdulabi",
	nil,
	"tly-cen",
}

m["tly-nor"] = {
	"Northern Talysh",
	nil,
	"tly",
}

m["tly-aze"] = {
	"Azerbaijani Talysh",
	nil,
	"tly-nor",
}

m["tly-anb"] = {
	"Anbarani",
	nil,
	"tly-nor",
}

m["tly-sou"] = {
	"Southern Talysh",
	nil,
	"tly",
}

m["tly-fum"] = {
	"Fumani",
	nil,
	"tly-sou",
}

m["tly-msu"] = {
	"Masulei",
	nil,
	"tly-sou",
}

m["tly-msa"] = {
	"Masali",
	nil,
	"tly-sou",
}

m["tly-san"] = {
	"Shandarmani",
	nil,
	"tly-sou",
}

-- Tafreshi lects

m["xme-amo"] = {
	"Amorehi",
	nil,
	"xme-taf",
}

m["atn"] = {
	"Ashtiani",
	3436590,
	"xme-taf",
	wikipedia_article = "Ashtiani language",
}

m["xme-bor"] = {
	"Borujerdi",
	nil,
	"xme-taf",
}

m["xme-ham"] = {
	"Hamadani",
	6302426,
	"xme-taf",
}

m["xme-kah"] = {
	"Kahaki",
	nil,
	"xme-taf",
}

m["vaf"] = {
	"Vafsi",
	32611,
	"xme-taf",
}

-- Kermanic lects

m["kfm"] = {
	"Khunsari",
	6403030,
	"xme-ker",
	wikipedia_article = "Khunsari language",
}

m["xme-mah"] = {
	"Mahallati",
	nil,
	"xme-ker",
}

m["xme-von"] = {
	"Vonishuni",
	nil,
	"xme-ker",
}

m["xme-bdr"] = {
	"Badrudi",
	nil,
	"xme-ker",
}

m["xme-del"] = {
	"Delijani",
	nil,
	"xme-ker",
}

m["xme-kas"] = {
	"Kashani",
	nil,
	"xme-ker",
}

m["xme-kes"] = {
	"Kesehi",
	nil,
	"xme-ker",
}

m["xme-mey"] = {
	"Meymehi",
	nil,
	"xme-ker",
}

m["ntz"] = {
	"Natanzi",
	6968399,
	"xme-ker",
	wikipedia_article = "Natanzi language",
}

m["xme-abz"] = {
	"Abuzeydabadi",
	nil,
	"xme-ker",
}

m["xme-aby"] = {
	"Abyanehi",
	nil,
	"xme-ker",
}

m["xme-far"] = {
	"Farizandi",
	nil,
	"xme-ker",
}

m["xme-jow"] = {
	"Jowshaqani",
	nil,
	"xme-ker",
}

m["xme-nas"] = {
	"Nashalji",
	nil,
	"xme-ker",
}

m["xme-qoh"] = {
	"Qohrudi",
	nil,
	"xme-ker",
}

m["xme-yar"] = {
	"Yarandi",
	nil,
	"xme-ker",
}

m["soj"] = {
	"Soi",
	7930463,
	"xme-ker",
	aliases = {"Sohi"},
	wikipedia_article = "Soi language",
}

m["xme-tar"] = {
	"Tari",
	nil,
	"xme-ker",
}

m["gzi"] = {
	"Gazi",
	5529130,
	"xme-ker",
	wikipedia_article = "Gazi language",
}

m["xme-sed"] = {
	"Sedehi",
	nil,
	"xme-ker",
}

m["xme-ard"] = {
	"Ardestani",
	nil,
	"xme-ker",
}

m["xme-zef"] = {
	"Zefrehi",
	nil,
	"xme-ker",
}

m["xme-isf"] = {
	"Isfahani",
	nil,
	"xme-ker",
}

m["xme-kaf"] = {
	"Kafroni",
	nil,
	"xme-ker",
}

m["xme-vrz"] = {
	"Varzenehi",
	nil,
	"xme-ker",
}

m["xme-xur"] = {
	"Khuri",
	nil,
	"xme-ker",
}

m["nyq"] = {
	"Nayini",
	6983146,
	"xme-ker",
	wikipedia_article = "Nayini language",
}

m["xme-ana"] = {
	"Anaraki",
	nil,
	"xme-ker",
}

m["gbz"] = {
	"Zoroastrian Dari",
	32389,
	"xme-ker",
	aliases = {"Behdināni", "Gabri", "Gavrŭni", "Gabrōni"},
	wikipedia_article = "Zoroastrian Dari language",
}

m["xme-krm"] = {
	"Kermani",
	nil,
	"xme-ker",
}

m["xme-yaz"] = {
	"Yazdi",
	nil,
	"xme-ker",
}

m["xme-bid"] = {
	"Bidhandi",
	nil,
	"xme-ker",
}

m["xme-bij"] = {
	"Bijagani",
	nil,
	"xme-ker",
}

m["xme-cim"] = {
	"Chimehi",
	nil,
	"xme-ker",
}

m["xme-han"] = {
	"Hanjani",
	nil,
	"xme-ker",
}

m["xme-kom"] = {
	"Komjani",
	nil,
	"xme-ker",
}

m["xme-nar"] = {
	"Naraqi",
	nil,
	"xme-ker",
}

m["xme-nus"] = {
	"Nushabadi",
	nil,
	"xme-ker",
}

m["xme-qal"] = {
	"Qalhari",
	nil,
	"xme-ker",
}

m["xme-trh"] = {
	"Tarehi",
	nil,
	"xme-ker",
}

m["xme-val"] = {
	"Valujerdi",
	nil,
	"xme-ker",
}

m["xme-var"] = {
	"Varani",
	nil,
	"xme-ker",
}

m["xme-zor"] = {
	"Zori",
	nil,
	"xme-ker",
}

-- Ramandi lects

m["tks-ebr"] = {
	"Ebrahimabadi",
	nil,
	"tks",
}

m["tks-sag"] = {
	"Sagzabadi",
	nil,
	"tks",
}

m["tks-esf"] = {
	"Esfarvarini",
	nil,
	"tks",
}

m["tks-tak"] = {
	"Takestani",
	nil,
	"tks",
}

m["tks-cal"] = {
	"Chali Tati",
	nil,
	"tks",
	aliases = {"Chāli"},
	wikipedia_article = "Tati language (Iran)",
}

m["tks-dan"] = {
	"Danesfani",
	nil,
	"tks",
}

m["tks-xia"] = {
	"Khiaraji",
	nil,
	"tks",
}

m["tks-xoz"] = {
	"Khoznini",
	nil,
	"tks",
}

-- Shughni dialects

m["sgh-bro"] = {
	"Bartangi-Oroshori",
	nil,
	"sgh",
}

m["sgh-bar"] = {
	"Bartangi",
	nil,
	"sgh-bro",
}

m["sgh-oro"] = {
	"Oroshori",
	nil,
	"sgh-bro",
	aliases = {"Roshorvi"},
}

m["sgh-rsx"] = {
	"Roshani-Khufi",
	nil,
	"sgh",
}

m["sgh-xuf"] = {
	"Khufi",
	2562249,
	"sgh-rsx",
	aliases = {"Xufi", "Xūfī"},
	wikipedia_article = "Khufi language",
}

m["sgh-ros"] = {
	"Roshani",
	2597566,
	"sgh-rsx",
	aliases = {"Rushani", "Rōšāni"},
	wikipedia_article = "Rushani language",
}

m["sgh-xgb"] = {
	"Khughni-Bajui",
	nil,
	"sgh",
}

m["sgh-xug"] = {
	"Khughni",
	nil,
	"sgh-xgb",
}

m["sgh-baj"] = {
	"Bajui",
	nil,
	"sgh-xgb",
}

-- Indo-Aryan varieties

m["inc-mit"] = {
	"Mitanni",
	1986700,
	"inc-pro",
}

m["bra-old"] = {
	"Old Braj",
	nil,
	"bra",
}

m["gu-kat"] = {
	"Kathiyawadi",
	nil,
	"gu",
	aliases = {"Kathiyawadi Gujarati", "Kathiawadi"},
}

m["gu-lda"] = {
	"Lisan ud-Dawat Gujarati",
	nil,
	"gu",
	aliases = {"Lisan ud-Dawat", "LDA"},
}

m["hi-mum"] = {
	"ฮินดีแบบมุมไบ",
	3543151,
	"hi",
	aliases = {"ฮินดีแบบบอมเบย์", "Bombay Hindi", "Mumbai Hindi", "Bambaiyya Hindi"},
}

m["hi-mid"] = {
	"ฮินดีกลาง",
	nil,
	"inc-ohi",
	ancestors = "inc-ohi",
	aliases = {"Middle Hindi"},
}

m["pnb"] = {
	"ปัญจาบตะวันตก",
	58635,
	"pa",
	"pa-Arab",
	aliases = {"Western Panjabi"},
}

m["sa-bhs"] = {
	"Buddhist Hybrid Sanskrit",
	248758,
	"sa",
}

m["sa-bra"] = {
	"Brahmanic Sanskrit",
	36858,
	"sa",
}

m["sa-cls"] = {
	"สันสกฤตคลาสสิก",
	11059,
	"sa",
	aliases = {"Classical Sanskrit"},
}

m["sa-neo"] = {
	"สันสกฤตใหม่",
	11059,
	"sa",
	aliases = {"Neo-Sanskrit"},
}

m["sa-ved"] = {
	"สันสกฤตพระเวท",
	36858,
	"sa",
	aliases = {"Vedic Sanskrit"},
}

m["si-med"] = {
	"สิงหลสมัยกลาง",
	nil,
	"si",
	aliases = {"Medieval Sinhalese", "Medieval Sinhala"},
}

m["kok-mid"] = {
	"กงกัณกลาง",
	nil,
	"kok",
	aliases = {"กงกัณสมัยกลาง", "Middle Konkani", "Medieval Konkani"},
}

m["kok-old"] = {
	"กงกัณเก่า",
	nil,
	"kok",
	aliases = {"กงกัณช่วงต้น", "Old Konkani", "Early Konkani"},
}


-- Indian subcontinent languages


-- Dhivehi varieties

m["dv-mul"] = {
	"Mulaku Dhivehi",
	nil,
	"dv",
	aliases = {"Mulaku Divehi", "Mulaku Bas"},
}

m["dv-huv"] = {
	"Huvadhu Dhivehi",
	nil,
	"dv",
	aliases = {"Huvadhu Divehi", "Huvadhu Bas"},
}

m["dv-add"] = {
	"Addu Dhivehi",
	nil,
	"dv",
	aliases = {"Addu Divehi", "Addu Bas"},
}


-- Dravidian varieties


m["ta-mid"] = {
	"ทมิฬกลาง",
	20987434,
	"ta",
	aliases = {"Middle Tamil"},
}

m["kn-hav"] = {
	"Havigannada",
	24276369,
	"kn",
}

m["kn-kun"] = {
	"Kundagannada",
	6444255,
	"kn",
}

-- Prakrits

m["pra-ard"] = {
	"อรรธมคธ",
	35217,
	"pra",
	aliases = {"ปรากฤตแบบอรรธมคธ", "Ardhamagadhi Prakrit", "Ardhamagadhi"},
}

m["pra-hel"] = {
	"เอลู",
	15080869,
	"pra",
	aliases = {"ปรากฤตแบบเอลู", "ปรากฤตแบบเฮลู", "เฮลู", "Elu", "Elu Prakrit", "Helu", "Helu Prakrit"},
}

m["pra-kha"] = {
	"ขศะ",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบขศะ", "ขษะ", "ขศิระ", "Khasa Prakrit", "Khasa"},
}

m["pra-mag"] = {
	"มคธ",
	2652214,
	"pra",
	aliases = {"มาคธี", "ปรากฤตแบบมคธ", "ปรากฤตแบบมาคธี", "Magadhi", "Magadhi Prakrit"},
}

m["pra-mah"] = {
	"มหาราษฏร์",
	2586773,
	"pra",
	aliases = {"ปรากฤตแบบมหาราษฏร์", "Maharastri Prakrit", "Maharashtri Prakrit", "Maharastri", "Maharashtri"},
}

m["pra-pai"] = {
	"ไปศาจ",
	2995607,
	"pra-sau",
	aliases = {"ปรากฤตแบบไปศาจ", "Paisaci Prakrit", "Paisaci", "Paisachi"},
	ancestors = "pra-sau",
}

m["pra-sau"] = {
	"เศารเสน",
	2452885,
	"pra",
	aliases = {"ปรากฤตแบบเศารเสน", "Sauraseni Prakrit", "Sauraseni", "Shauraseni"},
}

m["pra-ava"] = {
	"อาวันต์",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบอาวันต์", "Avanti", "Avanti Prakrit"},
}

m["pra-pra"] = {
	"ปราจย์",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบปราจย์", "Pracya", "Pracya Prakrit"},
}

m["pra-bah"] = {
	"พาห์ลีกะ",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบพาห์ลีกะ", "Bahliki", "Bahliki Prakrit"},
}

m["pra-dak"] = {
	"ทากษิณาตย์",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบทากษิณาตย์", "Daksinatya", "Daksinatya Prakrit"},
}

m["pra-sak"] = {
	"ศาการะ",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบศาการะ", "Sakari", "Sakari Prakrit"},
}

m["pra-can"] = {
	"จาณฑาล",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบจาณฑาล", "Candali", "Candali Prakrit"},
}

m["pra-sab"] = {
	"ศาพระ",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบศาพระ", "Sabari", "Sabari Prakrit"},
}

m["pra-abh"] = {
	"อาภีระ",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบอาภีระ", "Abhiri", "Abhiri Prakrit"},
}

m["pra-dra"] = {
	"ทรามิล",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบทรามิล", "Dramili", "Dramili Prakrit"},
}

m["pra-odr"] = {
	"โอฑระ",
	nil,
	"pra",
	aliases = {"ปรากฤตแบบโอฑระ", "Odri", "Odri Prakrit"},
}

-- Apabhramsas

m["inc-aav"] = {
	"Avahattha",
	nil,
	"inc-apa",
	aliases = {"Abahattha"},
}

m["inc-asa"] = {
	"Sauraseni Apabhramsa",
	nil,
	"inc-apa",
}

m["inc-agu"] = {
	"Gurjara Apabhramsa",
	nil,
	"inc-apa",
}

m["inc-aka"] = {
	"Kasmiri Apabhramsa",
	nil,
	"inc-apa",
}

m["inc-ama"] = {
	"Maharastri Apabhramsa",
	nil,
	"inc-apa",
}

m["inc-ata"] = {
	"Takka Apabhramsa",
	nil,
	"inc-apa",
}

m["inc-avr"] = {
	"Vracada Apabhramsa",
	nil,
	"inc-apa",
}

-- Italian, Latin and other Italic varieties

m["roa-oit"] = {
	"อิตาลีเก่า",
	652,
	"it",
	aliases = {"Old Italian"},
}

m["it-CH"] = {
	"อิตาลีแบบสวิตเซอร์แลนด์",
	672147,
	"it",
	aliases = {"Switzerland Italian"},
}

-- Latin varieties by period

m["itc-ola"] = {
	"ละตินเก่า",
	12289,
	"la",
	aliases = {"Old Latin"},
}

m["la-cla"] = {
	"ละตินคลาสสิก",
	253854,
	"la",
	aliases = {"Classical Latin"},
}

m["la-lat"] = {
	"ละตินช่วงปลาย",
	1503113,
	"la",
	ancestors = "la-cla",
	aliases = {"Late Latin"},
}

m["la-vul"] = {
	"ละตินตลาด", --vulgar = ภาษาตลาด
	37560,
	"la",
	ancestors = "la-cla",
	aliases = {"Vulgar Latin"},
}

m["la-med"] = {
	"ละตินสมัยกลาง",
	1163234,
	"la",
	ancestors = "la-lat",
	aliases = {"Medieval Latin"},
}

m["la-eme"] = {
	"ละตินสมัยกลางช่วงต้น",
	nil,
	"la-med",
	aliases = {"Early Medieval Latin"},
	wikipedia_article = "Medieval Latin",
}

m["la-ecc"] = {
	"ละตินคริสตจักร",
	1247932,
	"la",
	aliases = {"Ecclesiastical Latin", "Church Latin"},
	ancestors = "la-lat",
}

m["la-ren"] = {
	"ละตินสมัยเรอแนซ็องส์",
	499083,
	"la",
	ancestors = "la-med",
	aliases = {"Renaissance Latin"},
}

m["la-new"] = {
	"ละตินใหม่",
	1248221,
	"la",
	aliases = {"New Latin", "Modern Latin"},
	ancestors = "la-ren",
}

m["la-con"] = {
	"Contemporary Latin",
	1246397,
	"la-new",
}

-- other Italic lects

m["osc-luc"] = {
	"Lucanian",
	nil,
	"osc",
}

m["osc-sam"] = {
	"Samnite",
	nil,
	"osc",
}

m["xum-her"] = {
	"Hernician",
	nil,
	"xum",
}


-- Malay and related varieties

m["ms-old"] = {
	"มลายูเก่า",
	nil,
	"ms",
	aliases = {"Old Malay"},
}

m["ms-cla"] = {
	"มลายูคลาสสิก",
	nil,
	"ms",
	ancestors = "ms-old",
	aliases = {"Classical Malay"},
}

m["pse-bsm"] = {
	"Besemah",
	nil,
	"pse",
}

m["bew-kot"] = {
	"Betawi Kota",
	nil,
	"bew",
}

m["bew-ora"] = {
	"Betawi Ora",
	nil,
	"bew",
}

m["bew-udi"] = {
	"Betawi Udik",
	nil,
	"bew",
}


-- Mongolic lects

m["xng-ear"] = {
	"Early Middle Mongol",
	nil,
	"xng",
}

m["xng-lat"] = {
	"Late Middle Mongol",
	nil,
	"xng",
	ancestors = "xng-ear",
}

m["mn-kha"] = {
	"Khalkha Mongolian",
	6399808,
	"mn",
	aliases = {"Khalkha"},
}

m["mn-ord"] = {
	"Ordos Mongolian",
	716904,
	"mn",
	aliases = {"Ordos"},
}

m["mn-cha"] = {
	"Chakhar Mongolian",
	907425,
	"mn",
	aliases = {"Chakhar"},
}

m["mn-khr"] = {
	"Khorchin Mongolian",
	3196210,
	"mn",
	aliases = {"Khorchin"},
}

-- Japanese varieties

m["ja-mid"] = {
	"ญี่ปุ่นกลาง",
	6841474,
	"ojp",
	ancestors = "ojp",
	aliases = {"Middle Japanese"},
}

m["ja-mid-ear"] = {
	"ญี่ปุ่นกลางช่วงต้น",
	182695,
	"ja-mid",
	aliases = {"Early Middle Japanese"},
}

m["ja-mid-lat"] = {
	"ญี่ปุ่นกลางช่วงปลาย",
	1816184,
	"ja-mid",
	ancestors = "ja-mid-ear",
	aliases = {"Late Middle Japanese"},
}

m["ja-ear"] = {
	"ญี่ปุ่นใหม่ช่วงต้น",
	5326692,
	"ja",
	ancestors = "ja-mid-lat",
	aliases = {"Early Modern Japanese"},
}

m["ojp-eas"] = {
	"ญี่ปุ่นเก่าตะวันออก",
	65247957,
	"ojp",
	aliases = {"Eastern Old Japanese"},
}

-- Kartvelian varieties


m["ka-mid"] = {
	"จอร์เจียกลาง",
	nil,
	"ka",
	ancestors = "oge",
	aliases = {"Middle Georgian"},
}

-- Korean varieties

m["oko-lat"] = {
	"เกาหลีเก่าช่วงปลาย",
	nil,
	"oko",
	aliases = {"Late Old Korean"},
}

m["okm-ear"] = {
	"เกาหลีกลางช่วงต้น",
	nil,
	"okm",
	aliases = {"Early Middle Korean"},
}

m["ko-cen"] = {
	"เกาหลีตอนกลาง",
	nil,
	"ko",
	aliases = {"Central Korean"},
}

m["ko-gyg"] = {
	"Gyeonggi Korean",
	485492,
	"ko-cen",
	aliases = {"Seoul Korean"},
}

m["ko-chu"] = {
	"Chungcheong Korean",
	625800,
	"ko-cen",
	aliases = {"Hoseo Korean"},
}

m["ko-hwa"] = {
	"Hwanghae Korean",
	16183706,
	"ko-cen",
}

m["ko-gan"] = {
	"Gangwon Korean",
	11260444,
	"ko-cen",
	aliases = {"Yeongdong Korean"},
}

m["ko-gys"] = {
	"Gyeongsang Korean",
	488002,
	"ko",
	aliases = {"Southeastern Korean"},
}

m["ko-jeo"] = {
	"Jeolla Korean",
	11250166,
	"ko",
	aliases = {"Southwestern Korean"},
}

m["ko-pyo"] = {
	"Pyongan Korean",
	7263142,
	"ko",
	aliases = {"Northwestern Korean"},
}

m["ko-ham"] = {
	"Hamgyong Korean",
	860702,
	"ko",
	aliases = {"Northeastern Korean"},
}

m["ko-yuk"] = {
	"Yukjin Korean",
	16171275,
	"ko",
	aliases = {"Yukchin Korean", "Ryukjin Korean", "Ryukchin Korean"},
}

-- Occitan varieties

m["oc-auv"] = {
	"Auvergnat",
	35359,
	"oc",
	aliases = {"Auvernhat", "Auvergnese"},
}

m["oc-gas"] = {
	"Gascon",
	35735,
	"oc",
}

-- standardized dialect of Gascon
m["oc-ara"] = {
	"Aranese",
	10196,
	"oc-gas",
}

m["oc-lan"] = {
	"Languedocien",
	942602,
	"oc",
	aliases = {"Lengadocian"},
}

m["oc-lim"] = {
	"Limousin",
	427614,
	"oc",
}

m["oc-pro"] = {
	"พรอว็องส์",
	241243,
	"oc",
	aliases = {"Provençal", "Provencal"},
}

m["oc-pro-old"] = {
	"พรอว็องส์เก่า",
	2779185,
	"pro",
	aliases = {"Old Provençal"},
}

m["oc-viv"] = {
	"Vivaro-Alpine",
	1649613,
	"oc",
}

m["oc-jud"] = {
	"Shuadit",
	56472,
	"oc",
	aliases = {
		"Chouhadite", "Chouhadit", "Chouadite", "Chouadit", "Shuhadit",
		"Judeo-Occitan", "Judæo-Occitan", "Judaeo-Occitan",
		"Judeo-Provençal", "Judæo-Provençal", "Judaeo-Provençal",
		"Judeo-Provencal", "Judaeo-Provencal",
		"Judeo-Comtadin", "Judæo-Comtadin", "Judaeo-Comtadin",
	},
}

-- Oromo varieties

m["hae"] = {
	"Harar Oromo",
	5330355,
	"om",
	aliases = {"Eastern Oromo"},
}

m["gax"] = {
	"Borana",
	2910610,
	"om",
	aliases = {"Southern Oromo"},
}

m["orc"] = {
	"Orma",
	2919128,
	"om",
}

m["ssn"] = {
	"Waata",
	3501553,
	"om",
}

-- Phillipine varieties

m["tl-old"] = {
	"ตากาล็อกเก่า",
	12967437,
	"tl",
	aliases = {"Old Tagalog"},
}

m["tl-cls"] = {
	"ตากาล็อกคลาสสิก",
	nil,
	"tl",
	aliases = {"Classical Tagalog"},
}


-- Pre-Roman substrates

m["qsb-ibe"] = {
	"a pre-Roman substrate of Iberia",
	530799,
	"und",
	family = "qfa-sub",
}

m["qsb-bal"] = {
	"Paleo-Balkan",
	1815070,
	"und",
	family = "qfa-sub",
}

-- Sardinian varieties

m["sc-src"] = {
	"Logudorese",
	777974,
	"sc",
	aliases = {"Logudorese Sardinian"},
}

m["sc-nuo"] = {
	"Nuorese",
	nil,
	"sc-src",
	aliases = {"Nuorese Sardinian"},
}

m["sc-sro"] = {
	"Campidanese",
	35348,
	"sc",
	aliases = {"Campidanese Sardinian"},
}

-- Rwanda-Rundi varieties

m["rw-kin"] = {
	"Kinyarwanda",
	33573,
	"rw",
	aliases = {"Rwanda"},
}

m["rw-run"] = {
	"Kirundi",
	33583,
	"rw",
	aliases = {"Rundi"},
}

-- Slavic varieties

m["cs-ear"] = {
	"เช็กใหม่ช่วงต้น",
	nil,
	"cs",
	ancestors = "zlw-ocs",
	aliases = {"Early Modern Czech"},
}

m["cu-bgm"] = {
	"บัลแกเรียกลาง",
	12294897,
	"cu",
	ancestors = "cu",
	aliases = {"Middle Bulgarian"},
}

m["zle-mru"] = {
	"รัสเซียกลาง",
	35228,
	"ru",
	"Cyrs",
	ancestors = "orv",
	aliases = {"Middle Russian"},
	translit = "ru-translit",
}

m["zle-obe"] = {
	"เบลารุสเก่า",
	13211,
	"zle-ort",
	aliases = {"Old Belarusian"},
}

m["zle-ouk"] = {
	"ยูเครนเก่า",
	13211,
	"zle-ort",
	aliases = {"Old Ukrainian"},
}

m["zlw-mpl"] = {
	"โปแลนด์กลาง",
	402878,
	"pl",
	ancestors = "zlw-opl",
	aliases = {"Middle Polish"},
	entry_name = {
		remove_diacritics = c.acute,
		remove_exceptions = {"Ć", "ć", "Ń", "ń", "Ó", "ó", "Ś", "ś", "Ź", "ź"},
	},
}

m["pl-gre"] = {
	"Greater Polish",
	4106789,
	"pl",
	wikipedia_article = "Greater Poland dialect group",
}

m["pl-les"] = {
	"Lesser Polish",
	361709,
	"pl",
	wikipedia_article = "Lesser Poland dialect group",
}

m["pl-mas"] = {
	"Masovian Polish",
	4274559,
	"pl",
	wikipedia_article = "Masovian dialect group",
}

m["pl-gor"] = {
	"Goral",
	452889,
	"pl",
	wikipedia_article = "Goral ethnolect",
}

m["zle-ops"] = {
	"Old Pskovian",
	4167885,
	"zle-ono",
}

-- Serbo-Croatian varieties

m["ckm"] = {
	"Chakavian Serbo-Croatian",
	337565,
	"sh",
	aliases = {"Čakavian"},
}

m["kjv"] = {
	"Kajkavian Serbo-Croatian",
	838165,
	"sh",
}

m["sh-tor"] = { -- Linguist code srp-tor
	"Torlakian Serbo-Croatian",
	1078803,
	"sh",
	aliases = {"Torlak"},
}

-- Tibetic lects

m["adx"] = {
	"Amdo Tibetan",
	56509,
	"bo",
}

m["kbg"] = {
	"Khamba",
	12952626,
	"bo",
}

m["khg"] = {
	"Khams Tibetan",
	56601,
	"bo",
}

m["tsk"] = {
	"Tseku",
	11159532,
	"bo",
}

-- Tuareg lects

m["thv"] = {
	"Tamahaq",
	56703,
	"tmh",
}

m["ttq"] = {
	"Tawellemmet",
	56390,
	"tmh",
}

m["taq"] = {
	"Tamasheq",
	4670066,
	"tmh",
}

m["thz"] = {
	"Tayert",
	56388,
	"tmh",
}

m["tmh-ght"] = {
	"Ghat",
	47012900,
	"tmh",
	wikipedia_article = "Tamahaq language",
}

-- Turkic lects

m["trk-cmn"] = {
	"เตอร์กิกสามัญ",
	1126028,
	"trk-pro",
	aliases = {"Common Turkic"},
}

m["trk-ogz-pro"] = {
	"โอคุซดั้งเดิม",
	494600,
	"trk-pro",
	family = "trk-ogz",
	aliases = {"เตอร์กิกสามัญตะวันตกเฉียงใต้", "Proto-Oghuz", "Southwestern Common Turkic"},
}

m["crh-dbj"] = {
	"Dobrujan Tatar",
	12811566,
	"crh",
	aliases = {"Romanian Tatar"},
}

m["cv-ana"] = {
	"Anatri",
	nil,
	"cv",
	aliases = {"Anatri Chuvash"},
}

m["cv-mid"] = {
	"Middle Chuvash",
	nil,
	"cv",
	ancestors = "cv-old",
}

m["cv-old"] = {
	"Old Chuvash",
	nil,
	"cv",
	ancestors = "xbo",
}

m["cv-vir"] = {
	"Viryal",
	4278332,
	"cv",
	aliases = {"Viryal Chuvash"},
}

m["kjh-fyu"] = {
	"Fuyu Kyrgyz",
	2598963,
	"kjh",
	aliases = {"Fuyu Kirgiz", "Fuyu Kirghiz", "Manchurian Kyrgyz", "Manchurian Kirgiz", "Manchurian Kirghiz"},
}

m["klj-arg"] = {
	"Arghu",
	33455,
	"klj",
}

m["otk-kir"] = {
	"คีร์กีซเก่า",
	83142,
	"otk",
	aliases = {"Old Kirghiz"},
}

m["qwm-arm"] = {
	"Armeno-Kipchak",
	2027503,
	"qwm",
}

m["qwm-mam"] = {
	"Mamluk-Kipchak",
	4279942,
	"qwm",
}

m["az-cls"] = {
	"อาเซอร์ไบจานคลาสสิก",
	nil,
	"az",
	aliases = {"Classical Azerbaijani", "Classical Azeri"},
}

m["qxq"] = {
	"Qashqai",
	13192,
	"az",
	aliases = {"Qaşqay", "Qashqayi", "Kashkai", "Kashkay"},
}

m["tr-CY"] = {
	"ตุรกีแบบไซปรัส",
	7917392,
	"tr",
	aliases = {"Cypriot Turkish"},
}

-- Uralic lects

m["mns-eas"] = {
	"Eastern Mansi",
	30311755,
	"mns-cen",
}

m["mns-wes"] = {
	"Western Mansi",
	30311756,
	"mns-cen",
}

-- Other lects

m["alv-kro"] = {
	"Kromanti",
	1093206,
	"crp-mar",
}

m["bat-pro"] = {
	"บอลติกดั้งเดิม",
	1703347,
	"ine-bsl-pro",
	aliases = {"Proto-Baltic"},
}

m["es-lun"] = {
	"Lunfardo",
	1401612,
	"es",
}

m["fiu-pro"] = {
	"ฟินโน-ยูกริกดั้งเดิม",
	79890,
	"urj-pro",
	aliases = {"Proto-Finno-Ugric"},
}

m["gem-sue"] = {
	"Suevic",
	155085,
	"gmw-pro",
	aliases = {"Suebian"},
}

m["iro-ohu"] = {
	"Old Wendat",
	nil,
	"wdt",
	wikipedia_article = "Huron language",
}

m["iro-omo"] = {
	"Old Mohawk",
	nil,
	"moh",
}

m["iro-oon"] = {
	"Old Onondaga",
	nil,
	"ono",
}

m["mis-idn"] = {
	"Idiom Neutral",
	35847,
	"und", -- or "vo"
	wikipedia_article = "Idiom Neutral",
}

m["mis-tdl"] = {
	"Turduli",
	nil,
	"und",
	wikipedia_article = "Turduli",
}

m["mis-tdt"] = {
	"Turdetani",
	nil,
	"und",
	wikipedia_article = "Turdetani",
}

m["mis-xnu"] = {
	"Xiongnu",
	10901674,
	"und",
	wikipedia_article = "Xiongnu",
}

m["okz-ang"] = {
	"เขมรเก่าสมัยอังกอร์", -- ถ้าใช้ พระนคร จะสับสนกับของไทย
	9205,
	"okz",
	aliases = {"Angkorian Old Khmer"},
	wikipedia_article = "Khmer language#Historical periods",
}

m["okz-pre"] = {
	"เขมรเก่าสมัยก่อนอังกอร์",
	9205,
	"okz",
	aliases = {"Pre-Angkorian Old Khmer"},
	wikipedia_article = "Khmer language#Historical periods",
}

m["mul-tax"] = {
	"taxonomic name",
	nil,
	"mul",
}

m["qsb-pyg"] = {
	"a substrate language originally spoken by the Pygmies",
	nil,
	"und",
	family = "qfa-sub",
	wikipedia_article = "Classification of Pygmy languages#Original Pygmy language(s)",
}

m["tai-shz"] = {
	"Shangsi Zhuang",
	13216,
	"za",
}

m["tbq-pro"] = {
	"ทิเบโต-เบอร์มันดั้งเดิม",
	7251864,
	"sit-pro",
	aliases = {"ทิเบต-พม่าดั้งเดิม", "Proto-Tibeto-Burman"},
}

m["urj-fpr-pro"] = {
	"Proto-Finno-Permic",
	nil,
	"urj-pro",
}

m["woy"] = {
	"Weyto",
	3915918,
	"und",
}

m["th-new"] = {
	"Hacked Thai", -- temporary for testing new translit/display methods
	nil,
	"th",
	translit = "User:Benwing2/th-scraping-translit",
	display_text = "User:Benwing2/th-scraping-translit",
	entry_name = "User:Benwing2/th-scraping-translit",
	preprocess_links = "User:Benwing2/th-scraping-translit",
}

return require("Module:languages").finalizeData(m, "language", true)