This module handles generating the descriptions and categorization for Old Church Slavonic category pages of the format "Old Church Slavonic LABEL" where LABEL can be any text. Examples are Category:Bulgarian conjugation 2.1 verbs and Category:Russian velar-stem neuter-form nouns. This module is part of the poscatboiler system, which is a general framework for generating the descriptions and categorization of category pages.

For more information, see Module:category tree/poscatboiler/data/lang-specific/documentation.

NOTE: If you add a new language-specific module, you must add the language code to the list at the top of Module:category tree/poscatboiler/data/lang-specific in order for the module to be recognized.


local labels = {}
local handlers = {}


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

local noun_decls = {
	["hard a-stem"] = {
		singular = "-а",
		plural = "-ꙑ",
		gender = "feminine",
		sortkey = "a-stem",
	},
	["soft a-stem"] = {
		singular = "-ꙗ (or -а after an unpaired palatal consonant)",
		plural = "-ѩ (or -ѧ after an unpaired palatal consonant)",
		gender = "feminine",
		sortkey = "a-stem",
	},
	["i-stem"] = {
		singular = "-ь",
		plural = "-и (usually -ьѥ or -иѥ when masculine)",
		gender = "feminine (sometimes masculine)",
	},
	["ī-stem"] = {
		singular = "-ии or -ьи",
		plural = "-иѭ or -ьѩ",
		gender = "feminine (masculine when referring to a person)",
		parent = "soft a-stem",
	},
	["hard masculine o-stem"] = {
		singular = "-ъ",
		plural = "-и",
		gender = "masculine",
		sortkey = "o-stem",
	},
	["soft masculine o-stem"] = {
		singular = "-ь",
		plural = "-и",
		gender = "masculine",
		sortkey = "o-stem",
	},
	["hard neuter o-stem"] = {
		singular = "-о",
		plural = "-а",
		gender = "neuter",
		sortkey = "o-stem",
	},
	["soft neuter o-stem"] = {
		singular = "-ѥ (or -е after an unpaired palatal consonant)",
		plural = "-ꙗ (or -а after an unpaired palatal consonant)",
		gender = "neuter",
		sortkey = "o-stem",
	},
	["u-stem"] = {
		singular = "-ъ",
		plural = "-ове",
		gender = "masculine",
	},
	["n-stem"] = {
		singular = "-ꙑ, -нь, or -мѧ",
		plural = "-не (or -мена if ending in -мѧ)",
		gender = "masculine (nouns in -мѧ are neuter)",
		parent = "consonant-stem",
	},
	["nt-stem"] = {
		singular = "-ѧ",
		plural = "-ѧта",
		gender = "neuter",
		parent = "consonant-stem",
	},
	["r-stem"] = {
		singular = "-и",
		plural = "-ери",
		gender = "feminine",
		parent = "consonant-stem",
	},
	["s-stem"] = {
		singular = "-о (-е after a palatal consonant)",
		plural = "-еса",
		gender = "neuter",
		parent = "consonant-stem",
	},
	["v-stem"] = {
		singular = "-ꙑ",
		plural = "-ъви",
		gender = "feminine",
		parent = "consonant-stem",
	}
}

for _, pos in ipairs({"නාම පද"}) do
	local sgpos = pos:gsub("s$", "")
	labels["consonant-stem " .. pos] = {
		description = "Old Church Slavonic consonant-stem " .. 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 = "consonant-stem",
		parents = pos .. " by inflection type",
	}
	for decl, spec in pairs(noun_decls) do
		labels[decl .. " " .. pos] = {
			description = "Old Church Slavonic " .. 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}
"https://si.wiktionary.org/w/index.php?title=Module:category_tree/poscatboiler/data/lang-specific/cu&oldid=32546" වෙතින් සම්ප්‍රවේශනය කෙරිණි