local labels = {}
local raw_categories = {}
local handlers = {}
-----------------------------------------------------------------------------
-- --
-- LABELS --
-- --
-----------------------------------------------------------------------------
labels["依音節數分類的詞"] = {
description = "按音節數量分類的{{{langname}}}詞彙。",
umbrella_parents = "詞彙屬性子分類",
parents = {"依音位屬性分類的詞"},
}
-----------------------------------------------------------------------------
-- --
-- RAW CATEGORIES --
-- --
-----------------------------------------------------------------------------
raw_categories["音節數子分類"] = {
description = "Umbrella categories covering topics related to words categorized by their number of syllables.",
additional = "{{{umbrella_meta_msg}}}",
parents = {
"綜合元分類",
{name = "依音節數分類的詞", is_label = true, sort = " "},
},
}
-----------------------------------------------------------------------------
-- --
-- HANDLERS --
-- --
-----------------------------------------------------------------------------
table.insert(handlers, function(data)
local number = data.label:match("^([1-9][0-9]*)音節詞$")
if number then
return {
description = "有" .. number .. "個音節的{{{langname}}}詞。",
breadcrumb = number,
umbrella_parents = "音節數子分類",
parents = {{
name = "依音節數分類的詞",
sort = ("#%02d"):format(number),
}},
}
end
end)
return {LABELS = labels, RAW_CATEGORIES = raw_categories, HANDLERS = handlers}