Modul:category tree/poscatboiler/data/lang-specific/es

This module handles generating the descriptions and categorization for Sepanyol category pages of the format "Sepanyol 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 = {
	["ar"] = "{{{langname}}} first conjugation verbs, derived from Latin [[:Category:Latin first conjugation verbs|first conjugation (-āre) verbs]]. See also the coordinate categories for [[:Category:Spanish verbs ending in -er|verbs ending in -er]] and [[:Category:Spanish verbs ending in -ir|verbs ending in -ir]].",
	["er"] = "{{{langname}}} second conjugation verbs, derived from Latin [[:Category:Latin second conjugation verbs|second conjugation (-ēre)]] or [[:Category:Latin third conjugation verbs|third conjugation (-ere)]] verbs. See also the coordinate categories for [[:Category:Spanish verbs ending in -ar|verbs ending in -ar]] and [[:Category:Spanish verbs ending in -ir|verbs ending in -ir]].",
	["ir"] = "{{{langname}}} third conjugation verbs, derived from Latin [[:Category:Latin third conjugation verbs|third conjugation (-ere)]] or [[:Category:Latin fourth conjugation verbs|fourth conjugation (-īre)]] verbs. See also the coordinate categories for [[:Category:Spanish verbs ending in -ar|verbs ending in -ar]] and [[:Category:Spanish verbs ending in -er|verbs ending in -er]].",
}

labels["kata kerja mengikut konjugasi"] = {
	description = "Kata kerja bahasa {{{langname}}} mengikut konjugasi.",
	parents = {"kata kerja mengikut jenis infleksi"},
}

for conj, conjdesc in pairs(conjugations) do
	labels["kata kerja berakhir dengan -" .. conj] = {
		description = conjdesc,
		displaytitle = "{{{langname}}} verbs ending in {{m|es||-" .. conj .. "}}",
		parents = {
			{name = "verbs by conjugation", sort = conj},
		},
		breadcrumb = "{{m|es||-" .. conj .. "}}",
	}
end

labels["kata kerja mengikut perselangan vokal"] = {
	description = "{{{langname}}} verbs categorized by type of vowel alternation.",
	parents = {"kata kerja mengikut jenis infleksi"},
}

labels["kata kerja mengikut perselangan konsonan"] = {
	description = "{{{langname}}} verbs categorized by type of consonant alternation.",
	parents = {"kata kerja mengikut jenis infleksi"},
}

-- Add labels for e.g. [[Category:Spanish verbs with e-ie alternation]].
local vowel_alternations = {
	["e-i"] = {
		stressed = {"e", "i"},
	},
	["e-í"] = {
		stressed = {"e", "í"},
	},
	["e-ie"] = {
		stressed = {"e", "ie"},
	},
	["e-ie-i"] = {
		stressed = {"e", "ie"},
		raising = "i",
	},
	["e-ye"] = {
		stressed = {"e", "ye"},
	},
	["e-ye-i"] = {
		stressed = {"e", "ye"},
		raising = "i",
	},
	["i-í"] = {
		stressed = {"i", "í"},
	},
	["i-ie"] = {
		stressed = {"i", "ie"},
	},
	["o-hue"] = {
		stressed = {"u", "hue"},
	},
	["o-ue"] = {
		stressed = {"o", "ue"},
	},
	["o-ue-u"] = {
		stressed = {"o", "ue"},
		raising = "u",
	},
	["u-ú"] = {
		stressed = {"u", "ú"},
	},
	["u-ue"] = {
		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["verbs with " .. alt .. " alternation"] = {
		description = desc,
		displaytitle = "{{{langname}}} verbs with {{m|es||" .. alt .. "}} alternation",
		parents = {{name = "kata kerja mengikut perselangan vokal", sort = alt}},
		breadcrumb = "{{m|es||" .. alt .. "}}",
	}
end


-- Add labels for e.g. [[Category:Spanish verbs with c-qu alternation]].
local consonant_alternations = {
	["c-ç"] = {"c", "ç"},
	["c-qu"] = {"qu", "c"},
	["c-z"] = {"c", "z"},
	["c-zc"] = {"c", "zc"},
	["g-gu"] = {"gu", "g"},
	["g-j"] = {"g", "j"},
	["gu-gü"] = {"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["verbs with " .. alt .. " alternation"] = {
		description = desc,
		displaytitle = "{{{langname}}} verbs with {{m|es||" .. alt .. "}} alternation",
		parents = {{name = "kata kerja mengikut perselangan konsonan", sort = alt}},
		breadcrumb = "{{m|es||" .. alt .. "}}",
	}
end

labels["verbs with hard-soft alternation"] = {
	description = "{{{langname}}} verbs whose final consonant does not change in spelling but alternates in sound between hard and soft ''c''.",
	parents = {{name = "kata kerja mengikut perselangan konsonan", sort = "hard-soft"}},
	breadcrumb = "hard-soft",
}

labels["kata kerja orang ketiga sahaja"] = {
	description = "{{{langname}}} verbs with forms that exist only in the third person, and have no imperatives.",
	parents = {{name = "defective verbs"}},
	breadcrumb = "orang ketiga sahaja",
}

return {LABELS = labels}