Module:zh-usex/data

local data = {}

-- List of varieties. Each entry is a list of the following: -- {"OLD_CODE", "LANG_CODE", "NORM_CODE", "DESCRIPTION", "TRANSLITERATION"} where "OLD_CODE" is the old-style bespoke -- code used for this variety (which will be going away) and "LANG_CODE" is the Wiktionary language code (possibly an -- etym-only code) used for this variety. "NORM_CODE" is the normalized language code used for handling varieties that -- should be treated the same for transliteration purposes. For example, all Hokkien varieties use Pe̍h-ōe-jī and should -- behave the same for pron_correction and other purposes. Similarly, many Mandarin varieties use standard Pinyin, etc. data.variety_list = { {"MSC", "cmn", false, "MSC", "Pinyin"}, {"M-BJ", "cmn-bei", "cmn", "Beijing Mandarin", "Pinyin"}, {"M-TW", "cmn-TW", "cmn", "Taiwanese Mandarin", "Pinyin"}, {"M-MY", "cmn-MY", "cmn", "Malaysian Mandarin", "Pinyin"}, {"M-SG", "cmn-SG", "cmn", "Singaporean Mandarin", "Pinyin"}, {"M-PH", "cmn-PH", "cmn", "Philippine Mandarin", "Pinyin"}, {"M-TJ", "cmn-tia", "cmn", "Tianjin Mandarin", "Pinyin"}, {"M-NE", "cmn-noe", "cmn", "Northeastern Mandarin", "Pinyin"}, {"M-CP", "cmn-cep", "cmn", "Central Plains Mandarin", "Pinyin"}, {"M-GZ", "cmn-gua", "cmn-gua", "Guanzhong Mandarin", "Guanzhong Pinyin"}, --Guanzhong {"M-LY", "cmn-lan", "cmn", "Lanyin Mandarin", "Pinyin"}, {"M-S", "zhx-sic", false, "Sichuanese", "Sichuanese Pinyin"}, {"M-NJ", "cmn-nan", false, "Nanjing Mandarin", "Nankinese Pinyin"}, {"M-YZ", "cmn-yan", false, "Yangzhou Mandarin", "IPA"}, --IPA as a placeholder {"M-W", "cmn-wuh", false, "Wuhanese", "IPA"}, {"M-GL", "cmn-gui", false, "Guilin Mandarin", "IPA"}, --IPA as a placeholder {"M-XN", "cmn-xin", false, "Xining Mandarin", "IPA"}, --IPA as a placeholder {"M-UIB", "cmn-bec", "cmn", "dialectal Mandarin", "Pinyin"}, -- UIB stands for "unidentified Beijingesque"; this is only used for dialects with similar phonology to one of Beijing dialect or MSC {"M-DNG", "dng", false, "Dungan", "Cyrillic"},

{"CL", "lzh", "cmn", "Classical Chinese", "Pinyin"}, {"CL-TW", "lzh-cmn-TW", "cmn", "Classical Chinese", "Pinyin (Taiwanese Mandarin)"}, {"CL-C", "lzh-yue", "yue", "Classical Chinese", "Jyutping"}, {"CL-C-T", "lzh-tai", "zhx-tai", "Classical Chinese", "Wiktionary"}, {"CL-VN", "lzh-VI", "vi", "Vietnamese Literary Sinitic", "Sino-Vietnamese"}, {"CL-KR", "lzh-KO", "ko", "Korean Literary Sinitic", "Sino-Korean"}, {"CL-PC", "lzh-pre", "cmn", "Pre-Classical Chinese", "Pinyin"}, {"CL-L", "lzh-lit", "cmn", "Literary Chinese", "Pinyin"},

{"CI", "lzh-cii", "cmn", "Ci", "Pinyin"},

{"WVC", "cmn-wvc", "cmn", "Written Vernacular Chinese", "Pinyin"}, {"WVC-C", "yue-wvc", "yue", "Written Vernacular Chinese", "Jyutping"}, {"WVC-C-T", "zhx-tai-wvc", "zhx-tai", "Written Vernacular Chinese", "Wiktionary"},

{"C", "yue", false, "Cantonese", "Jyutping"}, {"C-GZ", "yue-gua", "yue", "Guangzhou Cantonese", "Jyutping"}, {"C-LIT", "yue-lit", "yue", "Literary Cantonese", "Jyutping"}, {"C-HK", "yue-HK", "yue", "Hong Kong Cantonese", "Jyutping"}, {"C-T", "zhx-tai", false, "Taishanese", "Wiktionary"}, {"C-DZ", "zhx-dan", false, "Danzhou dialect", "IPA"}, --IPA as a placeholder {"C-DG", "yue", "yue-dgx", "Dongguan Cantonese", "Jyutping++"}, {"C-YJ", "yue", "yue-yjx", "Yangjiang Yue", "Jyutping++"}, {"C-YL", "yue", "yue-ylx", "Yulin Yue", "Jyutping++"},

{"SP-N", "csp", "csp", "Nanning Pinghua", "Jyutping++"},

{"J", "cjy", false, "Jin", "Wiktionary"},

{"MB", "mnp", false, "Northern Min", "Kienning Colloquial Romanized"},

{"MD", "cdo", false, "Eastern Min", "Bàng-uâ-cê / IPA"},

{"MN", "nan-hbl", false, "Hokkien", "Pe̍h-ōe-jī"}, {"TW", "nan-hbl-TW", "nan-hbl", "Taiwanese Hokkien", "Pe̍h-ōe-jī"}, {"MN-PN", "nan-pen", "nan-hbl", "Penang Hokkien", "Pe̍h-ōe-jī"}, {"MN-PH", "nan-hbl-PH", "nan-hbl", "Philippine Hokkien", "Pe̍h-ōe-jī"}, {"MN-T", "nan-tws", false, "Teochew", "Peng\'im"}, {"MN-L", "nan-luh", false, "Leizhou Min", "Leizhou Pinyin"}, {"MN-HLF", "nan-hlh", false, "Haklau Min", "IPA"}, --IPA as a placeholder {"MN-H", "nan-hnm", false, "Hainanese", "Guangdong Romanization"},

{"W", "wuu", false, "Wu", "Wugniu"}, {"SH", "wuu-sha", "wuu", "Shanghainese", "Wugniu"}, {"W-SZ", "wuu-suz", "wuu", "Suzhounese", "Wugniu"}, {"W-HZ", "wuu-han", "wuu", "Hangzhounese", "Wugniu"}, {"W-CM", "wuu-chm", "wuu", "Shadi Wu", "Wugniu"}, -- including Chongming, Haimen, Changyinsha etc {"W-NB", "wuu-nin", "wuu", "Ningbonese", "Wugniu"}, {"W-N", "wuu-nor", "wuu", "Northern Wu", "Wugniu"}, -- general northern Wu, incl. transitionary varieties {"W-WZ", "wuu-wen", "wuu", "Wenzhounese", "Wugniu"},

{"G", "gan", false, "Gan", "Wiktionary"},

{"X", "hsn", false, "Xiang", "Wiktionary"},

{"H", "hak-six", "hak", "Sixian Hakka", "Pha̍k-fa-sṳ"}, {"H-HL", "hak-hai", "hak-TW", "Hailu Hakka", "Taiwanese Hakka Romanization System"}, {"H-DB", "hak-dab", "hak-TW", "Dabu Hakka", "Taiwanese Hakka Romanization System"}, {"H-MX", "hak-mei", false, "Meixian Hakka", "Hakka Transliteration Scheme"}, {"H-MY-HY", "hak-hui-MY", false, "Malaysian Huiyang Hakka", "IPA"}, --IPA as a placeholder {"H-EM", "hak-eam", false, "Early Modern Hakka", "IPA"}, --Early Modern Hakka, IPA as a placeholder {"H-ZA", "hak-zha", "hak-TW", "Zhao'an Hakka", "Taiwanese Hakka Romanization System"},

{"WX", "wxa", false, "Waxiang", "IPA"}, }

