မေႃႇၵျူး:category tree/lang/sa
Appearance
Documentation for this module may be created at မေႃႇၵျူး:category tree/lang/sa/doc
local labels = {}
local handlers = {}
local rmatch = mw.ustring.match
--------------------------------- Roots --------------------------------
labels["diaspirate roots"] = {
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["compound-final adjectives"] = {
description = "Sanskrit terms that only appear at the end of a compound adjective.",
parents = {{ name = "adjectives" }}
}
labels["compound-final nouns"] = {
description = "Sanskrit terms that only appear at the end of a compound noun.",
parents = {{ name = "nouns" }}
}
labels["compound-final adverbs"] = {
description = "Sanskrit terms that only appear at the end of a compound adverb.",
parents = {{ name = "adverbs" }}
}
--------------------------------- Nominal --------------------------------
labels["desiderative participles"] = {
description = "Sanskrit desiderative participles.",
parents = {{ name = "participles" }}
}
-- Adjective stem types
local adjective_stems = {
"a", "an", "as", "at", "añc", "i", "in", "mat", "root", "u", "us", "vat", "vāṃs", "ā", "ī", "ū", "ṛ"
}
for _, stem in ipairs(adjective_stems) do
labels[stem .. "-stem adjectives"] = {
description = "Sanskrit adjectives with " .. stem .. "-stems.",
parents = {{name = "adjectives by inflection type", sort = stem .. "-stem"}},
breadcrumb = stem .. "-stem"
}
end
-- Noun stem types
local noun_stems = {
"a", "an", "ā", "as", "at", "au", "is", "i", "ī", "in", "mat", "o", "ṛ", "root", "us", "ū", "u", "vat", "vāṃs"
}
for _, stem in ipairs(noun_stems) do
labels[stem .. "-stem nouns"] = {
description = "Sanskrit nouns with " .. stem .. "-stems.",
parents = {{name = "nouns by inflection type", sort = stem .. "-stem"}},
breadcrumb = stem .. "-stem"
}
end
--------------------------------- Verbs --------------------------------
labels["verbs by class"] = {
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 ([0-9]*) verbs")
if cls then
return {
description = "Sanskrit class " .. cls .. " verbs.",
breadcrumb = cls,
parents = {{name = "verbs by class", sort = cls}},
}
end
end)
labels["verbs by aorist type"] = {
description = "Sanskrit verbs categorized by aorist type.",
parents = {{name = "verbs by inflection type", sort = "aorist"}},
breadcrumb = "aorist types"
}
for _, aor in pairs({ "iṣ", "s", "kṣ", "a", "root", "sa", "siṣ"}) do
labels["verbs with " .. aor .. "-aorist"] = {
description = "Sanskrit verbs with the " .. aor .. "-aorist.",
parents = {{ name = "verbs by aorist type", sort = aor }},
breadcrumb = aor .. "-aorist"
}
end
-- Future types
labels["verbs by future type"] = {
description = "Sanskrit verbs categorized by future type.",
parents = {{name = "verbs by inflection type", sort = "future"}},
breadcrumb = "future types"
}
labels["verbs with periphrastic future"] = {
description = "Sanskrit verbs with periphrastic future.",
parents = {{name = "verbs by future type", sort = "periphrastic"}},
breadcrumb = "periphrastic future"
}
labels["verbs with s-future"] = {
description = "Sanskrit verbs with s-future.",
parents = {{name = "verbs by future type", sort = "s"}},
breadcrumb = "s-future"
}
labels["future verbs"] = {
description = "Sanskrit {{w|Sanskrit_verbs#Future_system|future system}} verbs.",
parents = {{name = "verbs"}},
breadcrumb = "future verbs"
}
labels["perfect verbs"] = {
description = "Sanskrit {{w|Sanskrit_verbs#Perfect_system|perfect system}} verbs.",
parents = {{name = "verbs"}},
breadcrumb = "perfect verbs"
}
labels["aorist verbs"] = {
description = "Sanskrit {{w|Sanskrit_verbs#Aorist_system|aorist system}} verbs.",
parents = {{name = "verbs"}},
breadcrumb = "aorist verbs"
}
labels["benedictive verbs"] = {
description = "Sanskrit {{w|Sanskrit_verbs#Aorist_system|benedictive/precative}} verbs.",
parents = {{name = "verbs"}},
breadcrumb = "benedictive verbs"
}
--------------------------------- Etymology --------------------------------
labels["terms derived from Middle Indo-Aryan by Sanskritization"] = {
description = "Terms derived from various {{w|Middle Indo-Aryan languages}}, such {{w|Prakrit}} and {{w|Pali}} through [[Sanskritization]] (sometimes also called '''hyper-Sanskritization''', '''re-Sanskritization''', or '''hyper-Sanskritism'''). The [[sociolinguistic]] [[prestige]] 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" }}
}
labels["terms with unexpected retroflexion"] = {
description = "Sanskrit terms undergoing unexpected retroflexion.",
parents = {"terms by phonemic property"},
}
labels["terms claimed to undergo Fortunatov's law"] = {
description = "Sanskrit terms claimed to undergo [[w:Fortunatov's law|Fortunatov's law]].",
parents = {"terms by phonemic property"},
}
return {LABELS = labels, HANDLERS = handlers}