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

labels["American (–1980)"] = {
	Wikipedia = "History of Chinese Americans",
	plain_categories = {"American (–1980) Chinese"},
}
alias("American (–1980)", {"America 1", "United States 1", "USA 1", "US 1"})

labels["American (1980–)"] = {
	Wikipedia = "History of Chinese Americans",
	plain_categories = {"American (1980–) Chinese"},
}
alias("American (1980–)", {"America 2", "United States 2", "USA 2", "US 2"})

labels["Beijing"] = {
	Wikipedia = "Beijing dialect",
	plain_categories = {"Beijing Mandarin"},
}
alias("Beijing", {"Peking", "Pekingese", "Beijing Mandarin"})

labels["Cantonese"] = {
	Wikipedia = true,
	plain_categories = {"Cantonese Chinese"},
}

labels["dialectal Cantonese"] = {
	display = "dialectal [[w:Cantonese|Cantonese]]",
	plain_categories = {"Cantonese Chinese"},
}

labels["Central Plains Mandarin"] = {
	Wikipedia = true,
	plain_categories = {"Central Plains Mandarin"},
}
alias("Central Plains Mandarin", {"Zhongyuan Mandarin"})

labels["Coastal Min"] = {
	Wikipedia = true
}
alias("Coastal Min", {"coastal Min"})

labels["Datian Min"] = {
	Wikipedia = true,
	plain_categories = {"Datian Min Chinese"},
}

labels["Dungan"] = {
	Wikipedia = "Dungan language",
	plain_categories = {"Dungan Chinese"},
}

labels["Gan"] = {
	Wikipedia = "Gan Chinese",
	plain_categories = {"Gan Chinese"},
}

labels["dialectal Gan"] = {
	display = "dialectal [[w:Gan Chinese|Gan]]",
	plain_categories = {"Gan Chinese"},
}

labels["Guangxi Mandarin"] = {
	display = "Guangxi [[w:Southwestern Mandarin|Mandarin]]",
	plain_categories = {"Guangxi Mandarin"},
}

labels["dialectal Guangxi Mandarin"] = {
	display = "dialectal Guangxi [[w:Southwestern Mandarin|Mandarin]]",
	plain_categories = {"Guangxi Mandarin"},
}

labels["Guilin Mandarin"] = {
	display = "Guilin [[w:Southwestern Mandarin|Mandarin]]",
	plain_categories = {"Guilin Mandarin"},
}

labels["Hainanese"] = {
	Wikipedia = "Hainanese",
	plain_categories = {"Hainanese"},
}
alias("Hainanese", {"Hainan Min", "Hainan Min Chinese"})

labels["Hakka"] = {
	Wikipedia = "Hakka Chinese",
	plain_categories = {"Hakka Chinese"},
}

labels["dialectal Hakka"] = {
	display = "dialectal [[w:Hakka Chinese|Hakka]]",
	plain_categories = {"Hakka Chinese"},
}

labels["Hokkien"] = {
	Wikipedia = true,
	plain_categories = {"Hokkien Chinese"},
}

labels["Hong Kong Cantonese"] = {
	Wikipedia = "Tiếng Quảng Châu Hồng Kông",
	display = "Quảng Châu Hồng Kông",
	plain_categories = {"Tiếng Quảng Châu Hồng Kông"},
}
alias("Hong Kong Cantonese", {"HKC", "Quảng Châu Hồng Kông", "tiếng Quảng Châu Hồng Kông"})

labels["Hong Kong Hakka"] = {
	display = "Hong Kong [[w:Hakka language|Hakka]]",
	plain_categories = {"Hong Kong Hakka"},
}

labels["Huizhou"] = {
	display = "[[w:Huizhou Chinese|Huizhou]]",
	plain_categories = {"Huizhou Chinese"},
}

labels["Inland Min"] = {
	Wikipedia = true
}
alias("Inland Min", {"inland Min"})

labels["Jianghuai Mandarin"] = {
	Wikipedia = "Lower Yangtze Mandarin",
	plain_categories = {"Mandarin Chinese"},
}
alias("Jianghuai Mandarin", {"Jiang-Huai Mandarin", "Lower Yangtze Mandarin"})

labels["Jiaoliao Mandarin"] = {
	Wikipedia = true,
	plain_categories = {"Mandarin Chinese"},
}
alias("Jiaoliao Mandarin", {"Jiao-Liao Mandarin"})

labels["Jilu Mandarin"] = {
	Wikipedia = true,
	plain_categories = {"Mandarin Chinese"},
}
alias("Jilu Mandarin", {"Ji-Lu Mandarin"})

labels["Jin"] = {
	Wikipedia = "Jin Chinese",
	plain_categories = {"Jin Chinese"},
}

labels["dialectal Jin"] = {
	display = "dialectal [[w:Jin Chinese|Jin]]",
	plain_categories = {"Jin Chinese"},
}

