This module handles generating the descriptions and categorization for Sanskrit category pages of the format "Sanskrit 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 = {}
local handlers = {}
local rmatch = mw.ustring.match
--------------------------------- Roots --------------------------------
labels = {
description = "Sanskrit roots where an initial unaspirated consonant may become aspirated in some derivatives. This occurs when the root is followed immediately by a {{w|sibilant}}, which triggers an aspiration throwback and the aspiration migrates leftward, docking onto the initial consonant. See more at {{w|Grassmann's law}}",
parents = {{ name = "roots" }}
}
--------------------------------- In fine compositi --------------------------------
labels = {
description = "Sanskrit terms that only appear at the end of a compound adjective",
parents = {{ name = "adjectives" }}
}
labels = {
description = "Sanskrit terms that only appear at the end of a compound noun",
parents = {{ name = "nouns" }}
}
labels = {
description = "Sanskrit terms that only appear at the end of a compound adverb",
parents = {{ name = "adverbs" }}
}
--------------------------------- Verbs --------------------------------
labels = {
description = "Sanskrit verbs categorized by class.",
parents = {{name = "verbs by inflection type", sort = "class"}},
}
table.insert(handlers, function(data)
local cls = rmatch(data.label, "^class (*) verbs")
if cls then
return {
description = "Sanskrit class " .. cls .. " verbs.",
breadcrumb = cls,
parents = {{name = "verbs by class", sort = cls}},
}
end
end)
labels = {
description = "Sanskrit verbs categorized by aorist type.",
parents = {{name = "verbs by inflection type", sort = "class"}},
breadcrumb = "aorist types"
}
for _, aor in pairs({ "iṣ-", "ṣ-", "kṣ-", "a-", "root "}) do
labels = {
description = "Sanskrit verbs with the " .. aor .. "aorist",
parents = {{ name = "verbs by aorist type", sort = aor }},
breadcrumb = aor .. "aorist"
}
end
labels = {
description = "Sanskrit {{w|Sanskrit_verbs#Future_system|future system}} verbs.",
parents = {{name = "verbs"}},
breadcrumb = "future verbs"
}
labels = {
description = "Sanskrit {{w|Sanskrit_verbs#Perfect_system|perfect system}} verbs.",
parents = {{name = "verbs"}},
breadcrumb = "perfect verbs"
}
labels = {
description = "Sanskrit {{w|Sanskrit_verbs#Aorist_system|aorist system}} verbs.",
parents = {{name = "verbs"}},
breadcrumb = "aorist verbs"
}
labels = {
description = "Sanskrit {{w|Sanskrit_verbs#Aorist_system|benedictive/precative}} verbs.",
parents = {{name = "verbs"}},
breadcrumb = "benedictive verbs"
}
--------------------------------- Etymology --------------------------------
labels = {
description = "Terms derived from various {{w|Middle Indo-Aryan languages}}, such {{w|Prakrit}} and {{w|Pali}} through ] (sometimes also called '''hyper-Sanskritization''', '''re-Sanskritization''', or '''hyper-Sanskritism'''). The ] ] of Sanskrit often gave rise to restitution-driven hypercorrection, i.e. using knowledge of regular sound innovations from Sanskrit to Middle Indo-Aryan in an attempt to revert these phonological processes. Numerous previously unattested Sanskrit words have hence been \"falsely\" reconstructed by scribes and lexicographers.",
parents = {{ name = "terms by etymology" }}
}
return {LABELS = labels, HANDLERS = handlers}