Module:Category tree/poscatboiler/data/words by number of syllables: Difference between revisions
(Created page with "local labels = {} local handlers = {} labels["words by number of syllables"] = { description = "{{{langname}}} words categorized by number of syllables.", fundamental = "Te...") |
m (Djp moved page Module:Category tree/poscatboiler/data/terms by number of syllables to Module:Category tree/poscatboiler/data/words by number of syllables without leaving a redirect) |
(No difference)
|
Revision as of 00:07, 18 January 2020
Documentation for this module may be created at Module:Category tree/poscatboiler/data/words by number of syllables/documentation
local labels = {}
local handlers = {}
labels["words by number of syllables"] = {
description = "{{{langname}}} words categorized by number of syllables.",
fundamental = "Terms by lexical property subcategories by language",
parents = {"terms by phonemic property"},
}
table.insert(handlers, function(label)
local number = label:match("^([1-9][0-9]*)%-syllable words$")
if number then
return {
description =
number == "1" and "{{{langname}}} words that are pronounced in " .. number .. " syllable." or
"{{{langname}}} words that are pronounced in " .. number .. " syllables.",
fundamental = "Words by number of syllables subcategories by language",
parents = {{
name = "words by number of syllables",
sort = ("#%02d"):format(number),
}},
}
end
end)
return {LABELS = labels, HANDLERS = handlers}