labels["Korean Classical Chinese"] = {
	Wikipedia = "Chinese-language literature of Korea",
	plain_categories = {"Korean Classical Chinese"},
}

labels["Lanyin Mandarin"] = {
	Wikipedia = true,
	plain_categories = {"Lanyin Mandarin"},
}
alias("Lanyin Mandarin", {"Lan-Yin Mandarin"})

labels["Leizhou Min"] = {
	Wikipedia = true,
	plain_categories = {"Leizhou Min Chinese"},
}

labels["Liuzhou Mandarin"] = {
	display = "Liuzhou [[w:Southwestern Mandarin|Mandarin]]",
	plain_categories = {"Liuzhou Mandarin"},
}

labels["Mandarin"] = {
	Wikipedia = "Mandarin Chinese",
	plain_categories = {"Mandarin Chinese"},
}

labels["dialectal Mandarin"] = {
	display = "dialectal [[w:Mandarin Chinese|Mandarin]]",
	plain_categories = {"Mandarin Chinese"},
}

labels["Min"] = {
	Wikipedia = "Min Chinese",
	plain_categories = {"Min Chinese"},
}

labels["Min Bei"] = {
	Wikipedia = true,
	plain_categories = {"Min Bei Chinese"},
}

labels["Min Dong"] = {
	Wikipedia = true,
	plain_categories = {"Min Dong Chinese"},
}

labels["dialectal Min Dong"] = {
	display = "dialectal [[w:Min Dong|Min Dong]]",
	plain_categories = {"Min Dong Chinese"},
}

labels["Min Nan"] = {
	Wikipedia = true,
	plain_categories = {"Min Nan Chinese"},
}

labels["dialectal Min Nan"] = {
	display = "dialectal [[w:Min Nan|Min Nan]]",
	plain_categories = {"Min Nan Chinese"},
}

labels["Min Zhong"] = {
	Wikipedia = true,
	plain_categories = {"Min Zhong Chinese"},
}

labels["Nanning Pinghua"] = {
	display = "Nanning [[w:Pinghua|Pinghua]]",
	plain_categories = {"Nanning Pinghua"},
}

labels["Northeastern Mandarin"] = {
	Wikipedia = true,
	plain_categories = {"Northeastern Mandarin"},
}
alias("Northeastern Mandarin", {"northeastern Mandarin", "NE Mandarin"})

labels["North America"] = {
	display = "[[Canada]], [[American English|US]]",
	plain_categories = {"Canadian Chinese", "American Chinese"},
}
alias("North America", {"North American"})

labels["Northern Wu"] = {
	Wikipedia = true,
	plain_categories = {"Northern Wu"},
}
alias("Northern Wu", {"Taihu", "Taihu Wu"})

labels["Penang Hokkien"] = {
	Wikipedia = {"Penang Hokkien"},
	plain_categories = {"Penang Hokkien"},
}

labels["Philippine Hokkien"] = {
	Wikipedia = {"Philippine Hokkien"},
	plain_categories = {"Philippine Chinese"},
}
alias("Philippine Hokkien", {"PH Hokkien", "Ph Hokkien", "PH", "PHH"})

labels["Pinghua"] = {
	Wikipedia = true,
	plain_categories = {"Pinghua Chinese"},
}

labels["Puxian Min"] = {
	Wikipedia = "Pu-Xian Min",
	plain_categories = {"Puxian Min"},
}
alias("Puxian Min", {"Puxian", "Pu-Xian Min", "Pu-Xian", "Xinghua", "Hinghwa"})

labels["Quanzhou"] = {
	Wikipedia = "Quanzhou dialect",
	plain_categories = {"Quanzhou Hokkien"},
}
alias("Quanzhou", {"Quanzhou dialect", "Chinchew", "Chinchew dialect", "Choanchew", "Choanchew dialect"})

labels["Shanghainese Wu"] = {
	display = "Shanghainese Wu",
	Wikipedia = "Shanghainese",
	plain_categories = {"Shanghainese"},
}

labels["Shehua"] = {
	Wikipedia = "Shehua",
	plain_categories = {"Shehua Chinese"},
}

labels["Shuangfeng"] = {
	Wikipedia = "Shuangfeng dialect",
	plain_categories = {"Shuangfeng Xiang"},
}

labels["Sichuanese"] = {
	Wikipedia = "Sichuanese dialect",
	plain_categories = {"Sichuanese Mandarin"},
}
alias("Sichuanese", {"Sichuan"})

labels["Singaporean Hokkien"] = {
	Wikipedia = "Singaporean Hokkien",
	plain_categories = {"Singaporean Hokkien"},
}
alias("Singaporean Hokkien", {"Singapore Hokkien"})

labels["Siyi"] = {
	Wikipedia = "Siyi Yue",
}

labels["Southern Wu"] = {
	display = "Southern [[w:Wu Chinese|Wu]]",
	plain_categories = {"Southern Wu"},
}

