Gaan na inhoud

Module:category tree/poscatboiler/data/words by number of syllables

Vanuit Wiktionary, die vrye woordeboek.

Dokumentasie vir hierdie module kan geskep word by: Module:category tree/poscatboiler/data/words by number of syllables/doc

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}