blueapple8259/wikipedia-ko huggingface dataset:
local separators = {
	dot = true,
	pipe = true,
	comma = true,
	['tpt-languages'] = true

local function getSeparator(sep)
	if type(sep) ~= 'string' then
		return nil
	end
	if separators[sep] then
		return mw.message.new(sep .. '-separator'):plain
	else
		return sep
	end
end

local function generateLink
	if not page then
		return nil
	end
	local pagename = mw.title.new(page)
	if not pagename then
		-- Default to the args we were passed if our page
		-- object was nil.
		pagename = page
	else
		pagename = pagename.text
	end
	delim = delim or ''
	endDelim = endDelim or delim
	nspace = nspace or ''
	if nspace == 'all' then
		nspace = ''
		pagename = page
	end
	local outStr = mw.ustring.gsub( 
		string.format,
		 ':+',
		 ':' 
	)
	return outStr
end

function p._main(args)
	local t = {}
	local separator = getSeparator(args.separator)
	local conjunction = getSeparator(args.conjunction)
	for i, v in ipairs(args) do
		table.insert(t, generateLink)
	end
	return mw.text.listToText
end

function p.main(frame)
	local origArgs = require('Module:Arguments').getArgs(frame, {
		trim = false,
		removeBlanks = false,
		wrappers = '틀:Pagelist'

	-- Process integer args. Allow for explicit positional arguments that are
	-- specified out of order, e.g. .
	-- After processing, the args can be accessed accurately from ipairs.
	local args = {}
	for k, v in pairs(origArgs) do
		if type(k) == 'number' and 
			k >= 1 and
			math.floor(k) == k and
			string.match then -- Remove blank or whitespace values.
			table.insert
		end
	end
	table.sort(args)
	for i, v in ipairs(args) do
		args[i] = origArgs[v]
		-- Trim whitespace.
		if type(args[i]) == 'string' then
			args[i] = mw.text.trim(args[i])
		end
	end

	-- Get old named args. We don't need to remove blank values
	-- as for the nspace and edelim parameters the behaviour is different
	-- depending on whether the parameters are blank or absent, and for
	-- the delim parameter the default should be the blank string anyway.
	args.delim = origArgs.delim
	args.edelim = origArgs.edelim
	args.nspace = origArgs.nspace

	-- Get new named args, "separator" and "conjunction", and strip blank values.
	if origArgs.separator and origArgs.separator ~= '' then
		args.separator = origArgs.separator
	end
	if origArgs.conjunction and origArgs.conjunction ~= '' then
		args.conjunction = origArgs.conjunction
	end

	return p._main(args)
end
lang = "ar, ti", -- administrative languages: ar, en, ti
 defaultlang = "ti",
 ["AN"] = {name="Anseba",isonames={ar="Ansabā",ti="‘Anseba"}},
 ["DK"] = {name="Southern Red Sea",isonames={ar="Janūbī al Baḩrī al Aḩmar",ti="Debubawi K’eyyĭḥ Baḥri"}},
 ["DU"] = {name="Debub",isonames={ar="Al Janūbī",ti="Debub"},altnames={"Southern"}},
 ["GB"] = {name="Gash-Barka",isonames={ar="Qāsh-Barkah",ti="Gash-Barka"}},
 ["MA"] = {name="Maekel",isonames={ar="Al Awsaţ",ti="Ma’ĭkel"},altnames={"Central"}},
 ["SK"] = {name="Northern Red Sea",isonames={ar="Shimālī al Baḩrī al Aḩmar",ti="Semienawi K’eyyĭḥ Baḥri"}}
lang = "es", -- administrative languages: es, gn
 ["1"] = {name="Concepción"},
 ["2"] = {name="San Pedro"},
 ["3"] = {name="Cordillera"},
 ["4"] = {name="Guairá"},
 ["5"] = {name="Caaguazú"},
 ["6"] = {name="Caazapá"},
 ["7"] = {name="Itapúa"},
 ["8"] = {name="Misiones"},
 ["9"] = {name="Paraguarí"},
 ["10"] = {name="Alto Paraná"},
 ["11"] = {name="Central"},
 ["12"] = {name="Ñeembucú"},
 ["13"] = {name="Amambay"},
 ["14"] = {name="Canindeyú"},
 ["15"] = {name="Presidente Hayes"},
 ["16"] = {name="Alto Paraguay"},
 ["19"] = {name="Boquerón"},
 ["ASU"] = {name="Asunción",altnames={"Capital District","Distrito Capital"}}
lang = "fr",
 ["2"] = {name="Lékoumou"},
 ["5"] = {name="Kouilou"},
 ["7"] = {name="Likouala"},
 ["8"] = {name="Cuvette"},
 ["9"] = {name="Niari"},
 ["11"] = {name="Bouenza"},
 ["12"] = {name="Pool"},
 ["13"] = {name="Sangha"},
 ["14"] = {name="Plateaux"},
 ["15"] = {name="Cuvette-Ouest"},
 ["16"] = {name="Pointe-Noire"},
 ["BZV"] = {name="Brazzaville"}
lang = "en, pt, zh", -- administrative languages: zh
-- Provinces
 ["AH"] = {name="Anhui",isoname="Anhui Sheng",lang="zh"},
 ["FJ"] = {name="Fujian",isoname="Fujian Sheng",lang="zh"},
 ["GD"] = {name="Guangdong",isoname="Guangdong Sheng",lang="zh"},
 ["GS"] = {name="Gansu",isoname="Gansu Sheng",lang="zh"},
 ["GZ"] = {name="Guizhou",isoname="Guizhou Sheng",lang="zh"},
 ["HA"] = {name="Henan",isoname="Henan Sheng",lang="zh"},
 ["HB"] = {name="Hubei",isoname="Hubei Sheng",lang="zh"},
 ["HE"] = {name="Hebei",isoname="Hebei Sheng",lang="zh"},
 ["HI"] = {name="Hainan",isoname="Hainan Sheng",lang="zh"},
 ["HL"] = {name="Heilongjiang",isoname="Heilongjiang Sheng",lang="zh"},
 ["HN"] = {name="Hunan",isoname="Hunan Sheng",lang="zh"},
 ["JL"] = {name="Jilin",isoname="Jilin Sheng",lang="zh"},
 ["JS"] = {name="Jiangsu",isoname="Jiangsu Sheng",lang="zh"},
 ["JX"] = {name="Jiangxi",isoname="Jiangxi Sheng",lang="zh"},
 ["LN"] = {name="Liaoning",isoname="Liaoning Sheng",lang="zh"},
 ["QH"] = {name="Qinghai",isoname="Qinghai Sheng",lang="zh"},
 ["SC"] = {name="Sichuan",isoname="Sichuan Sheng",lang="zh"},
 ["SD"] = {name="Shandong",isoname="Shandong Sheng",lang="zh"},
 ["SN"] = {name="Shaanxi",isoname="Shaanxi Sheng",lang="zh"},
 ["SX"] = {name="Shanxi",isoname="Shanxi Sheng",lang="zh"},
 ["TW"] = {name="Taiwan",isoname="Taiwan Sheng",lang="zh"},
 ["YN"] = {name="Yunnan",isoname="Yunnan Sheng",lang="zh"},
 ["ZJ"] = {name="Zhejiang",isoname="Zhejiang Sheng",lang="zh"},
-- Autonomous regions
 ["GX"] = {name="Guangxi",isoname="Guangxi Zhuangzu Zizhiqu",lang="zh"},
 ["NM"] = {name="Inner Mongolia",isoname="Nei Mongol Zizhiqu",lang="zh"},
 ["NX"] = {name="Ningxia",isoname="Ningxia Huizi Zizhiqu",lang="zh"},
 ["XJ"] = {name="Xinjiang",isoname="Xinjiang Uygur Zizhiqu",lang="zh"},
 ["XZ"] = {name="Tibet",isoname="Xizang Zizhiqu",lang="zh"},
-- Municipalities
 ["BJ"] = {name="Beijing",isoname="Beijing Shi",lang="zh"},
 ["CQ"] = {name="Chongqing Shi",lang="zh"},
 ["SH"] = {name="Shanghai",isoname="Shanghai Shi",lang="zh"},
 ["TJ"] = {name="Tianjin",isoname="Tianjin Shi",lang="zh"},
-- Special administrative regions
 ["HK"] = {name="Hong Kong",isonames={en="Hong Kong SAR",zh="Xianggang Tebiexingzhengqu"}},
 ["MO"] = {name="Macau",isonames={en="Macao SAR",pt="Macau SAR",zh="Aomen Tebiexingzhengqu"},altnames={"Macao"}}
lang = "en, na",
 ["01"] = {name="Aiwo",altnames={"Aiwo District"}},
 ["02"] = {name="Anabar",altnames={"Anabar District"}},
 ["03"] = {name="Anetan",altnames={"Anetan District"}},
 ["04"] = {name="Anibare",altnames={"Anibare District"}},
 ["05"] = {name="Baitsi",altnames={"Baitsi District","Baiti District","Baiti"}},
 ["06"] = {name="Boe",altnames={"Boe District"}},
 ["07"] = {name="Buada",altnames={"Buada District"}},
 ["08"] = {name="Denigomodu",altnames={"Denigomodu District"}},
 ["09"] = {name="Ewa",altnames={"Ewa District"}},
 ["10"] = {name="Ijuw",altnames={"Ijuw District"}},
 ["11"] = {name="Meneng",altnames={"Meneng District"}},
 ["12"] = {name="Nibok",altnames={"Nibok District"}},
 ["13"] = {name="Uaboe",altnames={"Uaboe District"}},
 ["14"] = {name="Yaren",altnames={"Yaren District"}}
lang = "ro",
 ["AB"] = {name="Alba"},
 ["AG"] = {name="Argeș"},
 ["AR"] = {name="Arad"},
 ["BC"] = {name="Bacău"},
 ["BH"] = {name="Bihor"},
 ["BN"] = {name="Bistrița-Năsăud"},
 ["BR"] = {name="Brăila"},
 ["BT"] = {name="Botoșani"},
 ["BV"] = {name="Brașov"},
 ["BZ"] = {name="Buzău"},
 ["CJ"] = {name="Cluj"},
 ["CL"] = {name="Călărași"},
 ["CS"] = {name="Caraș-Severin"},
 ["CT"] = {name="Constanța"},
 ["CV"] = {name="Covasna"},
 ["DB"] = {name="Dâmbovița"},
 ["DJ"] = {name="Dolj"},
 ["GJ"] = {name="Gorj"},
 ["GL"] = {name="Galați"},
 ["GR"] = {name="Giurgiu"},
 ["HD"] = {name="Hunedoara"},
 ["HR"] = {name="Harghita"},
 ["IF"] = {name="Ilfov"},
 ["IL"] = {name="Ialomița"},
 ["IS"] = {name="Iași"},
 ["MH"] = {name="Mehedinți"},
 ["MM"] = {name="Maramureș"},
 ["MS"] = {name="Mureș"},
 ["NT"] = {name="Neamț"},
 ["OT"] = {name="Olt"},
 ["PH"] = {name="Prahova"},
 ["SB"] = {name="Sibiu"},
 ["SJ"] = {name="Sălaj"},
 ["SM"] = {name="Satu Mare"},
 ["SV"] = {name="Suceava"},
 ["TL"] = {name="Tulcea"},
 ["TM"] = {name="Timiș"},
 ["TR"] = {name="Teleorman"},
 ["VL"] = {name="Vâlcea"},
 ["VN"] = {name="Vrancea"},
 ["VS"] = {name="Vaslui"},
 ["B"] = {name="Bucharest",isoname="București"}
lang = "en",
 ["E"] = {name="Eastern Province",isoname="Eastern"},
 ["N"] = {name="Northern Province",isoname="Northern"},
 ["NW"] = {name="North Western Province",isoname="North Western"},
 ["S"] = {name="Southern Province",isoname="Southern"},
 ["W"] = {name="Western Area",isoname="Western Area (Freetown)",altnames={"Freetown","Freetown Peninsula"}}
lang = "sk",
 ["BC"] = {name="Banská Bystrica Region",isoname="Banskobystrický kraj",altnames={"Banská Bystrica"}},
 ["BL"] = {name="Bratislava Region",isoname="Bratislavský kraj",altnames={"Bratislava"}},
 ["KI"] = {name="Košice Region",isoname="Košický kraj",altnames={"Košice"}},
 ["NI"] = {name="Nitra Region",isoname="Nitriansky kraj",altnames={"Nitra"}},
 ["PV"] = {name="Prešov Region",isoname="Prešovský kraj",altnames={"Prešov"}},
 ["TA"] = {name="Trnava Region",isoname="Trnavský kraj",altnames={"Trnava"}},
 ["TC"] = {name="Trenčín Region",isoname="Trenčiansky kraj",altnames={"Trenčín"}},
 ["ZI"] = {name="Žilina Region",isoname="Žilinský kraj",altnames={"Žilina"}}
lang = "en",
 ["BG"] = {name="Bong"},
 ["BM"] = {name="Bomi"},
 ["CM"] = {name="Grand Cape Mount"},
 ["GB"] = {name="Grand Bassa"},
 ["GG"] = {name="Grand Gedeh"},
 ["GK"] = {name="Grand Kru"},
 ["GP"] = {name="Gbarpolu"},
 ["LO"] = {name="Lofa"},
 ["MG"] = {name="Margibi"},
 ["MO"] = {name="Montserrado"},
 ["MY"] = {name="Maryland"},
 ["NI"] = {name="Nimba"},
 ["RG"] = {name="River Gee"},
 ["RI"] = {name="River Cess"},
 ["SI"] = {name="Sinoe"}
lang = "ko",
-- Provinces (special self-governing)
 ["41"] = {name="Gyeonggi",isoname="Gyeonggi-do"},
 ["42"] = {name="Gangwon",isoname="Gangwon-do"},
 ["43"] = {name="North Chungcheong",isoname="Chungcheongbuk-do"},
 ["44"] = {name="South Chungcheong",isoname="Chungcheongnam-do"},
 ["45"] = {name="North Jeolla",isoname="Jeollabuk-do"},
 ["46"] = {name="South Jeolla",isoname="Jeollanam-do"},
 ["47"] = {name="North Gyeongsang",isoname="Gyeongsangbuk-do"},
 ["48"] = {name="South Gyeongsang",isoname="Gyeongsangnam-do"},
 ["49"] = {name="Jeju",isoname="Jeju-teukbyeoljachido"},
-- Cities 
 ["26"] = {name="Busan",isoname="Busan-gwangyeoksi"},
 ["27"] = {name="Daegu",isoname="Daegu-gwangyeoksi"},
 ["28"] = {name="Incheon",isoname="Incheon-gwangyeoksi"},
 ["29"] = {name="Gwangju",isoname="Gwangju-gwangyeoksi"},
 ["30"] = {name="Daejeon",isoname="Daejeon-gwangyeoksi"},
 ["31"] = {name="Ulsan",isoname="Ulsan-gwangyeoksi"},
 ["11"] = {name="Seoul",isoname="Seoul-teukbyeolsi"},
 ["50"] = {name="Sejong"}
lang = "fr",
 ["1"] = {name="Kayes",altnames={"Kayes Region"}},
 ["2"] = {name="Koulikoro",altnames={"Koulikoro Region"}},
 ["3"] = {name="Sikasso",altnames={"Sikasso Region"}},
 ["4"] = {name="Ségou",altnames={"Ségou Region"}},
 ["5"] = {name="Mopti",altnames={"Mopti Region"}},
 ["6"] = {name="Tombouctou",altnames={"Tombouctou Region","Timbuktu"}},
 ["7"] = {name="Gao",altnames={"Gao Region"}},
 ["8"] = {name="Kidal",altnames={"Kidal Region"}},
 ["9"] = {name="Ménaka",altnames={"Ménaka Region"}},
 ["10"] = {name="Taoudénit",altnames={"Taoudénit Region","Taoudenni","Taoudéni"}},
 ["BKO"] = {name="Bamako",altnames={"Bamako Capital District"}}
lang = "fr",
 ["1"] = {name="Agadez",altnames={"Agadez Region"}},
 ["2"] = {name="Diffa",altnames={"Diffa Region"}},
 ["3"] = {name="Dosso",altnames={"Dosso Region"}},
 ["4"] = {name="Maradi",altnames={"Maradi Region"}},
 ["5"] = {name="Tahoua",altnames={"Tahoua Region"}},
 ["6"] = {name="Tillabéri",altnames={"Tillabéri Region"}},
 ["7"] = {name="Zinder",altnames={"Zinder Region"}},
 ["8"] = {name="Niamey"}
lang = "ms",
 ["01"] = {name="Johor",altnames={"Johor Darul Ta'zim"}},
 ["02"] = {name="Kedah",altnames={"Kedah Darul Aman"}},
 ["03"] = {name="Kelantan",altnames={"Kelantan Darul Naim"}},
 ["04"] = {name="Malacca",isoname="Melaka"},
 ["05"] = {name="Negeri Sembilan",altnames={"Negeri Sembilan Darul Khusus"}},
 ["06"] = {name="Pahang",altnames={"Pahang Darul Makmur"}},
 ["07"] = {name="Penang",isoname="Pulau Pinang"},
 ["08"] = {name="Perak",altnames={"Perak Darul Ridzuan"}},
 ["09"] = {name="Perlis",altnames={"Perlis Indera Kayangan"}},
 ["10"] = {name="Selangor",altnames={"Selangor Darul Ehsan"}},
 ["11"] = {name="Terengganu",altnames={"Terengganu Darul Iman"}},
 ["12"] = {name="Sabah"},
 ["13"] = {name="Sarawak"},
 ["14"] = {name="Kuala Lumpur",isoname="Wilayah Persekutuan Kuala Lumpur",altnames={"Federal Territory of Kuala Lumpur"}},
 ["15"] = {name="Labuan",isoname="Wilayah Persekutuan Labuan",altnames={"Federal Territory of Labuan"}},
 ["16"] = {name="Putrajaya",isoname="Wilayah Persekutuan Putrajaya",altnames={"Federal Territory of Putrajaya"}}
lang = "mn",
 ["035"] = {name="Orkhon",isoname="Orhon",altnames={"Orkhon Province","Orkhon Aimag"}},
 ["037"] = {name="Darkhan-Uul",isoname="Darhan uul",altnames={"Darkhan-Uul Province","Darkhan-Uul Aimag"}},
 ["039"] = {name="Khentii",isoname="Hentiy",altnames={"Khentii Province","Khentii Aimag"}},
 ["041"] = {name="Khövsgöl",isoname="Hövsgöl",altnames={"Khövsgöl Province","Khövsgöl Aimag"}},
 ["043"] = {name="Khovd",isoname="Hovd",altnames={"Khovd Province","Khovd Aimag"}},
 ["046"] = {name="Uvs",altnames={"Uvs Province","Uvs Aimag"}},
 ["047"] = {name="Töv",altnames={"Töv Province","Töv Aimag"}},
 ["049"] = {name="Selenge",altnames={"Selenge Province","Selenge Aimag"}},
 ["051"] = {name="Sükhbaatar",isoname="Sühbaatar",altnames={"Sükhbaatar Province","Sükhbaatar Aimag"}},
 ["053"] = {name="Ömnögovi",isoname="Ömnögovĭ",altnames={"Ömnögovi Province","Ömnögovi Aimag"}},
 ["055"] = {name="Övörkhangai",isoname="Övörhangay",altnames={"Övörkhangai Province","Övörkhangai Aimag"}},
 ["057"] = {name="Zavkhan",isoname="Dzavhan",altnames={"Zavkhan Province","Zavkhan Aimag"}},
 ["059"] = {name="Dundgovi",isoname="Dundgovĭ",altnames={"Dundgovi Province","Dundgovi Aimag"}},
 ["061"] = {name="Dornod",altnames={"Dornod Province","Dornod Aimag"}},
 ["063"] = {name="Dornogovi",isoname="Dornogovĭ",altnames={"Dornogovi Province","Dornogovi Aimag"}},
 ["064"] = {name="Govisümber",isoname="Govĭ-Sümber",altnames={"Govisümber Province","Govisümber Aimag"}},
 ["065"] = {name="Govi-Altai",isoname="Govĭ-Altay",altnames={"Govi-Altai Province","Govi-Altai Aimag"}},
 ["067"] = {name="Bulgan",altnames={"Bulgan Province","Bulgan Aimag"}},
 ["069"] = {name="Bayankhongor",isoname="Bayanhongor",altnames={"Bayankhongor Province","Bayankhongor Aimag"}},
 ["071"] = {name="Bayan-Ölgii",isoname="Bayan-Ölgiy",altnames={"Bayan-Ölgii Province","Bayan-Ölgii Aimag"}},
 ["073"] = {name="Arkhangai",isoname="Arhangay",altnames={"Arkhangai Province","Arkhangai Aimag"}},
 ["1"] = {name="Ulaanbaatar",altnames={"Ulan Bator"}}
lang = "pl",
 ["02"] = {name="Lower Silesian Voivodeship",isoname="Dolnośląskie",altnames={"Lower Silesia"}},
 ["04"] = {name="Kuyavian-Pomeranian Voivodeship",isoname="Kujawsko-pomorskie",altnames={"Kuyawy-Pomerania"}},
 ["06"] = {name="Lublin Voivodeship",isoname="Lubelskie",altnames={"Lublin"}},
 ["08"] = {name="Lubusz Voivodeship",isoname="Lubuskie",altnames={"Lubusz"}},
 ["10"] = {name="Łódź Voivodeship",isoname="Łódzkie",altnames={"Łódź"}},
 ["12"] = {name="Lesser Poland Voivodeship",isoname="Małopolskie",altnames={"Lesser Poland"}},
 ["14"] = {name="Masovian Voivodeship",isoname="Mazowieckie",altnames={"Mazovian Voivodeship","Mazovia"}},
 ["16"] = {name="Opole Voivodeship",isoname="Opolskie",altnames={"Opole"}},
 ["18"] = {name="Podkarpackie Voivodeship",isoname="Podkarpackie",altnames={"Subcarpathian Voivodeship","Subcarpathia"}},
 ["20"] = {name="Podlaskie Voivodeship",isoname="Podlaskie",altnames={"Podlasie"}},
 ["22"] = {name="Pomeranian Voivodeship",isoname="Pomorskie",altnames={"Pomerania"}},
 ["26"] = {name="Świętokrzyskie Voivodeship",isoname="Świętokrzyskie",altnames={"Holy Cross"}},
 ["24"] = {name="Silesian Voivodeship",isoname="Śląskie",altnames={"Silesia"}},
 ["28"] = {name="Warmian-Masurian Voivodeship",isoname="Warmińsko-mazurskie",altnames={"Warmia-Masuria","Warmia-Mazury"}},
 ["30"] = {name="Greater Poland Voivodeship",isoname="Wielkopolskie",altnames={"Greater Poland"}},
 ["32"] = {name="West Pomeranian Voivodeship",isoname="Zachodniopomorskie",altnames={"West Pomerania"}}
lang = "ar",
 ["DI"] = {name="Damascus",isoname="Dimashq",altnames={"Damascus Governorate"}},
 ["DR"] = {name="Daraa",isoname="Dar'ā",altnames={"Daraa Governorate"}},
 ["DY"] = {name="Deir ez-Zor",isoname="Dayr az Zawr",altnames={"Deir ez-Zor Governorate"}},
 ["HA"] = {name="Hasaka",isoname="Al Ḩasakah",altnames={"Hasaka Governorate"}},
 ["HI"] = {name="Homs",isoname="Ḩimş",altnames={"Homs Governorate"}},
 ["HL"] = {name="Aleppo",isoname="Ḩalab",altnames={"Aleppo Governorate"}},
 ["HM"] = {name="Hama",isoname="Ḩamāh",altnames={"Hama Governorate"}},
 ["ID"] = {name="Idlib",isoname="Idlib",altnames={"Idlib Governorate"}},
 ["LA"] = {name="Latakia",isoname="Al Lādhiqīyah",altnames={"Latakia Governorate"}},
 ["QU"] = {name="Quneitra",isoname="Al Qunayţirah",altnames={"Quneitra Governorate"}},
 ["RA"] = {name="Raqqa",isoname="Ar Raqqah",altnames={"Raqqa Governorate"}},
 ["RD"] = {name="Rif Dimashq",isoname="Rīf Dimashq",altnames={"Rif Dimashq Governorate"}},
 ["SU"] = {name="As-Suwayda",isoname="As Suwaydā'",altnames={"As-Suwayda Governorate"}},
 ["TA"] = {name="Tartus",isoname="Ţarţūs",altnames={"Tartus Governorate"}}
lang = "fr, sg",
 defaultlang = "fr",
 ["AC"] = {name="Ouham",isonames={fr="Ouham",sg="Wâmo"}},
 ["BB"] = {name="Bamingui-Bangoran",isonames={fr="Bamingui-Bangoran",sg="Bamïngï-Bangoran"}},
 ["BK"] = {name="Basse-Kotto",isonames={fr="Basse-Kotto",sg="Do-Kötö"}},
 ["HK"] = {name="Haute-Kotto",isonames={fr="Haute-Kotto",sg="Tö-Kötö"}},
 ["HM"] = {name="Haut-Mbomou",isonames={fr="Haut-Mbomou",sg="Tö-Mbömü"}},
 ["HS"] = {name="Mambéré-Kadéï",isonames={fr="Haute-Sangha / Mambéré-Kadéï",sg="Tö-Sangä / Mbaere-Kadeï"}},
 ["KG"] = {name="Kémo",isonames={fr="Kémo-Gribingui",sg="Kemö-Gïrïbïngï"}},
 ["LB"] = {name="Lobaye",isonames={fr="Lobaye",sg="Lobâye"}},
 ["MB"] = {name="Mbomou",isonames={fr="Mbomou",sg="Mbömü"}},
 ["MP"] = {name="Ombella-M'Poko",isonames={fr="Ombella-Mpoko",sg="Ömbëlä-Pökö"}},
 ["NM"] = {name="Nana-Mambéré",isonames={fr="Nana-Mambéré",sg="Nanä-Mbaere"}},
 ["OP"] = {name="Ouham-Pendé",isonames={fr="Ouham-Pendé",sg="Wâmo-Pendë"}},
 ["UK"] = {name="Ouaka",isonames={fr="Ouaka",sg="Wäkä"}},
 ["VK"] = {name="Vakaga"},
 ["KB"] = {name="Nana-Grébizi",isonames={fr="Gribingui",sg="Gïrïbïngï"}},
 ["SE"] = {name="Sangha-Mbaéré",isonames={fr="Sangha",sg="Sangä"}},
 ["BGF"] = {name="Bangui",isonames={fr="Bangui",sg="Bangî"}}
lang = "ar, fr",
 defaultlang = "fr",
 ["AR"] = {name="Arta",isonames={fr="Arta",ar="‘Artā"}},
 ["AS"] = {name="Ali Sabieh",isonames={fr="Ali Sabieh",ar="‘Alī Şabīḩ"}},
 ["DI"] = {name="Dikhil",isonames={fr="Dikhil",ar="Dikhīl"}},
 ["OB"] = {name="Obock",isonames={fr="Obock",ar="Awbūk"}},
 ["TA"] = {name="Tadjourah",isonames={fr="Tadjourah",ar="Tājūrah"}},
 ["DJ"] = {name="Djibouti",isonames={fr="Djibouti",ar="Jībūtī"}}
lang = "en",
 ["01"] = {name="Kingston"},
 ["02"] = {name="Saint Andrew"},
 ["03"] = {name="Saint Thomas"},
 ["04"] = {name="Portland"},
 ["05"] = {name="Saint Mary"},
 ["06"] = {name="Saint Ann"},
 ["07"] = {name="Trelawny"},
 ["08"] = {name="Saint James"},
 ["09"] = {name="Hanover"},
 ["10"] = {name="Westmoreland"},
 ["11"] = {name="Saint Elizabeth"},
 ["12"] = {name="Manchester"},
 ["13"] = {name="Clarendon"},
 ["14"] = {name="Saint Catherine"}
lang = "am, en", -- administrative languages: am
 defaultlang = "am",
 ["AF"] = {name="Afar",isonames={am="Āfar",en="Afar"}},
 ["AM"] = {name="Amara",isonames={am="Āmara",en="Amara"}},
 ["BE"] = {name="Benshangul-Gumuz",isonames={am="Bīnshangul Gumuz",en="Benshangul-Gumaz"}},
 ["GA"] = {name="Gambela",isonames={am="Gambēla Hizboch",en="Gambela Peoples"}},
 ["HA"] = {name="Harari",isonames={am="Hārerī Hizb",en="Harari People"}},
 ["OR"] = {name="Oromia",isonames={am="Oromīya",en="Oromia"}},
 ["SN"] = {name="Southern Nations, Nationalities and Peoples",isonames={am="YeDebub Bihēroch Bihēreseboch na Hizboch",en="Southern Nations, Nationalities and Peoples"}},
 ["SO"] = {name="Somali",isonames={am="Sumalē",en="Somali"}},
 ["TI"] = {name="Tigray",isonames={am="Tigray",en="Tigrai"}},
 ["AA"] = {name="Addis Ababa",isonames={am="Ādīs Ābeba",en="Addis Ababa"}},
 ["DD"] = {name="Dire Dawa",isonames={am="Dirē Dawa",en="Dire Dawa"}},
lang = "es",
 ["AT"] = {name="Atlántida"},
 ["CH"] = {name="Choluteca"},
 ["CL"] = {name="Colón"},
 ["CM"] = {name="Comayagua"},
 ["CP"] = {name="Copán"},
 ["CR"] = {name="Cortés"},
 ["EP"] = {name="El Paraíso"},
 ["FM"] = {name="Francisco Morazán"},
 ["GD"] = {name="Gracias a Dios"},
 ["IB"] = {name="Islas de la Bahía"},
 ["IN"] = {name="Intibucá"},
 ["LE"] = {name="Lempira"},
 ["LP"] = {name="La Paz"},
 ["OC"] = {name="Ocotepeque"},
 ["OL"] = {name="Olancho"},
 ["SB"] = {name="Santa Bárbara"},
 ["VA"] = {name="Valle"},
 ["YO"] = {name="Yoro"}
lang = "fr, ht",
 defaultlang = "fr",
 ["AR"] = {name="Artibonite",isonames={fr="Artibonite",ht="Latibonit"}},
 ["CE"] = {name="Centre",isonames={fr="Centre",ht="Sant"}},
 ["GA"] = {name="Grand’Anse",isonames={fr="Grande’Anse",ht="Grandans"}},
 ["ND"] = {name="Nord",isonames={fr="Nord",ht="Nò"}},
 ["NE"] = {name="Nord-Est",altnames={fr="Nord-Est",ht="Nòdès"}},
 ["NI"] = {name="Nippes",altnames={fr="Nippes",ht="Nip"}},
 ["NO"] = {name="Nord-Ouest",altnames={fr="Nord-Ouest",ht="Nòdwès"},nocode=true},
 ["OU"] = {name="Ouest",altnames={fr="Ouest",ht="Lwès"}},
 ["SD"] = {name="Sud",altnames={fr="Sud",ht="Sid"}},
 ["SE"] = {name="Sud-Est",altnames={fr="Sud-Est",ht="Sidès"}}
lang = "sv",
--The numeric altnames are unofficial alternative numeric codes listed in brackets in the standard.
 ["AB"] = {name="Stockholm",isoname="Stockholms län",altnames={"01"}},
 ["AC"] = {name="Västerbotten",isoname="Västerbottens län",altnames={"24"}},
 ["BD"] = {name="Norrbotten",isoname="Norrbottens län",altnames={"25"}},
 ["C"] = {name="Uppsala",isoname="Uppsala län",altnames={"03"}},
 ["D"] = {name="Södermanland",isoname="Södermanlands län",altnames={"04"}},
 ["E"] = {name="Östergötland",isoname="Östergötlands län",altnames={"05"}},
 ["F"] = {name="Jönköping",isoname="Jönköpings län",altnames={"06"}},
 ["G"] = {name="Kronoberg",isoname="Kronobergs län",altnames={"07"}},
 ["H"] = {name="Kalmar",isoname="Kalmar län",altnames={"08"}},
 ["I"] = {name="Gotland",isoname="Gotlands län",altnames={"09"}},
 ["K"] = {name="Blekinge",isoname="Blekinge län",altnames={"10"}},
 ["M"] = {name="Skåne",isoname="Skåne län",altnames={"12"}},
 ["N"] = {name="Halland",isoname="Hallands län",altnames={"13"}},
 ["O"] = {name="Västra Götaland",isoname="Västra Götalands län",altnames={"14"}},
 ["S"] = {name="Värmland",isoname="Värmlands län",altnames={"17"}},
 ["T"] = {name="Örebro",isoname="Örebro län",altnames={"18"}},
 ["U"] = {name="Västmanland",isoname="Västmanlands län",altnames={"19"}},
 ["W"] = {name="Dalarna",isoname="Dalarnas län",altnames={"20"}},
 ["X"] = {name="Gävleborg",isoname="Gävleborgs län",altnames={"21"}},
 ["Y"] = {name="Västernorrland",isoname="Västernorrlands län",altnames={"22"}},
 ["Z"] = {name="Jämtland",isoname="Jämtlands län",altnames={"23"}}