Jump to content

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

From Wiktionary, the free dictionary

This module handles generating the descriptions and categorization for Catalan category pages of the format "Catalan 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                                  --
--                                                                         --
-----------------------------------------------------------------------------

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

local function replace_angle_brackets(text)
	return (text:gsub("<<(.-)>>", "{{m|ca||%1}}"))
end

labels["verbs with velar infix"] = {
	description = "{{{langname}}} verbs with an infixed ''g'' (or occasionally ''c'') appearing in several forms.",
	additional = replace_angle_brackets(
	"Generally, the forms with the velar infix are the first-person singular present indicative, the whole present " ..
	"subjunctive, the whole preterite and imperfect subjunctive, and the past participle. An example is " ..
	"{{m|ca|vendre||to sell}}, with first person singular present indicative <<venc>> (here, the ''g'' appears as " ..
	"''c'' when word-final); present subjunctive <<vengui>>, <<venguis>>, <<vengui>>, <<venguem>>, <<vengueu>>, " ..
	"<<venguen>>; preterite <<venguí>>, <<vengueres>>, <<vengué>>, <<venguérem>>, <<venguéreu>>, <<vengueren>>; " ..
	"imperfect subjunctive <<vengués>>, <<venguessis>>, <<vengués>>, <<venguéssim>>, <<venguéssiu>>, " ..
	"<<venguessin>>; and past participle <<vengut>> (also in this case <<venut>> without the infix). Velar infixes " ..
	"are very common in second conjugation verbs (ending in ''-re'' or ''-er''), but occasionally appear in verbs " ..
	"of other conjugations, e.g. {{m|ca|estar||to be}} and {{m|ca|venir||to come}}."),
	breadcrumb = "velar infix",
	parents = {{name = "verbs by inflection type", sort = "velar infix"}},
}

labels["first conjugation verbs"] = {
	description = "{{{langname}}} first conjugation (''-ar'') verbs.",
	breadcrumb = "1st",
	additional =
	"These verbs are normally derived from Latin verbs whose infinitive ended in {{m|la|-āre}} (see " ..
	"[[:Category:Latin first conjugation verbs]]), or are coined by analogy to such verbs. The large majority of " ..
	"Catalan verbs are of this class, and nearly all are regular.",
	parents = {{name = "verbs by conjugation", sort = "1st"}},
}

labels["second conjugation verbs"] = {
	description = "{{{langname}}} second conjugation (''-re'' and ''-er'') verbs.",
	breadcrumb = "2nd",
	additional =
	"These verbs are normally derived from Latin verbs whose infinitive ended in long {{m|la|-ēre}} (see " ..
	"[[:Category:Latin second conjugation verbs]]) or short {{m|la|-ĕre}} (see " ..
	"[[:Category:Latin third conjugation verbs]]). Most such verbs are irregular, and many take a velar infix (see " ..
	"[[:Category:Catalan verbs with velar infix]]). Several verbs of this class have alternative infinitives " ..
	"(e.g. {{m|ca|doldre}}/{{m|ca|doler}} and {{m|ca|heure}}/{{m|ca|haver}}). A few verbs of this class have an " ..
	"infinitive ending in other than ''-re'' or ''-er'' due to contraction, notably {{m|ca|dir||to say}} (from " ..
	"{{m+|la|dīcere}}), {{m|ca|dur||to lead}} (from {{m+|la|dūcere}}), and derivatives of these verbs. Note also " ..
	"{{m|ca|fer||to do, to make}} of this class, contracted from {{m+|la|facere}}.",
	parents = {{name = "verbs by conjugation", sort = "2nd"}},
}

labels["third conjugation verbs"] = {
	description = "{{{langname}}} third conjugation (''-ir'') verbs.",
	breadcrumb = "3rd",
	additional =
	"These verbs are normally derived from Latin verbs whose infinitive ended in {{m|la|-īre}} (see " ..
	"[[:Category:Latin fourth conjugation verbs]]), or are coined by analogy to such verbs. These verbs come in " ..
	"two varieties, those with an ''-eix-'' infix in the otherwise root-stressed forms (the great majority of verbs " ..
	"of this class and all newly formed third conjugation verbs), and those without an ''-eix-'' infix (a minority " ..
	"of verbs, often irregular).",
	parents = {{name = "verbs by conjugation", sort = "3rd"}},
}

labels["third conjugation verbs with -eix-"] = {
	description = "{{{langname}}} third conjugation (''-ir'') verbs with an infixed ''-eix-'' in root-stressed forms.",
	displaytitle = "{{{langname}}} third conjugation verbs with {{m|ca||-eix-}}",
	breadcrumb = "with {{m|ca||-eix-}}",
	additional =
	"These verbs are technically known as ''inchoatives'' based on the corresponding class in Latin, although they " ..
	"no longer have an [[inchoative]] meaning. The forms with ''-eix-'' are those where the stress would otherwise " ..
	"fall on the verb root, i.e. the whole singular and the third-person plural of the present indicative and " ..
	"subjunctive, as well as the second-person singular imperative. The majority of third conjugation verbs, " ..
	"including all newly-coined verbs of this conjugation, take an ''-eix-'' infix. See also " ..
	"[[:Category:Catalan third conjugation verbs without -eix-]].",
	parents = {{name = "third conjugation verbs", sort = "with ''-eix-''"}},
}

labels["third conjugation verbs without -eix-"] = {
	description = "{{{langname}}} third conjugation (''-ir'') verbs without an infixed ''-eix-'' in root-stressed forms.",
	displaytitle = "{{{langname}}} third conjugation verbs without {{m|ca||-eix-}}",
	breadcrumb = "without {{m|ca||-eix-}}",
	additional =
	"These verbs are technically known as ''pure verbs'' by opposition to the ''inchoatives'' (those that take " ..
	"''-eix-''). Only a minority of third conjugation verbs lack the ''-eix-'' infix, although they consist of " ..
	"several very common verbs, such as {{m|ca|dormir||to sleep}} and {{m|ca|sentir||to feel}}. Many such verbs " ..
	"have additional irregularities, and many verbs have two sets of forms, with and without the ''-eix-'' infix. " .. 
	"See also [[:Category:Catalan third conjugation verbs with -eix-]].",
	parents = {{name = "third conjugation verbs", sort = "without ''-eix-''"}},
}

labels["mixed conjugation verbs"] = {
	description = "{{{langname}}} verbs that mix endings from different conjugations.",
	breadcrumb = "mixed",
	additional =
	"An example is {{m|ca|escriure||to write}}, with a mix of second and third conjugation endings. All verbs of " ..
	"this class are irregular.",
	parents = {{name = "verbs by conjugation", sort = "mixed"}},
}

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

-- Add labels for e.g. [[Category:Catalan verbs with c-qu alternation]].
local consonant_alternations = {
	"ç-c",
	"c-qu",
	"g-gu",
	"gu-gü",
	"j-g",
	"qu-qü",
}

for _, alt in ipairs(consonant_alternations) do
	local desc
	local back, front = alt:match("^(.*)%-(.*)$")
	desc = "{{{langname}}} verbs whose final consonant alternates between ''" .. back .. "'' before back vowels (''a'', ''o'', ''u'' and accented variants) " ..
		"and ''" .. front .. "'' before front vowels (''e'', ''i'' and accented variants)."
	labels["verbs with " .. alt .. " alternation"] = {
		description = desc,
		displaytitle = "{{{langname}}} verbs with {{m|ca||" .. alt .. "}} alternation",
		parents = {{name = "verbs by consonant alternation", sort = alt}},
		breadcrumb = "{{m|ca||" .. 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}