data.varieties_by_code = {} data.varieties_by_old_code = {} for _, variety_spec in ipairs(data.variety_list) do	local old_code, code, norm_code, desc, tr_desc = unpack(variety_spec) data.varieties_by_code[code] = variety_spec data.varieties_by_old_code[old_code] = variety_spec end

data.punctuation = { ["，"] = ",",	[". "] = ".",	["、"] = ",",	["？"] = "?",	["！"] = "!",	["《"] = "“",	["》"] = "”",	["〈"] = "‘",	["〉"] = "’",	["『"] = "‘",	["』"] = "’",	["「"] = "“",	["」"] = "”",	["“"] = "“",	["”"] = "”",	["（"] = "(",	["）"] = ")",	["；"] = ";",	["："] = ":",	["|"] = "|",	["—"] = "-",	["～"] = "~",	["——"] = "—",	["·"] = " ",	["…"] = "...",	["．"] = ".",

["　"] = ",",	["⋯"] = "...", ["⋯⋯"] = "...",	[" "] = " ", [" "] = " ", }

local CE = ' CE ' local BCE = ' BCE ' local circa = "c."

local function format_mao(year, chinese_title, english_title, volume, number) -- volume and number are used to generate links to the Marxists Internet Archive return { "cmn", "'''" .. year .. "''', 毛澤東 (Mao Zedong), 《" .. chinese_title .. "》 (" .. english_title .. "), 《毛澤東選集》 . English translation based on [https://www.marxists.org/reference/archive/mao/selected-works/volume-" .. volume .. "/mswv" .. volume .. "_" .. number .. ".htm the Foreign Languages Press edition]" } end

