Module:category tree/lang/ca


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/lang/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/lang in order for the module to be recognized.


local labels = {}
local handlers = {}

local insert = table.insert

-----------------------------------------------------------------------------
--                                                                         --
--                                  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-|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-|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",
}

-----------------------------------------------------------------------------
--                                                                         --
--                                  NOUNS                                  --
--                                                                         --
-----------------------------------------------------------------------------

labels["masculine forms with -o"] = {
	description = replace_angle_brackets("This category tracks {{{langname}}} nouns and adjectives which unusually carry an ending <<-o>> where <<-e>> would normally be expected."),
	additional = replace_angle_brackets([=[Early in the evolution of Gallo-Romance, unstressed final vowels (other than {{IPAchar|/a/}}, which will be ignored for what follows) were nearly always lost in polysyllabic words unless needed to support a preceding consonant cluster. In the latter case, all vowels yielded {{IPAchar|/ə/}} in French and {{IPAchar|/e/}} in Occitan, no matter what they had been in Latin. Notably, Franco-Provençal retained a distinction between original front and back vowels. Consider the following examples:

{| class="wikitable" style="text-align: center;"
!Proto-Romance
!French
!Occitan
!Fr.-Pr.
|-
|*{{IPAchar|/ˈmatr<u>e</u>/}}
|{{m|fr|mèr<u>e</u>}}
|{{m|oc|mair<u>e</u>}}
|{{m|frp|mâr<u>e</u>}}
|-
|*{{IPAchar|/ˈkʷattr<u>o</u>/}}
|{{m|fr|quatr<u>e</u>}}
|{{m|oc|quatr<u>e</u>}}
|{{m|frp|quatr<u>o</u>}}
|}

Catalan generally shows the French– and Occitan-type merger (cf. {{m|ca|mar<u>e</u>}}, {{m|ca|quatr<u>e</u>}}). Nevertheless, a number of seemingly inherited masculine forms show final <<-o>>, generally alongside variants showing <<-e>> instead. In some cases one variant or the other has gone extinct. Sometimes no <<-e>> variant is attested at all.

Most cases appear to involve {{IPAchar|/rr/}} or a preceding labial sound, especially a stressed <<o>>, implying factors that either favoured the retention of an original /-o/ or (as more generally assumed by specialists) led to its coincidental redevelopment from /-e/.

Although this list intentionally excludes words recently borrowed from Spanish, such as ''agüelo'' or ''flonjo'', there is nevertheless a possibility that at least some of the words reflect early contact with Aragonese.]=]),
	parents = {"non-lemma forms", "masculine nouns"},
}

insert(handlers, function(data)
	local pos = data.label:match("^masculine (%w+) ending in %-a$")
	if not pos then return end
	return {
		description = "{{{langname}}} nouns that are masculine, but have the typically feminine ending {{m|ca|-a}}.",
		parents = "masculine " .. pos,
		displaytitle = "Catalan masculine " .. pos .. " ending in {{m|ca||-a}}",
		breadcrumb = "ending in {{m|ca||-a}}",
	}
end)

-----------------------------------------------------------------------------
--                                                                         --
--                                  OTHER                                  --
--                                                                         --
-----------------------------------------------------------------------------

labels["pre-2016 spellings"] = {
	description = "{{{langname}}} terms spelled in the orthography used before the [[Appendix:Catalan orthography#Situation before 2016|2016 reform]].",
	parents = "terms by orthographic property",
	breadcrumb = "pre-2016",
}

return {LABELS = labels, HANDLERS = handlers}
Category:Catalan data modules Category:Catalan modules Category:Category tree data modules/poscatboiler