Module:Category tree/poscatboiler/data/words by number of syllables: Difference between revisions

From The Languages of David J. Peterson
Jump to navigation Jump to search
(Created page with "local labels = {} local handlers = {} labels["words by number of syllables"] = { description = "{{{langname}}} words categorized by number of syllables.", fundamental = "Te...")
 
(No difference)

Revision as of 00:07, 18 January 2020

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}