data.ref_list = { ['Amituojing']  =  { "lzh",  "The Amitabha Sutra, translated by Kumārajīva circa 5th century " .. CE }, ['Analects']    =  { "lzh",  "The Analects of Confucius, " .. circa .. " 475 – 221 " .. BCE .. ", translated based on James Legge's version" }, ['Analects-W']  =  { "lzh",  "The Analects of Confucius, " .. circa .. " 475 – 221 " .. BCE .. ", Wiktionary translation" }, ['Baihutong']   =  { "lzh-lit",  "Ban Gu, The Comprehensive Discussions in the White Tiger Hall, 79 " .. CE }, ['Baihutong-T']   =  { "lzh-lit",  "Ban Gu, The Comprehensive Discussions in the White Tiger Hall, 79 " .. CE .. ", translated based on Tjan Tjoe Som's version" }, ['Baopuzi']   =  { "lzh-lit",  "Ge Hong, Baopuzi, 4th century " .. CE }, ['Beiji Qianjin Yaofang'] =  { "lzh-lit",  "Sun Simiao, Essential Formulas Worth a Thousand Weights in Gold to Prepare for Emergencies, 652 " .. CE }, ['Beiqishu']    =  { "lzh-lit",  "The Book of Northern Qi, by Li Baiyao, 636 " .. CE }, ['Beishi']      =  { "lzh",  circa .. " 659 " .. CE .. ", Li Yanshou, History of the Northern Dynasties" }, ['Bencao Gangmu']= { "lzh-lit",  "The Compendium of Materia Medica [Bencao Gangmu], by Li Shizhen, 1578 " .. CE }, ['Changahanjing'] = { "lzh", "The Dirgha Agama, translated by Buddhayaśas and Zhu Fonian  circa 5th century " .. CE }, ['Changhenge']  =  { "lzh-lit",  "806 " .. CE .. ", Bai Juyi, Song of Everlasting Regret" }, ['Chuci']       =  { "lzh",  "The Verses of Chu, 4th century " .. BCE .." – 2nd century " .. CE }, ['Chuci-H']     =  { "lzh",  "The Verses of Chu, 4th century " .. BCE .." – 2nd century " .. CE .. ", translated based on David Hawkes' version" }, ['Chunqiu Fanlu']= { "lzh",  "The Luxuriant Dew of the Spring and Autumn Annals" }, ['Daodejing']   =  { "lzh",  "Tao Te Ching, 4th century " .. BCE }, ['Daodejing-L'] =  { "lzh",  "Tao Te Ching, 4th century " .. BCE .. ", translated based on James Legge's version" }, ['Datang Xiyuji']= { "lzh-lit",  "Xuanzang, Great Tang Records on the Western Regions, 646 " .. CE }, ['Datang Xiyuji-B']= { "lzh-lit",  "Xuanzang, Great Tang Records on the Western Regions, 646 " .. CE .. ", translated based on Samuel Beal's version" }, ['Datang Xiyuji-L']= { "lzh-lit",  "Xuanzang, Great Tang Records on the Western Regions, 646 " .. CE .. ", translated based on Li Rongxi's version" }, ['Dizangjing'] =   { "lzh",  "The Kṣitigarbhasūtra, translated by Śikṣānanda circa 7th century " .. CE }, ['Dongguan Han Ji']= { "lzh",  "Dongguan Han Ji, 1st century " .. CE .."– 2nd century " .. CE }, ['Dou E Yuan']= { "cmn-wvc",  "Yuan Dynasty, Guan Hanqing, The Injustice to Dou E" }, ['Erya']        =  { "lzh",  "Erya, 5th – 2nd century " .. BCE }, ['Ernv Yingxiongzhuan'] = { "cmn-wvc", "Wenkang, Ernü Yingxiongzhuan, 1878 " .. CE }, ['Fahuajing'] =    { "lzh",  "The Lotus Sūtra, translated by Kumārajīva circa 5th century " .. CE }, ['Fangyan']     =  { "lzh",  "Yang Xiong, Fangyan, " .. circa .. " 1st century " .. BCE }, ['Fangyu Shenglan']     =  { "lzh-lit",  "Fangyu Shenglan, " .. circa .. " 13th century " .. CE }, ['Fayan']       =  { "lzh",  "Yang Xiong, Fa Yan (Exemplary Sayings), 9 " .. CE }, ['Fayan-B']     =  { "lzh",  "Yang Xiong, Fa Yan (Exemplary Sayings), 9 " .. CE .. ", translated based on Jeffrey S. Bullock's version" }, ['Fengsu Tongyi']     =  { "lzh",  "Ying Shao, Fengsu Tongyi (Comprehensive Meaning of Customs and Mores), 195 " .. CE }, ['Gaosengzhuan']= { "lzh",  "Shi Huijiao, Memoirs of Eminent Monks, circa 530 " .. CE }, ['Gongyangzhuan']= { "lzh",  "Commentary of Gongyang, " .. circa .. " 206 " .. BCE .. "– 9 " .. CE }, ['Guanyinzi']   =  { "lzh",  "Guanyinzi, time unknown" }, ['Guanzi']      =  { "lzh",  "Guanzi, 5th century " .. BCE .. " to 220 " .. CE }, ['Gujin Xiaoshuo']= { "cmn-wvc", "Feng Menglong, Stories Old and New, 1620 " .. CE }, ['Guliangzhuan'] = { "lzh",  "Commentary of Guliang, circa 206 " .. BCE .. "– 9 " .. CE }, ['Guoyu']       =  { "lzh",  "Guoyu, circa 4th century " .. BCE }, ['Hanfeizi']    =  { "lzh",  "Han Feizi, circa 2nd century " .. BCE }, ['Hanfeizi-L']  =  { "lzh",  "Han Feizi, circa 2nd century " .. BCE .. ", translated based on W. K. Liao's version" }, ['Hanshi Waizhuan']   =  { "lzh",  "Han shi waizhuan, 1nd century " .. BCE }, ['Hanshi Waizhuan-H'] =  { "lzh",  "Han shi waizhuan, 1nd century " .. BCE .. ", translated based on James R. Hightower's version" }, ['Hanshu']      =  { "lzh",  "The Book of Han, circa 1st century " .. CE }, ['Houhanshu']   =  { "lzh-lit",  "The Book of the Later Han, circa 5th century " .. CE }, ['Hongloumeng'] =  { "cmn-wvc", "Cao Xueqin, Dream of the Red Chamber, mid-18th century " .. CE }, ['Huainanzi']   =  { "lzh",  "Huainanzi, 2nd century " .. BCE }, ['Huangdi Neijing']={ "lzh", "Huangdi Neijing, 4th century " .. BCE .. " to 3rd century " .. CE }, ['Huayanjing'] =   { "lzh",  "The Avataṃsaka Sūtra, translated by Śikṣānanda circa 7th century " .. CE }, ['Jingangjing'] =  { "lzh",  "The Diamond Sutra, translated by Kumārajīva circa 5th century " .. CE }, ['Jinpingmei']  =  { "cmn-wvc",  "The Plum in the Golden Vase, circa 1610 " .. CE }, ['Jinpingmei-R']  =  { "cmn-wvc",  "The Plum in the Golden Vase, circa 1610 " .. CE .. ", translated based on David Tod Roy's version" }, ['Jinshi']      =  { "lzh-lit",  "1344 " .. CE .. ", Toqto'a (lead editor), History of Jin" }, ['Jinshu']      =  { "lzh-lit",  "648 " .. CE .. ", Fang Xuanling (lead editor), Book of Jin" }, ['Jiutangshu']  =  { "lzh-lit",  "The Old Book of Tang, 945 " .. CE }, ['Kongzi Jiayu'] = { "lzh",  "The School Sayings of Confucius, " .. circa .. " 206 " .. BCE .. "– 220 " .. CE }, ['Lantingjixu'] =  { "lzh-lit",  "353 " .. CE .. ", Wang Xizhi, Preface to the Poems Composed at the Orchid Pavilion" }, ['Laocan Youji'] =  { "cmn-wvc",  "1907 " .. CE .. ", Liu E, The Travels of Lao Can" }, ['Lengyanjing'] =  { "lzh",  "The Śūraṅgama Sūtra, translated by Pramiti circa 7th century " .. CE }, ['Liaozhai'] =  { "lzh-lit",  "1740 " .. CE .. ", Pu Songling, Strange Stories from a Chinese Studio" }, ['Lienvzhuan']  =  { "lzh",  "The Biographies of Exemplary Women, 2nd century " .. BCE }, ['Liezi']       =  { "lzh",  "Liezi, 1st – 5th century " .. CE }, ['Liezi-C']     =  { "lzh",  "Liezi, 1st – 5th century " .. CE .. ", translated based on Thomas Cleary's version" }, ['Liezi-G']     =  { "lzh",  "Liezi, 1st – 5th century " .. CE .. ", translated based on A. C. Graham's version" }, ['Liji']        =  { "lzh",  "The Book of Rites, " .. circa .. " 4th – 2nd century " .. BCE }, ['Liji-L']      =  { "lzh",  "The Book of Rites, " .. circa .. " 4th – 2nd century " .. BCE .. ", translated based on James Legge's version" }, ['Lingqijing']  =  { "lzh",  "The Divine Chess Classic" }, ['Lingwai Daida']  =  { "lzh",  "Zhou Qufei, Representative Answers from the Region beyond the Mountains, 12th century " .. CE }, ['Liutao']      =  { "lzh",  "Six Secret Teachings, " .. circa .. " 475 – 221 " .. BCE }, ['Liutao-S']    =  { "lzh",  "Six Secret Teachings, " .. circa .. " 475 – 221 " .. BCE .. ", translated based on Ralph D. Sawyer's version" }, ['Lunyu']       =  { "lzh",  "The Analects of Confucius, " .. circa .. " 475 – 221 " .. BCE }, ['Lvshi Chunqiu']= { "lzh",  "Lü Buwei, Master Lü's Spring and Autumn Annals, 239 " .. BCE }, ['Lunheng']     =  { "lzh",  "Wang Chong, Lun Heng (Discussive Weighing), 80 " .. CE }, ['Lunheng-F']     =  { "lzh",  "Wang Chong, Lun Heng (Discussive Weighing), 80 " .. CE .. ", translated based on Alfred Forke's version" }, ['Mencius']     =  { "lzh",  "Mencius, " .. circa .. " 4th century " .. BCE }, ['Mencius-L']   =  { "lzh",  "Mencius, " .. circa .. " 4th century " .. BCE .. ", translated based on James Legge's version" }, ['Mengxi Bitan']   =  { "lzh-lit", "1088 " .. CE .. ", Shen Kuo, Dream Pool Essays" }, ['Mengzi']      =  { "lzh",  "Mencius, " .. circa .. " 4th century " .. BCE }, ['Mengzi-L']    =  { "lzh",  "Mencius, " .. circa .. " 4th century " .. BCE .. ", translated based on James Legge's version" }, ['Mingshi']        =  { "lzh-lit",  "17th-18th century, History of Ming" }, ['Mozi']        =  { "lzh",  "Mozi, " .. circa .. " 4th century " .. BCE }, ['Mozi-M']      =  { "lzh",  "Mozi, " .. circa .. " 4th century " .. BCE .. ", translated based on Y. P. Mei's version" }, ['Mutianzizhuan']= { "lzh",  "The Tale of King Mu, Son of Heaven, " .. circa .. " 370 – 330 " .. BCE }, ['Mutianzizhuan-E']= { "lzh",  "The Tale of King Mu, Son of Heaven, " .. circa .. " 370 – 330 " .. BCE .. ", translated based on E. J. Eitel's version" }, ['Mutianzizhuan-Z']= { "lzh",  "The Tale of King Mu, Son of Heaven, " .. circa .. " 370 – 330 " .. BCE .. ", translated based on Zheng Dekun's version" }, ['Nanqishu']    =  { "lzh-lit",  "The Book of Southern Qi, by Xiao Zixian, 6th century " .. CE }, ['Nanshi']      =  { "lzh-lit",  "659 " .. CE .. ", Li Dashi and Li Yanshou, History of the Southern Dynasties" }, ['Paian Jingqi 1'] = { "cmn-wvc", "1628 " .. CE .. ", Ling Mengchu, Slapping the Table in Amazement I" }, ['Paian Jingqi 2'] = { "cmn-wvc", "1632 " .. CE .. ", Ling Mengchu, Slapping the Table in Amazement II" }, ['Peizhu']      =  { "lzh-lit",  "Pei Songzhi, Annotations to Records of the Three Kingdoms, circa 5th century " .. CE }, ['Qianfu Lun']   =  { "lzh",  "Wang Fu, Comments of a Recluse, " .. circa .. " 2nd century " .. CE }, ['Qianfu Lun-P'] =  { "lzh",  "Wang Fu, Comments of a Recluse, " .. circa .. " 2nd century " .. CE .. ", translated based on Margaret Pearson's version" }, ['Qianjin Yaofang'] =  { "lzh-lit",  "Sun Simiao, Essential Formulas Worth a Thousand Weights in Gold to Prepare for Emergencies, 652 " .. CE }, ['Qianziwen'] = { "lzh-lit",  "Zhou Xingsi, Thousand Character Classic, circa 6th century " .. CE }, ['Qimin Yaoshu'] = { "lzh-lit",  "544 " .. CE .. ", Jia Sixie, Qimin Yaoshu" }, ['Qingshigao']  =  { "lzh-lit",  "1929, Zhao Erxun (lead editor), Draft History of Qing" }, ['Rulin Waishi'] = { "cmn-wvc",  "Wu Jingzi, The Scholars, 1750 " .. CE }, ['Rulin Waishi-Y'] = { "cmn-wvc",  "Wu Jingzi, The Scholars, 1750 " .. CE .. ", translated based on Yang Xianyi and Gladys Yang's version" }, ['Sanlve']        =  { "lzh",  "Three Strategies of Huang Shigong], 3th century " .. BCE .." – 1nd century " .. CE }, ['Sanlve-S']      =  { "lzh",  "Three Strategies of Huang Shigong], 3th century " .. BCE .." – 1nd century " .. CE .. ", translated based on Ralph D. Sawyer's version" }, ['Sanguozhi']   =  { "lzh-lit",  "Chen Shou, Records of the Three Kingdoms, circa 3rd century " .. CE }, ['Sanguo Yanyi'] = { "cmn-wvc",  "Romance of the Three Kingdoms, circa 14th century " .. CE }, ['Sanxia Wuyi'] =  { "cmn-wvc",  "The Three Heroes and Five Gallants, 1883 " .. CE }, ['Sanzijing']   =  { "lzh-lit",  "Three Character Classic, circa 13th century " .. CE }, ['Shangjunshu'] =  { "lzh",  "The Book of Lord Shang, circa 3rd century " .. BCE }, ['Shangjunshu-D'] =  { "lzh",  "The Book of Lord Shang, circa 3rd century " .. BCE .. ", translated based on J.J.L. Duyvendak's version" }, ['Shangshu']    =  { "lzh",  "The Book of Documents, circa 4th – 3rd century " .. BCE }, ['Shangshu-K']  =  { "lzh",  "The Book of Documents, circa 4th – 3rd century " .. BCE .. ", translated based on Bernhard Karlgren's version" }, ['Shangshu-L']  =  { "lzh",  "The Book of Documents, circa 4th – 3rd century " .. BCE .. ", translated based on James Legge's version" }, ['Shanhaijing'] =  { "lzh",  "The Classic of Mountains and Seas" }, ['Shanhaijing-B'] =  { "lzh",  "The Classic of Mountains and Seas, translation from The Classic of Mountains and Seas (1999), by Anne Birrell" }, ['Shanhaijing-S'] =  { "lzh",  "The Classic of Mountains and Seas, translation from A Chinese Bestiary : Strange Creatures from the Guideways Through Mountains and Seas (2002), by Richard E. Strassberg" }, ['Shenjian'] =  { "lzh", "Xun Yue, Shenjian, late 2nd - early 3rd century " .. CE }, ['Shenjian-C'] =  { "lzh", "Xun Yue, Shenjian, late 2nd - early 3rd century " .. CE .. ", translated based on Chen Qiyun's version" }, ['Shennong Ben Cao Jing'] =  { "lzh",  "The Divine Farmer's Materia Medica], 206 " .. BCE .." – 220 " .. CE }, ['Shennong Ben Cao Jing-Y'] =  { "lzh",  "The Divine Farmer's Materia Medica], 206 " .. BCE .." – 220 " .. CE .. ", translated based on Yang Shou-zhong's version" }, ['Shiji']       =  { "lzh",  "The Records of the Grand Historian, by Sima Qian, " .. circa .. " 91 " .. BCE }, ['Shiji-A']     =  { "lzh",  "The Records of the Grand Historian, by Sima Qian, " .. circa .. " 91 " .. BCE .. ", translated based on Herbert J. Allen's version" }, ['Shiji-W']     =  { "lzh",  "The Records of the Grand Historian, by Sima Qian, " .. circa .. " 91 " .. BCE .. ", translated based on Burton Watson's version" }, ['Shijing']     =  { "lzh-pre",  "The Classic of Poetry, " .. circa .. " 11th – 7th centuries " .. BCE .. ", translated based on James Legge's version" }, ['Shijing-K']     =  { "lzh-pre",  "The Classic of Poetry, " .. circa .. " 11th – 7th centuries " .. BCE .. ", translated based on Bernhard Karlgren's version" }, ['Shijing-Xu']  =  { "lzh",  "Preface to Mao's Odes (Commentary on the Classic of Poetry), mid 2nd century " .. BCE }, ['Shishuo Xinyu']= { "lzh-lit",  "Liu Yiqing (editor), A New Account of the Tales of the World, 5th century " .. CE }, ['Shitong']    =  { "lzh-lit",  "Liu Zhiji, Shitong, circa 708 – 710 " .. CE }, ['Shuihuzhuan'] =  { "cmn-wvc", "Shi Nai'an, Water Margin, circa 14th century " .. CE }, ['Shuijingzhu'] =  { "lzh-lit", "Li Daoyuan, Commentary on the Water Classic, 386-534 " .. CE }, ['Shujing']     =  { "lzh",  "The Book of Documents, circa 7th – 4th centuries " .. BCE }, ['Shujing-L']   =  { "lzh",  "The Book of Documents, circa 7th – 4th centuries " .. BCE .. ", translated based on James Legge's version" }, ['Shuowen']     =  { "lzh",  "Shuowen Jiezi, circa 2nd century " .. CE }, ['Shuoyuan']    =  { "lzh",  "Shuoyuan, circa 1st century " .. BCE }, ['Simafa']     =  { "lzh",  "The Methods of the Sima, circa 4th century " .. BCE }, ['Simafa-S']   =  { "lzh",  "The Methods of the Sima, circa 4th century " .. BCE .. ", translated based on Ralph D. Sawyer's version" }, ['Sishierzhangjing'] = { "lzh", "The Sutra of Forty-two Chapters, translated by Kāśyapa Mātaṇga and Dharmaratna circa 1st century " .. CE }, ['Songshi']     =  { "lzh-lit",  "1345 " .. CE .. ", Toqto'a (lead editor), History of Song" }, ['Songshu']     =  { "lzh-lit",  "Shen Yue, Book of Song, 492-493 " .. CE}, ['Soushenji']   =  { "lzh",  "In Search of the Sacred, circa 3rd century " .. CE }, ['Suishu']      =  { "lzh-lit",  "The Book of Sui, 636 " .. CE }, ['Sunzi']       =  { "lzh",  "The Art of War, circa 5th century " .. BCE }, ['Sunzi-G']     =  { "lzh",  "The Art of War, circa 5th century " .. BCE .. ", translated based on Lionel Giles's version" }, ['Sunzi-S']     =  { "lzh",  "The Art of War, circa 5th century " .. BCE .. ", translated based on Ralph D. Sawyer's version" }, ['Taiping Guangji']={ "lzh-lit", "Taiping Guangji (Extensive Records of the Taiping Era), 978 " .. CE }, ['Taiping Yulan']= { "lzh-lit",	 "Taiping Yulan (Readings of the Taiping Era), 977 – 983 " .. CE }, ['Taixuanjing'] =  { "lzh",  "Yang Xiong, The Canon of Supreme Mystery, 2 " .. BCE }, ['Tingxun Geyan']= { "lzh", "Qing Emperor Kangxi, Guidelines for Families" }, ['Tongdian']    =  { "lzh-lit",	 "Du You, Tongdian, 766 – 801 " .. CE }, ['UM']          =  { "cmn", "UM-Corpus: A Large English-Chinese Parallel Corpus by NLP2CT" }, ['Weiliaozi']      =  { "lzh",  "Wei Liaozi, " .. circa .. " 4th – 3rd centuries " .. BCE }, ['Weiliaozi-S']    =  { "lzh",  "Wei Liaozi, " .. circa .. " 4th – 3rd centuries " .. BCE .. ", translated based on Ralph D. Sawyer's version" }, ['Weilve']      =  { "lzh",  "Yu Huan, Weilüe, 239  – 265 " .. CE }, ['Weishu']      =  { "lzh-lit",  "Wei Shou, Book of Wei, 551 – 554 " .. CE }, ['Wenxin Diaolong'] = { "lzh",  "Liu Xie, The Literary Mind and the Carving of Dragons, " .. circa .. " 5th century " .. CE }, ['Wenzi']       =  { "lzh",  "Wenzi" }, ['Wenxuan']     =  { "lzh",  "Wen Xuan, 6th century " .. CE }, ['WGWSS']       =  { "lzh",  "Forged Old Text of the Book of Documents, circa 3rd – 4th century " .. CE }, ['Wuzi']        =  { "lzh",  "Wuzi], 5th – 4th century " .. BCE }, ['Wuzi-S']      =  { "lzh",  "Wuzi], 5th – 4th century " .. BCE .. ", translated based on Ralph D. Sawyer's version" }, ['Xiaojing']    =  { "lzh",  "Classic of Filial Piety,  circa 475 – 221 " .. BCE }, ['Xingshi Hengyan']={ "cmn-wvc", "Feng Menglong, Stories to Awaken the World, 1627 " .. CE }, ['Xingshi Yinyuan Zhuan']={ "cmn-wvc", "Xizhou Sheng, Marriage Destinies to Awaken the World, 17th century " .. CE }, ['Xishuangji']  =  { "cmn-wvc", "Wang Shifu, The Story of the Western Wing, 13th – 14th centuries " .. CE }, ['Xiyouji']     =  { "cmn-wvc", "Wu Cheng'en, Journey to the West, 16th century " .. CE }, ['Xiyouji-Y']   =  { "cmn-wvc", "Wu Cheng'en, Journey to the West, 16th century " .. CE .. ", translation from The Journey to the West (2012), by Anthony C. Yu" }, ['Xintangshu']  =  { "lzh-lit",  "The New Book of Tang, 1060 " .. CE }, ['Xinyu']       =  { "lzh",  "Lu Jia, Xinyu (A New Discourse), " .. circa .. " 197 " .. BCE }, ['Xunzi']       =  { "lzh",  "Xunzi, " .. circa .. " 3rd century " .. BCE }, ['Yantielun']   =  { "lzh",  "Huan Kuan, Discourses on Salt and Iron, " .. circa .. " 1st century " .. BCE }, ['Yanshi Jiaxun']= { "lzh-lit",  "Yan Zhitui, The Family Instructions of Master Yan, 6th century " .. CE }, ['Yanzi Chunqiu']= { "lzh",  "Annals of Master Yan, " .. circa .. " 3rd century " .. BCE }, ['Yijing']      =  { "lzh-pre",  "I Ching, 11th – 8th century " .. BCE }, ['Yijing-L']    =  { "lzh-pre",  "I Ching, 11th – 8th century " .. BCE .. ", translated based on James Legge's version" }, ['Yili']        =  { "lzh",  "Etiquette and Ceremonial, circa 475 – 221 " .. BCE }, ['Yili-S']      =  { "lzh",  "Etiquette and Ceremonial, circa 475 – 221 " .. BCE .. ", translated based on John Steele's version" }, ['Yilin']       =  { "lzh",  "Jiao Gong, Yilin, 1st century " .. BCE }, ['Yiwen Leiju']   =  { "lzh-lit",  "Yiwen Leiju, 624 " .. CE }, ['Yizhoushu']   =  { "lzh",  "Lost Book of Zhou, circa 4th – 1st centuries " .. BCE }, ['Yuandianzhang']= { "lzh-lit",  "Statutes of the Yuan dynasty, 1322–1323 " .. CE }, ['Zhanguoce']   =  { "lzh",  "Zhanguo Ce, circa 5th – 3rd centuries " .. BCE }, ['Zhanguoce-C']   =  { "lzh",  "Zhanguo Ce, circa 5th – 3rd centuries " .. BCE .. ", translated based on J. I. Crump's version" }, ["Zhaoshi Gu'er"]= { "cmn-wvc",  "Yuan Dynasty, Ji Junxiang, The Orphan of Zhao" }, ['Zhouli']      =  { "lzh",  "Rites of Zhou, circa 3rd century " .. BCE }, ['Zhoushu']      =  { "lzh-lit",  "636 " .. CE .. ", Linghu Defen, Book of Zhou" }, ['Zhuangzi']    =  { "lzh",  "Zhuangzi, circa 3rd – 2nd centuries " .. BCE }, ['Zhuangzi-L']  =  { "lzh",  "Zhuangzi, circa 3rd – 2nd centuries " .. BCE .. ", translated based on James Legge's version" }, ['Zhuangzi-W']  =  { "lzh",  "Zhuangzi, circa 3rd – 2nd centuries " .. BCE .. ", translation from The Complete Works Of Chuang Tzu (2013), by Burton Watson" }, ['Zhushu Jinian'] = { "lzh",  "Bamboo Annals,  circa 475 – 221 " .. BCE }, ['Zhuzi Jiaxun'] = { "lzh-lit",  "Zhu Yongchun, Zhu Zi's Family Maxims, 17th century " .. CE }, ['Zhuzi Yulei'] = {"cmn-wvc", "Various editors, Collected Conversations of Master Zhu, " .. circa .. " 13th century " .. CE}, ['Zibuyu']      =  { "lzh-lit",  "Yuan Mei, What the Master Would Not Discuss, 1788 " .. CE }, ['Zizhi Tongjian']      =  { "lzh-lit",  "1084 " .. CE .. ", Sima Guang, Comprehensive Mirror to Aid in Government" }, ['Zuozhuan']    =  { "lzh",  "Commentary of Zuo, " .. circa .. " 4th century " .. BCE }, ['Zuozhuan-D']  =  { "lzh",  "Commentary of Zuo, " .. circa .. " 4th century " .. BCE .. ", translation from Zuozhuan: Commentary on the \"Spring and Autumn Annals\" (2017), by Stephen Durrant, Wai-yee Li and David Schaberg" }, ['Zuozhuan-L']  =  { "lzh",  "Commentary of Zuo, " .. circa .. " 4th century " .. BCE .. ", translated based on James Legge's version" }, ['Mao25']     =  format_mao("1925", "中國社會各階級的分析", "Analysis of the Classes in Chinese Society", "1", "1"), ['Mao27']     =  format_mao("1927", "湖南農民運動考察報告", "Report on an Investigation of the Peasant Movement in Hunan", "1", "2"), ['Mao35']     =  format_mao("1935", "論反對日本帝國主義的策略", "On Tactics Against Japanese Imperialism", "1", "11"), ['Mao36']     =  format_mao("1936", "中國革命戰爭的戰略問題", "Problems of Strategy in China's Revolutionary War", "1", "12"), ['MaoSJL']    =  format_mao("1937", "實踐論", "On Practice", "1", "16"), ['MaoMDL']    =  format_mao("1937", "矛盾論", "On Contradiction", "1", "17"), ['MaoZYZY']   =  format_mao("1937", "反對自由主義", "Combat Liberalism", "2", "03"), ['Mao38']     =  format_mao("1938", "論持久戰", "On Protracted War", "2", "09"), ['MaoZGGM']   =  format_mao("1939", "中國革命和中國共產黨", "The Chinese Revolution and the Chinese Communist Party", "2", "23"), ['MaoXMZZY']  =  format_mao("1940", "新民主主義論", "On New Democracy", "2", "26"), ['MaoRectify'] = format_mao("1942", "整頓黨的作風", "Rectify the Party's Style of Work", "3", "06"), ['MaoYanan']  =  format_mao("1942", "在延安文藝座談會上的講話", "Talks at the Yenan Forum on Literature and Art", "3", "08"), ['Mao45']     =  format_mao("1945", "論聯合政府", "On Coalition Government", "3", "25"), ['Mao56']     =  format_mao("1956", "論十大關係", "On the Ten Major Relationships", "5", "51"), ['Mao57']     =  format_mao("1957", "關於正確處理人民內部矛盾的問題", "On the Correct Handling of Contradictions Among the People", "5", "58"), }

