Module:category tree/lang/lyti: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


for _, pos in ipairs{"nouns", "adjectives"} do
for _, pos in ipairs{"nouns", "adjectives"} do
for _, decl in ipairs{"i", "n", "r", "s", "ē", "consonant"} do
for _, decl in ipairs{"i", "n", "r", "s", "o", "ē", "consonant"} do
local decltext = decl .. "-stem"
local decltext = decl .. "-stem"
labels[decltext .. " " .. pos] = {
labels[decltext .. " " .. pos] = {
Line 10: Line 10:
}
}
end
end
end
labels["verbs by conjugation"] = {
description = "{{{langname}}} verbs categorized by conjugation.",
parents = {"verbs by inflection type"},
}
for i, conj in ipairs{"first", "second", "third", "fourth"} do
labels[conj .. " conjugation verbs"] = {
description = "{{{langname}}} verbs of the " .. conj .. " conjugation.",
parents = {
{name = "verbs by conjugation", sort = conj},
},
breadcrumb = tostring(i),
}
end
end


return {LABELS = labels}
return {LABELS = labels}

Latest revision as of 00:12, 10 May 2026


This module handles generating the descriptions and categorization for Oltic category pages of the format "Oltic 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 category tree system, which is a general framework for generating the descriptions and categorization of category pages.

For more information, see Module:category tree/lang/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/lang in order for the module to be recognized.


local labels = {}

for _, pos in ipairs{"nouns", "adjectives"} do
	for _, decl in ipairs{"i", "n", "r", "s", "o", "ē", "consonant"} do
		local decltext = decl .. "-stem"
		labels[decltext .. " " .. pos] = {
			description = "{{{langname}}} " .. pos .. " whose stem ends in " .. (decl == "consonant" and "a consonant" or "''-" .. decl .. "''") .. ".",
			parents = {{name = pos .. " by inflection type", sort = declnum}},
			breadcrumb = decl,
		}
	end
end

labels["verbs by conjugation"] = {
	description = "{{{langname}}} verbs categorized by conjugation.",
	parents = {"verbs by inflection type"},
}

for i, conj in ipairs{"first", "second", "third", "fourth"} do
	labels[conj .. " conjugation verbs"] = {
		description = "{{{langname}}} verbs of the " .. conj .. " conjugation.",
		parents = {
			{name = "verbs by conjugation", sort = conj},
		},
		breadcrumb = tostring(i),
	}
end

return {LABELS = labels}