This module handles generating the descriptions and categorization for Spanish category pages of the format "Spanish 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 = {}
-----------------------------------------------------------------------------
-- --
-- VERBS --
-- --
-----------------------------------------------------------------------------
local conjugations = {
= "{{{langname}}} first conjugation verbs, derived from Latin ]. See also the coordinate categories for ] and ].",
= "{{{langname}}} second conjugation verbs, derived from Latin ] or ] verbs. See also the coordinate categories for ] and ].",
= "{{{langname}}} third conjugation verbs, derived from Latin ] or ] verbs. See also the coordinate categories for ] and ].",
}
labels = {
description = "{{{langname}}} verbs categorized by conjugation.",
parents = {"verbs by inflection type"},
}
for conj, conjdesc in pairs(conjugations) do
labels = {
description = conjdesc,
displaytitle = "{{{langname}}} verbs ending in {{m|es||-" .. conj .. "}}",
parents = {
{name = "verbs by conjugation", sort = conj},
},
breadcrumb = "{{m|es||-" .. conj .. "}}",
}
end
labels = {
description = "{{{langname}}} verbs categorized by type of vowel alternation.",
parents = {"verbs by inflection type"},
}
labels = {
description = "{{{langname}}} verbs categorized by type of consonant alternation.",
parents = {"verbs by inflection type"},
}
-- Add labels for e.g. ].
local vowel_alternations = {
= {
stressed = {"e", "i"},
},
= {
stressed = {"e", "í"},
},
= {
stressed = {"e", "ie"},
},
= {
stressed = {"e", "ie"},
raising = "i",
},
= {
stressed = {"e", "ye"},
},
= {
stressed = {"e", "ye"},
raising = "i",
},
= {
stressed = {"i", "í"},
},
= {
stressed = {"i", "ie"},
},
= {
stressed = {"u", "hue"},
},
= {
stressed = {"o", "ue"},
},
= {
stressed = {"o", "ue"},
raising = "u",
},
= {
stressed = {"u", "ú"},
},
= {
stressed = {"u", "ue"},
},
}
for alt, obj in pairs(vowel_alternations) do
local from, to = unpack(obj.stressed)
local desc = "{{{langname}}} verbs whose root vowel changes from ''" .. from .. "'' to ''" .. to .. "'' when stressed"
if obj.raising then
desc = desc .. " and raises to ''" .. obj.raising .. "'' in certain other forms"
end
desc = desc .. "."
labels = {
description = desc,
displaytitle = "{{{langname}}} verbs with {{m|es||" .. alt .. "}} alternation",
parents = {{name = "verbs by vowel alternation", sort = alt}},
breadcrumb = "{{m|es||" .. alt .. "}}",
}
end
-- Add labels for e.g. ].
local consonant_alternations = {
= {"c", "ç"},
= {"qu", "c"},
= {"c", "z"},
= {"c", "zc"},
= {"gu", "g"},
= {"g", "j"},
= {"gü", "gu"},
}
for alt, frontback in pairs(consonant_alternations) do
local desc
local front, back = unpack(frontback)
desc = "{{{langname}}} verbs whose final consonant alternates between ''" .. front .. "'' before front vowels (''e'', ''i'') " ..
"and ''" .. back .. "'' before back vowels (''a'', ''o'', ''u'')."
labels = {
description = desc,
displaytitle = "{{{langname}}} verbs with {{m|es||" .. alt .. "}} alternation",
parents = {{name = "verbs by consonant alternation", sort = alt}},
breadcrumb = "{{m|es||" .. alt .. "}}",
}
end
labels = {
description = "{{{langname}}} verbs whose final consonant does not change in spelling but alternates in sound between hard and soft ''c''.",
parents = {{name = "verbs by consonant alternation", sort = "hard-soft"}},
breadcrumb = "hard-soft",
}
labels = {
description = "{{{langname}}} verbs with forms that exist only in the third person, and have no imperatives.",
parents = {{name = "defective verbs"}},
breadcrumb = "third-person-only",
}
return {LABELS = labels}