模組:Category tree/poscatboiler/data/lang-specific/cu

維基詞典,自由的多語言詞典

This module handles generating the descriptions and categorization for 教會斯拉夫語 category pages of the format "教會斯拉夫語 LABEL" where LABEL can be any text. Examples are Category:Bulgarian conjugation 2.1 verbs and Category:Russian velar-stem neuter-form nouns. 該模块是 poscatboiler 系統的一部分,該系統是用於生成分類頁面的描述和分類的通用框架。

有關更多資訊,請參閱Module:category tree/poscatboiler/data/lang-specific/doc

注意:如果您新增了特定語言的模块,請將語言代碼新增至 Module:category tree/poscatboiler/data/lang-specific 頂部的清單中,使程式碼能識別該模块。


local labels = {}
local handlers = {}


--------------------------------- Nouns/Pronouns/Numerals --------------------------------

local noun_decls = {
	["硬音a-詞幹"] = {
		singular = "-а",
		plural = "-ꙑ",
		gender = "陰性",
		sortkey = "a-詞幹",
	},
	["軟音a-詞幹"] = {
		singular = "-ꙗ (or -а after an unpaired palatal consonant)",
		plural = "-ѩ (or -ѧ after an unpaired palatal consonant)",
		gender = "陰性",
		sortkey = "a-詞幹",
	},
	["i-詞幹"] = {
		singular = "-ь",
		plural = "-и(陽性時為 -ьѥ 或 -иѥ)",
		gender = "陰性(有時為陽性)",
	},
	["ī-詞幹"] = {
		singular = "-ии or -ьи",
		plural = "-иѭ or -ьѩ",
		gender = "陰性(指人時為陽性)",
		parent = "軟音a-詞幹",
	},
	["硬音陽性o-詞幹"] = {
		singular = "-ъ",
		plural = "-и",
		gender = "陽性",
		sortkey = "o-詞幹",
	},
	["軟音陽性o-詞幹"] = {
		singular = "-ь",
		plural = "-и",
		gender = "陽性",
		sortkey = "o-詞幹",
	},
	["硬音中性o-詞幹"] = {
		singular = "-о",
		plural = "-а",
		gender = "中性",
		sortkey = "o-詞幹",
	},
	["軟音中性o-詞幹"] = {
		singular = "-ѥ (or -е after an unpaired palatal consonant)",
		plural = "-ꙗ (or -а after an unpaired palatal consonant)",
		gender = "中性",
		sortkey = "o-詞幹",
	},
	["u-詞幹"] = {
		singular = "-ъ",
		plural = "-ове",
		gender = "陽性",
	},
	["n-詞幹"] = {
		singular = "-ꙑ, -нь, or -мѧ",
		plural = "-не (or -мена if ending in -мѧ)",
		gender = "陽性(nouns in -мѧ are 中性)",
		parent = "輔音詞幹",
	},
	["nt-詞幹"] = {
		singular = "-ѧ",
		plural = "-ѧта",
		gender = "中性",
		parent = "輔音詞幹",
	},
	["r-詞幹"] = {
		singular = "-и",
		plural = "-ери",
		gender = "陰性",
		parent = "輔音詞幹",
	},
	["s-詞幹"] = {
		singular = "-о (-е after a palatal consonant)",
		plural = "-еса",
		gender = "中性",
		parent = "輔音詞幹",
	},
	["v-詞幹"] = {
		singular = "-ꙑ",
		plural = "-ъви",
		gender = "陰性",
		parent = "輔音詞幹",
	}
}

for _, pos in ipairs({"名詞"}) do
	local sgpos = pos:gsub("s$", "")
	labels["輔音詞幹 " .. pos] = {
		description = "教會斯拉夫語輔音詞幹 " .. pos .. "。",
		additional = "This is not a single declension class, but a set of related declension classes, with endings that are"
			.. " largely identical outside of the nominative, accusative and vocative.",
		breadcrumb = "輔音詞幹",
		parents = "依屈折分類的" .. pos,
	}
	for decl, spec in pairs(noun_decls) do
		labels[decl .. " " .. pos] = {
			description = "教會斯拉夫語" .. decl .. pos .. "。",
			additional = "These " .. pos .. " normally end in " .. spec.singular .. " in the singular and " .. spec.plural .. " in the"
				.. " plural, and are most commonly " .. spec.gender .. "。",
			breadcrumb = decl,
			parents = {{
				name = spec.parent and spec.parent .. " " .. pos or pos .. " by inflection type",
				sort = spec.sortkey or decl,
			}},
		}
	end
end


return {LABELS = labels, HANDLERS = handlers}