data.pron_correction = { ["cmn"] = {}, ["yue"] = { ["錢"] = "cin4", ["道"] = "dou6", ["稱"] = "cing1", ["噏"] = "ngap1", },	["hak"] = { ["阿"] = "-â", ["媸"] = "-ché", ["獎"] = "-chióng", ["竹"] = "-chuk", ["茶"] = "chhà", ["蚻"] = "-chha̍t", ["曾"] = "-chhèn", ["千"] = "-chhiên", ["竄"] = "-chhon", ["捽"] = "-chhu̍t", ["仔"] = "-é", ["𫣆"] = "-ên", ["客"] = "-hak", ["機"] = "-kî", ["𥘹"] = "-kì", ["溝"] = "-kiêu", ["稿"] = "-kó", ["罅"] = "-la", ["壢"] = "-lak", ["摎"] = "-lâu", ["㧯"] = "-lâu", ["恅"] = "-láu", ["俚"] = "-lî", ["羅"] = "-lò", ["擂"] = "-lùi", ["閩"] = "-mén", ["美"] = "-mî", ["忘"] = "-mong", ["蚊"] = "-mûn", ["腦"] = "-nó", ["濃"] = "-nùng", ["𠊎"] = "-ngài", ["祢"] = "-ngì", ["孲"] = "-ò", ["𡟓"] = "-ôi", ["錶"] = "-péu", ["輩"] = "-pi", ["𡜵"] = "-pû", ["婆"] = "-phò", ["使"] = "-sṳ́", ["史"] = "-sṳ́", ["視"] = "sṳ", ["脣"] = "-sùn", ["點"] = "-tiám", ["𢯭"] = "-then", ["電"] = "-thien", ["唐"] = "-thòng", ["筒"] = "-thùng", ["裕"] = "-yi", },	["nan-hbl"] = { ["阿"] = "-a", ["仔"] = "-á", ["矣"] = "-ah", ["啊"] = "-ah", ["䆀"] = "-bái", ["袂"] = "-bē", ["欲"] = "-beh", ["覕"] = "-bih", ["盟"] = "-bêng", ["務"] = "-bū", ["欉"] = "-châng", ["十"] = "-cha̍p", ["誌"] = "-chì", ["遮"] = "-chiah", ["針"] = "-chiam", ["窒"] = "-chit", ["鯽"] = "-chit", ["一"] = "-chi̍t", ["睭"] = "-chiu", ["慈"] = "-chû", ["𠞩"] = "-chûi", ["𨑨"] = "-chhit", ["𤆬"] = "-chhōa", ["攢"] = "-chhoân", ["的"] = "-ê", ["个"] = "-ê", ["憶"] = "-ek", ["𠢕"] = "-gâu", ["偌"] = "-gōa", ["囡"] = "-gín", ["耳"] = "-hīⁿ", ["予"] = "-hō͘", ["已"] = "-í", ["也"] = "-iā", ["𪜶"] = "-in", ["字"] = "-jī", ["然"] = "-jiân", ["日"] = "-ji̍t", ["共"] = "-kā", ["佮"] = "-kah", ["甲"] = "-kah", ["矸"] = "-kan", ["到"] = "-kàu", ["竟"] = "kèng", ["行"] = "-kiâⁿ", ["勼"] = "-kiu", ["閣"] = "-koh", ["擱"] = "-koh", ["講"] = "-kóng", ["跤"] = "-kha", ["較"] = "-khah", ["徛"] = "-khiā", ["課"] = "-khò", ["人"] = "-lâng", ["汝"] = "-lí", ["旅"] = "-lí", ["啉"] = "-lim", ["暖"] = "-loán", ["戀"] = "-loân", ["攏"] = "-lóng", ["毋"] = "-m̄", ["嬤"] = "-má", ["喔"] = "-o͘h", ["爸"] = "-pē", ["悲"] = "-pi", ["麭"] = "-pháng", ["三"] = "-saⁿ", ["捨"] = "-siá", ["閃"] = "-siám", ["雙"] = "-siang", ["啥"] = "-siáⁿ", ["心"] = "-sim", ["俗"] = "-sio̍k", ["傷"] = "-siong", ["商"] = "-siong", ["受"] = "-siū", ["煞"] = "-soah", ["士"] = "-sū", ["雖"] = "-sui", ["媠"] = "-súi", ["遂"] = "-sūi", ["臺"] = "-tâi", ["塊"] = "-tè", ["咧"] = "-teh", ["豬"] = "-ti", ["戴"] = "-tì", ["佇"] = "-tī", ["典"] = "-tián", ["躊"] = "-tiû", ["斷"] = "-tn̄g", ["多"] = "-to", ["倒"] = "tó", ["拄"] = "-tú", ["盹"] = "-tuh", ["脣"] = "-tûn", ["太"] = "-thài", ["刣"] = "-thâi", ["讀"] = "-tha̍k", ["窗"] = "-thang", ["迌"] = "-thô", ["揻"] = "-ui", },	["wuu"] = {}, }

