This module handles generating the descriptions and categorization for Tagalog category pages of the format "Tagalog 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 native_script = "Baybayin"
labels = {
description = "{{{langname}}} surnames listed at the {{w|Catálogo alfabético de apellidos}}.",
additional = "To add a {{{langname}}} surname to this category, add {{tl|Catálogo alfabético de apellidos|tl}} to a surname entry's Etymology section.",
parents = {{
name = "surnames",
sort = " Catálogo",
}},
}
labels = {
description = "{{{langname}}} terms with inclusion of " .. native_script .. " script.",
parents = {{
name = "terms by script",
sort = native_script,
}},
can_be_empty = true
}
labels = {
description = "{{{langname}}} terms without " .. native_script .. " script set.",
parents = {"entry maintenance"},
hidden = true,
can_be_empty = true
}
labels = {
description = "{{{langname}}} terms with missing " .. native_script .. " script entries.",
parents = {"entry maintenance"},
hidden = true,
can_be_empty = true
}
labels = {
description = "{{{langname}}} terms without either ] or ] to indicate pronunciation.",
parents = {{name = "entry maintenance"}},
hidden = true,
can_be_empty = true
}
labels = {
description = "{{{langname}}} terms where ] was unable to align the syllabified respelling with the pagename to produce a syllabified spelling.",
parents = {{name = "entry maintenance"}},
hidden = true,
can_be_empty = true
}
--------------------------------------- Pronunciation --------------------------------------
labels = {
description = "{{{langname}}} terms with slow and gentle pronunciation characterized by penultimate stress.",
parents = {"terms by phonemic property"},
can_be_empty = true
}
labels = {
description = "{{{langname}}} terms with slow and gentle pronunciation characterized by penultimate stress but glottalized.",
parents = {"terms by phonemic property"},
can_be_empty = true
}
labels = {
description = "{{{langname}}} terms with quick pronunciation characterized by ultimate stress.",
parents = {"terms by phonemic property"},
can_be_empty = true
}
labels = {
description = "{{{langname}}} terms with a forceful pronunciation characterized by ultimate stress but glottalized.",
parents = {"terms by phonemic property"},
can_be_empty = true
}
-- Superseded forms --
table.insert(handlers, function(data)
local year = data.label:match("^pre%-(.+) forms$")
local year_list = {
= "Tagalog spellings of words affected by the spelling reform introduced in ''Mga Batayang Tuntuning Sinusunod sa Pagsusuring Aklat'' by the Institute of the National Language (''Surian ng Wikang Pambansa'' or SWP). See more at ].",
= "Tagalog spellings of words affected by the spelling reform in 2007, with the publication of the 2007 revision to the ''Ortograpiya ng Wikang Pambansa'' by the ''Komisyon sa Wikang Filipino'' (KWF, {{m-g|Commission on the Filipino Language}}). These spellings were standard forms before 1977 and variant forms between 1987 and 2007. See more at ].",
= "Tagalog spellings of words affected by the spelling reform of 2013–2014, with the publication of the 2013 ''Ortograpiyang Pambansa'' and the and the 2014 ''Manwal sa Masinop na Pagsulat'' by the ''Komisyon sa Wikang Filipino'' (KWF, {{m-g|Commission on the Filipino Language}}). Spellings listed here are not necessarily considered nonstandard, but their use is generally discouraged in formal writing. See more at ]."
}
if not year then
return
end
local desc = year_list
if not desc then
return
end
return {
description = desc,
parents = {{
name = "superseded forms",
sort = year
}},
}
end)
-- Apheretic forms --
labels = {
description = "{{{langname}}} words that underwent {{lg|apheresis}}, thus their origin involved a removal of a letter or sound from the beginning.",
parents = {"clippings", "terms by etymology"},
}
--------------------------------------- Verbs --------------------------------------
local verb_types = {
= {
desc = "prefixed with {{m|tl|um-}} or infixed with {{m|tl|-um-}}",
cat = {"terms prefixed with um-", "terms infixed with -um-"},
},
= {
desc = "prefixed with {{m|tl|mag-}}",
},
= {
desc = "prefixed with {{m|tl|mang-}}, which assimilates to {{m|tl|man-}} before ] consonants and {{m|tl|mam-}} before ] consonants; or sometimes prefixed with {{m|tl|ma-}}",
cat = {"terms prefixed with mang-"},
},
= {
desc = "prefixed with {{m|tl|ma-}}",
},
= {
desc = "prefixed with {{m|tl|maka-}}",
},
= {
desc = "prefixed with {{m|tl|makapag-}}",
},
= {
desc = "prefixed with {{m|tl|maki-}}",
},
= {
desc = "prefixed with {{m|tl|magma-}}",
},
= {
desc = "prefixed with {{m|tl|magpa-}}",
},
= {
desc = "circumfixed with {{m|tl|pa- -in}}",
},
= {
desc = "circumfixed with {{m|tl|papag- -in}}",
},
= {
desc = "circumfixed with {{m|tl|papang- -in}}",
},
= {
desc = "suffixed with {{m|tl|-in}}, {{m|tl|-hin}}, {{m|tl|-nin}} or {{m|tl|-rin}}",
cat = {"terms suffixed with -in", "terms suffixed with -hin", "terms suffixed with -nin", "terms suffixed with -rin"},
},
= {
desc = "suffixed with {{m|tl|-an}}",
},
= {
desc = "prefixed with {{m|tl|i-}}",
},
= {
desc = "prefixed with {{m|tl|ipag-}}",
},
= {
desc = "circumfixed with {{m|tl|pag- -an}}",
},
= {
desc = "prefixed with {{m|tl|ipang-}}",
},
= {
desc = "circumfixed with {{m|tl|pang- -an}}",
},
= {
desc = "circumfixed with {{m|tl|pang- -in}}",
},
= {
desc = "prefixed with {{m|tl|ipa-}}",
},
= {
desc = "circumfixed with {{m|tl|ma- -an}}",
},
= {
desc = "circumfixed with {{m|tl|pa- -an}}",
},
= {
desc = "circumfixed with {{m|tl|pag- -an}}",
},
= {
desc = "circumfixed with {{m|tl|ma- -an}} or {{m|tl|ma- -han}}",
cat = {"terms circumfixed with ma- -an", "terms circumfixed with ma- -han"},
},
-- FIXME! The following is not listed in the documentation for ].
= {
desc = "?",
cat = {},
},
= {
desc = "prefixed with {{m|tl|i-}}",
},
= {
desc = "prefixed with {{m|tl|ipag-}}",
},
= {
desc = "prefixed with {{m|tl|ipang-}}",
},
= {
desc = "prefixed with {{m|tl|ipa-}}",
},
= {
desc = "prefixed with {{m|tl|ipang-}}",
},
= {
desc = "prefixed with {{m|tl|ika-}}",
},
= {
desc = "prefixed with {{m|tl|i-}}",
},
= {
desc = "prefixed with {{m|tl|ikapag-}}",
},
= {
desc = "prefixed with {{m|tl|ipag-}}",
},
= {
desc = "prefixed with {{m|tl|ikapang-}}",
},
= {
desc = "prefixed with {{m|tl|ipang-}}",
},
= {
desc = "prefixed with {{m|tl|ika-}}",
},
= {
desc = "suffixed with {{m|tl|-an}}",
},
= {
desc = "suffixed with {{m|tl|-in}}",
},
= {
desc = "circumfixed with {{m|tl|pag- -an}}",
},
= {
desc = "prefixed with {{m|tl|ma-}}",
},
= {
desc = "circumfixed with {{m|tl|pang- -an}}",
},
= {
desc = "circumfixed with {{m|tl|ka- -an}}",
},
= {
desc = "circumfixed with {{m|tl|pa- -an}}",
},
= {
desc = "prefixed with {{m|tl|pag- -an}}",
},
= {
desc = "circumfixed with {{m|tl|mag- -an}}",
},
= {
desc = "prefixed with {{m|tl|magka-}}",
},
}
for verb_type, props in pairs(verb_types) do
local parents = props.cat
if not parents then
parents = {"terms " .. props.desc:gsub("{{m|tl|(.-)}}", "%1")}
end
local infl_sort_key = verb_type:gsub("^alternate ", ""):gsub("^++ ", "")
table.insert(parents, 1, {name = "verbs by inflection type", sort = infl_sort_key})
labels = {
description = ("{{{langname}}} %s verbs, %s."):format(verb_type, props.desc),
parents = parents,
breadcrumb = verb_type,
}
end
return {LABELS = labels, HANDLERS = handlers}