For use in {{bnt-desc}}
.
local export = {}
local codes = {
= "A101",
= "A13",
= "A14",
= "A141",
= "A15",
= "A15B",
= "A15C",
= "A15C", --maybe merge A15?
= "A151",
= "A21",
= "A22",
= "A221",
= "A23",
= "A231",
= "A24",
= "A27",
= "A31",
= "A32",
= "A33",
= "A33b",
= "A34",
= "A41",
= "A42",
= "A43a",
= "A43b",
= "A44",
= "A46",
= "A461",
= "A462",
= "A501",
= "A51",
= "A52",
= "A53",
= "A54",
= "A601",
= "A62A",
= "A62B",
= "A62C",
= "A621",
= "A622",
= "A623",
= "A63",
= "A65",
= "A71",
= "A72",
= "A73a",
= "A73b",--not enough data to merge A73
= "A74",
= "A75",
= "A801",
= "A802",
= "A81",
= "A82",
= "A83",
= "A831",
= "A832",
= "A84",
= "A842",
= "A85b", --add 85a?
= "A86b", --add 86a?
= "A86c",
= "A87",
= "A91",
= "A92",
= "A93",
= "B11",
= "B201",
= "B202",
= "B203",
= "B204",
= "B21",
= "B211",
= "B22a",
= "B22b",
= "B23",
= "B24",
= "B25",
= "B251",
= "B252",
= "B301",
= "B302", --need B303?
= "B304",
= "B305",
= "B31",
= "B32",
= "B401",
= "B402",
= "B403",
= "B41",
= "B42",
= "B43",
= "B44",
= "B501",
= "B51",
= "B52",
= "B53",
= "B602",
= "B603",
= "B61",
= "B62",
= "B63",
= "B70z",
= "B701",
= "B71",
= "B72",
= "B73a",
= "B73b",
= "B73c",
= "B73d",
= "B74",--merged with ebo
= "B75", --need East Teke B76?
= "B77a",
= "B77b",
= "B80",
= "B80",
= "B80",
= "B81",
= "B82", -- not to be confused with the bnt-sbo, bnt-bon, bnt-boy
= "B83",
= "B84",
= "B85",
= "B85d",
= "B86",
= "B87",
= "B861",
= "B862",
= "B863",
= "B864",--historically confused with another Ngongo in zone H
= "B865",
= "C101",
= "C102",
= "C104",
= "C11",
= "C12",
= "C13",
= "C14",
= "C15",
= "C16",
= "C16", --merge C16?
= "C161",
= "C162",
= "C21",
= "C22",
= "C24",
= "C25",
= "C26",
= "C27",
= "C30A",
= "C30B",
= "C302",
= "C31a",
= "C31a", --merge C31a?
= "C311",
= "C312",
= "C32",
= "C32", --merge C32?
= "C321",
= "C33",
= "C34",
= "C302",
= "C35a",
= "C35b",
= "C36",
= "C36e",
= "C36g",
= "C36H",
= "C37",
= "C371",
= "C401",
= "C403",
= "C41",
= "C411",
= "C412",
= "C413",
= "C414",
= "C42", --add C43?
= "C44",
= "C441",
= "C45",
= "C51",
= "C52",
= "C53",
= "C54",
= "C55",
= "C56",
= "C51",
= "C61",
= "C62/63",
= "C51",
= "C71",
= "C71",
= "C71",--were we mistaken to give this its own code?
= "C72",
= "C73",
= "C75",--C74 already merged into this as "Kela-Yela"
= "C76",
= "C81",
= "C82",
= "C83",
= "C84",
= "C85",
= "D11",
= "D12",
= "D13",
= "D14",
= "D201",
= "D21",
= "D211",
= "D22",
= "D23",
= "D24",
= "D25",
= "D251",
= "D251",
= "D251",--merge D251?
= "D26",
= "D27",
= "D28",
= "D301",
= "D302",
= "D303",--possibly the same as myc, but need data
= "D304",
= "D305",--gti D306 merged in
= "D307",
= "D308",
= "D31",
= "D311",--originally placed in D32
= "D312",
= "D32",
= "D33",
= "D331",
= "D332",
= "D333",
= "D334",
= "D335",
= "D336",
= "D43",
= "D54",
= "D55",
= "E46",
= "E51",
= "E52",
= "E53",
= "E531",
= "E54",
= "E541",
= "E55",
= "E56",
= "E52",
= "E621A",--real mess here, all of Chaga needs sorting out
= "E621B",
= "E622A",
= "E622C",
= "E623",
= "E64",
= "E65",
= "E64",
= "E64",
= "E701",
= "E71A",
= "E71B",
= "E72a",--some Mijikenda is missing here
= "E72c",
= "E72d",
= "E73",
= "E731",
= "E74",
= "E74b",--Maho 2009 uses E741, but this innovation has been rejected in the latest ed of TBL
= "F11",
= "F12",
= "F21",
= "F22",
= "F22C",
= "F23",
= "F24",
= "F25",
= "F21",
= "F31",
= "F31B",
= "F32",
= "F33",
= "F34",
= "F31",
= "G11",
= "G12",
= "G21",--Maho 2009 put this as E74a by mistake
= "G22",
= "G221",
= "G23",
= "G24",
= "G301",
= "G31",
= "G32",
= "G33",
= "G34",
= "G35",
= "G36",
= "G37",
= "G38",
= "G39",
= "G402",
= "G403",
= "G40B",--merge into sw?
= "G412",
= "G42",--Bajuni might be worth splitting off; Kisetla isn't
= "G44a",
= "G44b",
= "G44C",
= "G44D",
= "G51",
= "G52",
= "G61",
= "G62",
= "G63",
= "G64",
= "G65",
= "G651",
= "G66",
= "G67",
= "H10A",
= "H10B",
= "H11",
= "H112A",
= "H112B",
= "H12",
= "H13",
= "H131",
= "H16",
= "H16a",
= "H16c",
= "H16f",--H16 should be treated more consistently
= "H20",--not given a code, but seems to be distinct
= "H21",
= "H22",
= "H23",
= "H24",
= "H31",
= "H32",
= "H33",
= "H34",--add H35?
= "H41",
= "H42",
= "J41",--just using bare J codes, but we could change this
= "J42",
= "J501",--do not add J502
= "J51",
= "J52",
= "J53",
= "J531",
= "J56",
= "J61/62",
= "J63",
= "J631",
= "J64",
= "J65",
= "J66",--we merged a couple of these into Rwanda-Rundi, but that should be reviewed
= "J67",
= "J101",
= "J102",
= "J103",
= "J11",
= "J12",
= "J121",
= "J101",
= "J13",
= "J14",--suggested merger of J13/14
= "J15",
= "J16",
= "J16",--merge J16?
= "J17",
= "J20",--no code assigned
= "J21",
= "J22",
= "J23",
= "J24",
= "J25",
= "J251",
= "J252",--add Ruri J253?
= "J31",
= "J31D",--merge into myx?
= "J31E",
= "J32",--if we have all the Luhya dialects covered, why do we have the macrolanguage?
= "J32a",
= "J32b",
= "J32C",
= "J32D",
= "J32E",
= "J32F",
= "J33",
= "J34",
= "J341",
= "J342",
= "J35",
= "J401",
= "J402",
= "J403",
= "J403",--this shares a code with sxb, but it probably shouldn't
= "J404",
= "J405",
= "J406",
= "J407",
= "J41",
= "J411–413",--this isn't exactly pretty
= "J42",
= "J43",
= "J44",
= "J45",
= "K11",
= "K12a",
= "K12b",
= "K13",
= "K14",
= "K15",
= "K16",
= "K17",
= "K18",
= "K21",
= "K31",
= "K32",
= "K33",
= "K332",
= "K333",
= "K34",
= "K35",
= "K402",
= "K41",
= "K42",
= "L11",
= "L12a",
= "L12b",
= "L13",
= "L21",--add L22?
= "L221",
= "L23",
= "L231",
= "L24",
= "L31",
= "L32",
= "L33",
= "L34",
= "L35",
= "L41",
= "L51",
= "L52",
= "L53",
= "L60",
= "M11",
= "M12",
= "M13",
= "M14/15",--split this?
= "M201",
= "M21",
= "M22",
= "M23A",--nkv apparently already merged, but perhaps in error?
= "M23",--B and C
= "M24",
= "M25",--add Iwa M26 and Tambo M27?
= "M301",
= "M31",
= "M401",
= "M402",
= "M41",
= "M42",
= "M51/52",
= "M54",
= "M55",
= "M61",
= "M62",
= "M63",
= "M631",
= "M64",
= "M64",--apparently same code
= "N101",
= "N102",
= "N11",
= "N12",
= "N13",
= "N14",
= "N15",
= "N21",--N21d Tumbuka-Senga is allegedly an unrelated language
= "N31",--N201 merged here
= "N41",
= "N41",--merge N41?
= "N42",
= "N43",
= "N44",--N441 swk already merged here
= "N44",--originally N45; merge?
= "P11",
= "P12",
= "P13",
= "P14",
= "P15",
= "P21",
= "P22",
= "P23",--njd P24 merged in
= "P23",--add P25?
= "P31",--used as a macrolanguage code, but this is properly the code for P31A Central Makhuwa
= "P31B",
= "P31C",
= "P31C",
= "P31C",
= "P31C",
= "P31C",
= "P31C",
= "P31D",
= "P31F",--Makhuwa is a mess; should either be lumped or split, and splitting seems a lot easier, but requires new codes
= "P311",
= "P312",
= "P32",
= "P331",--should be merged into P32
= "P34",
= "P34",--merge P34?
= "P341",
= "P31C",
= "R101",
= "R101",--can't find any info on whether it's distinct
= "R11",--add R102 Kwisi?
= "R12",
= "R13",
= "R14",
= "R21",
= "R214",
= "R22",
= "R23",
= "R24",
= "R30",
= "R311",--merge into hz?
= "R41",
= "S10",--Plateau Shona dialects covered by sn
= "S10",--cannot find any data at all, and no specific code has been assigned
= "S15",
= "S16A",
= "S16B",--merge into kck? Ehret & Kinsman 1981 think so
= "S20",
= "S31",
= "S311",
= "S32",
= "S32E",
= "S32F",--merge S32?
= "S33",
= "S404",--add Bhaca S402
= "S406",
= "S407",
= "S40A",
= "S40B",
= "S41",
= "S42",
= "S43",
= "S44",
= "S51",
= "S53",
= "S54",
= "S61",
= "S62"
}
function iso2guthrie(iso)
return codes
end
function export.iso2guthrie(frame)
local args = frame:getParent().args
local isocode = args or error("Parameter 1 is required.")
return iso2guthrie(isocode)
end
export.codes = codes
return export