Jump to content

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

ពីWiktionary

Documentation for this module may be created at Module:category tree/poscatboiler/data/words by number of syllables/doc

local labels = {}

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"},
	children = {
		{name = "1-syllable words", sort = "#01"},
		{name = "2-syllable words", sort = "#02"},
		{name = "3-syllable words", sort = "#03"},
		{name = "4-syllable words", sort = "#04"},
		{name = "5-syllable words", sort = "#05"},
		{name = "6-syllable words", sort = "#06"},
		{name = "7-syllable words", sort = "#07"},
		{name = "8-syllable words", sort = "#08"},
		{name = "9-syllable words", sort = "#09"},
		{name = "10-syllable words", sort = "#10"},
		{name = "11-syllable words", sort = "#11"},
		{name = "12-syllable words", sort = "#12"},
		{name = "13-syllable words", sort = "#13"},
		{name = "14-syllable words", sort = "#14"},
		{name = "15-syllable words", sort = "#15"},
		{name = "16-syllable words", sort = "#16"},
		{name = "17-syllable words", sort = "#17"},
		{name = "18-syllable words", sort = "#18"},
		{name = "19-syllable words", sort = "#19"},
		{name = "20-syllable words", sort = "#20"},
		{name = "21-syllable words", sort = "#21"},
		{name = "22-syllable words", sort = "#22"},
		{name = "23-syllable words", sort = "#23"},
		{name = "24-syllable words", sort = "#24"},
		{name = "25-syllable words", sort = "#25"},
		{name = "26-syllable words", sort = "#26"},
		{name = "27-syllable words", sort = "#27"},
		{name = "28-syllable words", sort = "#28"},
		{name = "29-syllable words", sort = "#29"},
		{name = "30-syllable words", sort = "#30"},
	},
}

labels["[1-9][0-9]*%-syllable words"] = {
	regex = true,
	description = function(name)
		local number = mw.ustring.match(name, "([1-9][0-9]*)%-syllable words")
		return "{{{langname}}} words spelled with " .. number .. " syllable."
	end,
	fundamental = "Words by number of syllables subcategories by language",
	parents = {{
		name = "words by number of syllables",
		sort = function(name)
			local number = mw.ustring.match(name, "([1-9][0-9]*)%-syllable words")
			return ("#%02d"):format(number)
		end
	}},
}

return labels