local labels = {}
local function alias(a, b) for _, v in ipairs(b) do labels[v] = a end end -- allows aliases to be entered as a list
-- Spelling reforms and standards
labels['pre-2012'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#2012|pre-2012]]',
plain_categories = "Norwegian Nynorsk pre-2012 forms",
}
labels['pre-2012a'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#2012|pre-2012]]',
plain_categories = {"Norwegian Nynorsk pre-2012 forms", "Norwegian Nynorsk weak feminine nouns ending in -a"},
}
labels['pre-2012et'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#2012|pre-2012]]',
plain_categories = {"Norwegian Nynorsk pre-2012 forms", "Norwegian Nynorsk terms suffixed with -et"},
}
labels['pre-2012ut'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#2012|pre-2012]]',
plain_categories = {"Norwegian Nynorsk pre-2012 forms", "Norwegian Nynorsk terms suffixed with -ut"},
}
labels['pre-2012lig'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#2012|pre-2012]]',
plain_categories = {"Norwegian Nynorsk pre-2012 forms", "Norwegian Nynorsk terms suffixed with -lig"},
}
labels['pre-1959'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#1959|pre-1959]]',
plain_categories = "Norwegian Nynorsk pre-1959 forms",
}
labels['pre-1938'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#1938|pre-1938]]',
plain_categories = "Norwegian Nynorsk pre-1938 forms",
}
labels['pre-1917'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#1917|pre-1917]]',
plain_categories = {"Norwegian Nynorsk pre-1917 forms", "Landsmål"},
}
labels['pre-1901'] = {
display = '[[Wiktionary:Norwegian_Nynorsk_spelling_reforms#1901|Landsmål]]',
plain_categories = {"Norwegian Nynorsk pre-1901 forms", "Landsmål"},
}
alias("pre-1901", {"Landsmål", "Landsmaal", "landsmål", "landsmaal", "Aasen", "aasen"})
labels['Midlandsnormalen'] = {
display = 'Midlandsnormalen',
Wikipedia = "nn:Midlandsnormalen",
plain_categories = "Midlandsnormalen Norwegian",
}
alias("Midlandsnormalen", {"midlandnormalen"})
-- Dialects and regions
labels["Setesdal"] = {
Wikipedia = "Setesdal",
plain_categories = "Setesdalsk Norwegian",
}
alias("Setesdal", {"setesdal"})
labels["Voss"] = {
Wikipedia = "Voss",
plain_categories = "Vossamål Norwegian",
}
alias("Voss", {"voss"})
labels["Hardanger"] = {
Wikipedia = "Hardanger",
plain_categories = "Hardingmål Norwegian",
}
alias("Hardanger", {"hardanger"})
labels["Hordaland"] = {
Wikipedia = "Hordaland",
plain_categories = {"Vossamål Norwegian", "Hardingmål Norwegian"},
}
alias("Hordaland", {"hordaland"})
labels["Sunnmøre"] = {
Wikipedia = "Sunnmøre",
plain_categories = "Sunnmørsk Norwegian",
}
alias("Sunnmøre", {"sunnmøre", "snm"})
labels["Trøndelag"] = {
Wikipedia = "Trøndersk",
plain_categories = "Trøndersk Norwegian",
}
alias("Trøndelag", {"trøndelag", "trd", "trøndsk", "trøndersk"})
labels["Härjedalen"] = {
Wikipedia = "Norwegian dialects#Dialect branches",
}
alias("Härjedalen", {"Härjedal", "härjedal", "härjedalen", "Herjedal", "Herjedalen", "herjedal", "herjedalen", "Herjådal", "Herjådalen", "herjådal", "herjådalen"})
return labels