Jump to content

မေႃႇၵျူး:category tree/poscatboiler/data/words by number of syllables

လုၵ်ႉတီႈ ဝိၵ်ႇသျိၼ်ႇၼရီႇ မႃး

Documentation for this module may be created at မေႃႇၵျူး:category tree/poscatboiler/data/words by number of syllables/doc

local labels = {}
local raw_categories = {}
local handlers = {}



-----------------------------------------------------------------------------
--                                                                         --
--                                  LABELS                                 --
--                                                                         --
-----------------------------------------------------------------------------


labels["words by number of syllables"] = {
	description = "{{{langname}}} words categorized by number of syllables.",
	umbrella_parents = "Terms by lexical property subcategories by language",
	parents = {"terms by phonemic property"},
}



-----------------------------------------------------------------------------
--                                                                         --
--                              RAW CATEGORIES                             --
--                                                                         --
-----------------------------------------------------------------------------


raw_categories["Words by number of syllables subcategories by language"] = {
	description = "Umbrella categories covering topics related to words categorized by their number of syllables.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Umbrella metacategories",
		{name = "words by number of syllables", is_label = true, sort = " "},
	},
}



-----------------------------------------------------------------------------
--                                                                         --
--                                 HANDLERS                                --
--                                                                         --
-----------------------------------------------------------------------------


table.insert(handlers, function(data)
	local number = data.label:match("^([1-9][0-9]*)%-syllable words$")
	if number then
		return {
			description =
				number == "1" and "ၶေႃႈၵႂၢမ်း {{{langname}}} ဢၼ်ဢွၵ်ႇ " .. number .. " သဵင်။" or
					"ၶေႃႈၵႂၢမ်း {{{langname}}} ဢၼ်ဢွၵ်ႇ " .. number .. " သဵင်။",
			breadcrumb = number,
			umbrella_parents = "Words by number of syllables subcategories by language",
			parents = {{
				name = "words by number of syllables",
				sort = ("#%02d"):format(number),
			}},
		}
	end
end)

return {LABELS = labels, RAW_CATEGORIES = raw_categories, HANDLERS = handlers}