انتقل إلى المحتوى

وحدة:category tree/lang/mwl

من ويكاموس، القاموس الحر
local labels = {}

local unpack = unpack or table.unpack -- Lua 5.2 compatibility

-----------------------------------------------------------------------------
--                                                                         --
--                                  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:Mirandese verbs ending in -er|verbs ending in -er]] and [[:Category:Mirandese 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:Mirandese verbs ending in -ar|verbs ending in -ar]] and [[:Category:Mirandese 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:Mirandese verbs ending in -ar|verbs ending in -ar]] and [[:Category:Mirandese verbs ending in -er|verbs ending in -er]].",
}

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

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

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

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

-- Add labels for e.g. [[Category:Mirandese verbs with e-ie alternation]].
local vowel_alternations = {
	
	["o-uo"] = {
		stressed = {"o", "uo"},
	},
	["e-ie"] = {
		stressed = {"e", "ie"},
	},
	["a-i"] = {
		stressed = {"a", "i"},
	},
	["e-i"] = {
		stressed = {"e", "i"},
	},
	["a-ei"] = {
		stressed = {"a", "ei"},
	},
	["e-ei"] = {
		stressed = {"e", "ei"},
	},
	["a-e"] = {
		stressed = {"a", "e"},
	},
	["o-e"] = {
		stressed = {"o", "e"},
	},
	["u-o"] = {
		stressed = {"u", "o"},
	},
}

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"
	desc = desc .. "."
	labels["verbs with " .. alt .. " alternation"] = {
		description = desc,
		displaytitle = "{{{langname}}} verbs with {{m|mwl||" .. alt .. "}} alternation",
		parents = {{name = "verbs by vowel alternation", sort = alt}},
		breadcrumb = "{{m|mwl||" .. alt .. "}}",
	}
end


-- Add labels for e.g. [[Category:Mirandese 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"},
}

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|mwl||" .. alt .. "}} alternation",
		parents = {{name = "verbs by consonant alternation", sort = alt}},
		breadcrumb = "{{m|mwl||" .. alt .. "}}",
	}
end

labels["third-person-only verbs"] = {
	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}