Module:category tree/poscatboiler/data/lang-specific/vep

local labels = {} local handlers = {}

--- Nominal categories ---

labels["nominals by declension"] = { description = " nouns and adjectives categorized by their declension type.", breadcrumb = "by declension", -- doesn't exist yet -- preceding = "", parents = { {name = "nouns", sort = "declension"}, {name = "adjectives", sort = "declension"}, }, }

table.insert(handlers, function(data)	local nomtype = data.label:match("^(.*)%-type nominals$")	if nomtype then		return {			description = (" %s-type nominals."):format(nomtype),			-- doesn't exist yet			-- preceding = (""):format(nomtype),			additional = ("Terms are added to this category using vep-decl-%s."):format(nomtype),			breadcrumb = {name = ("%s-type"):format(nomtype), nocap = true},			parents = {"nominals by declension"},		}	end end)

--- Verbal categories ---

labels["verbs by conjugation"] = { description = " verbs categorized by their conjugation type.", breadcrumb = "by conjugation", -- doesn't exist yet -- preceding = "", parents = { {name = "verbs", sort = "conjugation"}, }, }

local defective_types = { ["kaikaa"] = true, }

table.insert(handlers, function(data)	local verbtype = data.label:match("^(.*)%-type verbs$")	if verbtype then		local parents = {"verbs by conjugation"}		return {			description = (" %s-type verbs."):format(verbtype),			-- doesn't exist yet			-- preceding = (""):format(verbtype),			additional = ("Terms are added to this category using vep-conj-%s."):format(verbtype),			breadcrumb = {name = ("%s-type"):format(verbtype), nocap = true},			parents = parents,		}	end end)

local stem_vowels = { "-ä-", "-a-, past in -i-", "-a-, past in -oi-", "-e-", "-i-", "-o-", "-u-", "-ü-", }

for _, stem_vowel in ipairs(stem_vowels) do	local label_pref = "verbs with stem in " local linked_stem_vowel = stem_vowel:gsub("(%-.-%-)", "") local italicized_stem_vowel = stem_vowel:gsub("(%-.-%-)", "") labels[label_pref .. stem_vowel] = { description = " " .. label_pref .. linked_stem_vowel .. ".",		displaytitle = " " .. label_pref .. italicized_stem_vowel, breadcrumb = "stem in " .. italicized_stem_vowel, parents = , } end

labels["monosyllabic verbs"] = { description = " monosyllabic verbs.", breadcrumb = "monosyllabic", parents = , }

return {LABELS = labels, HANDLERS = handlers}