labels["Southwestern Mandarin"] = {
	Wikipedia = true,
	plain_categories = {"Southwestern Mandarin"},
}
alias("Southwestern Mandarin", {"southwestern Mandarin", "Upper Yangtze Mandarin", "Southwest Mandarin"})

labels["Taishanese"] = {
	Wikipedia = true,
	plain_categories = {"Taishanese Chinese"},
}
alias("Taishanese", {"Toishanese", "Hoisanese"})

labels["Taiwanese Hakka"] = {
	Wikipedia = true,
	plain_categories = {"Taiwanese Hakka"},
}
alias("Taiwanese Hakka", {"Taiwan Hakka"})

labels["Taiwanese Hokkien"] = {
	Wikipedia = "Taiwanese Hokkien",
	plain_categories = {"Taiwanese Min Nan"},
}
alias("Taiwanese Hokkien", {"Taiwanese Min Nan", "Taiwan Hokkien", "Taiwan Min Nan"})

labels["Taiwanese Hokkien and Hakka"] = {
	display = "[[w:Taiwanese Hokkien|Taiwanese Hokkien]] and [[w:Taiwanese Hakka|Hakka]]",
	plain_categories = {"Taiwanese Min Nan", "Taiwanese Hakka"},
}
alias("Taiwanese Hokkien and Hakka", {"Taiwanese Min Nan and Hakka", "Taiwanese Hakka and Min Nan", "Taiwanese Hakka and Hokkien", "Taiwanese Min Nan & Hakka", "Taiwanese Hokkien & Hakka", "Taiwanese Hakka & Min Nan", "Taiwanese Hakka & Hokkien", "Taiwan Hokkien and Hakka", "Taiwan Hakka and Min Nan", "Taiwan Hakka and Hokkien", "Taiwan Min Nan & Hakka", "Taiwan Hokkien & Hakka", "Taiwan Hakka & Min Nan", "Taiwan Hakka & Hokkien"})

labels["Taiwanese Mandarin"] = {
	Wikipedia = true,
	plain_categories = {"Taiwanese Mandarin"},
}
alias("Taiwanese Mandarin", {"Taiwan Mandarin"})

labels["Teochew"] = {
	Wikipedia = "Teochew dialect",
	plain_categories = {"Teochew Chinese"},
}

labels["Tianjin"] = {
	Wikipedia = "Tianjin dialect",
	plain_categories = {"Tianjin Mandarin"},
}
alias("Tianjin", {"Tianjin dialect", "Tianjin Mandarin", "Tianjinese"})

labels["Waxiang"] = {
	Wikipedia = "Waxiang Chinese",
	plain_categories = {"Waxiang Chinese"},
}

labels["Wenzhou Wu"] = {
	Wikipedia = "Wenzhounese",
	plain_categories = {"Wenzhounese Wu"},
}
alias("Wenzhou Wu", {"Wenzhounese", "Wenzhou", "Oujiang"})

labels["Suzhou Wu"] = {
	Wikipedia = "Suzhounese",
	plain_categories = {"Suzhounese Wu"},
}
alias("Suzhou Wu", {"Suzhounese", "Suzhou"})

labels["Standard Written Chinese"] = {
	Wikipedia = "Written vernacular Chinese"
}
alias("Standard Written Chinese", {"SWC"})

labels["Wu"] = {
	Wikipedia = "Wu Chinese",
	plain_categories = {"Wu Chinese"},
}

labels["Wuhan"] = {
	Wikipedia = "Wuhan dialect",
	plain_categories = {"Wuhan Mandarin"},
}
alias("Wuhan", {"Hankou", "Hankow", "Wuhan dialect"})

labels["dialectal Wu"] = {
	display = "dialectal [[w:Wu Chinese|Wu]]",
	plain_categories = {"Wu Chinese"},
}

labels["Xiamen"] = {
	Wikipedia = "Amoy dialect",
	plain_categories = {"Xiamen Hokkien"},
}
alias("Xiamen", {"Xiamen dialect", "Amoy", "Amoy dialect"})

labels["Xiang"] = {
	Wikipedia = "Xiang Chinese",
	plain_categories = {"Xiang Chinese"},
}

labels["dialectal Xiang"] = {
	display = "dialectal [[w:Xiang Chinese|Xiang]]",
	plain_categories = {"Xiang Chinese"},
}

labels["Xinjiang"] = {
	display = "[[w:Xinjiang Mandarin|Xinjiang]]",
	plain_categories = {"Xinjiang Mandarin"},
}

labels["Zhongshan Min"] = {
	Wikipedia = true,
	plain_categories = {"Zhongshan Min Chinese"},
}

labels["Zhangzhou"] = {
	Wikipedia = "Zhangzhou dialect",
	plain_categories = {"Zhangzhou Hokkien"},
}
alias("Zhangzhou", {"Zhangzhou dialect", "Changchew", "Changchew dialect"})

return labels