data.polysyllable_pron_correction = { ["cmn"] = { ["覺得"] = "juéde", ["個中"] = "gèzhōng", ["個人"] = "gèrén", ["個個"] = "gègè", ["個兒"] = "gèr", ["個別"] = "gèbié", ["個子"] = "gèzi", ["個展"] = "gèzhǎn", ["個性"] = "gèxìng", ["個數"] = "gèshù", ["個案"] = "gè'àn",["個頭"] = "gètóu", ["個體"] = "gètǐ" },	["yue"] = { ["屋企"] = "uk1 kei2", ["返屋企"] = "faan1 uk1 kei2", ["知道"] = "zi1 dou3" },	["hak"] = { ["老鼠"] = "-lo-chhú", ["敗勢"] = "-phài-se", ["癩𰣻"] = "-thái-kô", ["台灣"] = "-Thòi-vàn", ["臺灣"] = "-Thòi-vàn-" },	["nan-hbl"] = { ["愛人"] = "-ài-jîn", ["饅頭"] = "-bán-thô", ["門徒"] = "-bûn-tô͘", ["情批"] = "-chêng-phoe", ["遮爾"] = "-chiah-nī", ["這馬"] = "-chit-má", ["作用"] = "-chok-iōng", ["請假"] = "-chhéng-ká", ["親像"] = "-chhin-chhiūⁿ", ["偌爾"] = "-gōa-nī", ["一切"] = "-it-chhè", ["一般"] = "-it-poaⁿ", ["一直"] = "-it-ti̍t", ["人海"] = "-jîn-hái", ["人生"] = "-jîn-seng", ["卡拉OK"] = "-kha-lá-ó͘-khe", ["旅行"] = "-lí-hêng", ["歐巴桑"] = "-o͘-bá-sáng", ["歹勢"] = "-pháiⁿ-sè", ["山珍海味"] = "-san-tin-hái-bī", ["漩渦"] = "-soân-o", ["臺灣"] = "-Tâi-oân", ["第一"] = "-tē-it", ["的確"] = "-tek-khak", ["癩𰣻"] = "-thái-ko", },	["wuu"] = {}, }

return data