Module:Category tree/poscatboiler/data/lang-specific/odt
This module handles generating the descriptions and categorization for 古荷蘭語 category pages of the format "古荷蘭語 LABEL" where LABEL can be any text. Examples are Category:Bulgarian conjugation 2.1 verbs and Category:Russian velar-stem neuter-form nouns. 該模块是 poscatboiler 系統的一部分,該系統是用於生成分類頁面的描述和分類的通用框架。
有關更多資訊,請參閱Module:category tree/poscatboiler/data/lang-specific/doc。
注意:如果您新增了特定語言的模块,請將語言代碼新增至 Module:category tree/poscatboiler/data/lang-specific 頂部的清單中,使程式碼能識別該模块。
local labels = {}
local handlers = {}
local insert = table.insert
labels["依派生類型分類的荷蘭語動詞"] = {
parents = {{ name = "動詞", sort = "derivation" }},
breadcrumb = "依派生類型分類",
}
labels["可分動詞"] = {
description = "在某些結構中分為兩部分的{{{langname}}}動詞。",
parents = "依派生類型分類的荷蘭語動詞",
breadcrumb = "可分",
}
labels["基本動詞"] = {
description = "不帶前綴且不能拆分的{{{langname}}}動詞。",
parents = "依派生類型分類的荷蘭語動詞",
breadcrumb = "基本",
}
labels["帶前綴動詞"] = {
parents = "依派生類型分類的荷蘭語動詞",
breadcrumb = "帶前綴",
}
labels["縮約動詞"] = {
-- add a description
parents = {
"依屈折分類的動詞",
"不規則動詞",
},
breadcrumb = "縮約",
}
labels["不規則強變化動詞"] = {
-- add a description
parents = {
"依屈折分類的動詞",
"不規則動詞",
"強變化動詞",
},
breadcrumb = "不規則強變化",
}
labels["維爾納交替動詞"] = {
description = "按照[[w:維爾納定律|維爾納定律]]在輔音之間交替的{{{langname}}}動詞。",
parents = "不規則強變化動詞",
breadcrumb = "維爾納交替",
}
labels["不規則弱變化動詞"] = {
-- add a description
parents = {
"依屈折分類的動詞",
"不規則動詞",
"弱變化動詞",
},
breadcrumb = "不規則弱變化",
}
labels["元音間隙動詞"] = {
-- add a description
parents = {
"依屈折分類的動詞",
"不規則動詞",
},
breadcrumb = "元音間隙",
}
labels["輔音詞幹名詞"] = {
description = "以輔音詞幹結尾的{{{langname}}}名詞。",
parents = "依屈折分類的名詞",
breadcrumb = "輔音",
}
insert(handlers, function (data)
local separable, with = data.label:match("^(separable) verbs with (.+)$")
if separable and with then
return {
description = "{{{langname}}} verbs which separate into " .. with .. " and their stem.",
parents = "可分動詞",
breadcrumb = with,
}
end
end)
labels["5類強變化j-現在時動詞"] = {
description = "現在時帶有 -''j''- 後綴的{{{langname}}}5類強變化動詞。",
parents = {
"5類強變化動詞",
"不規則強變化動詞",
},
breadcrumb = "j-現在時",
}
insert(handlers, function (data)
local class = data.label:match("^([%d])類強變化j%-現在時動詞$")
if class then
return {
description = "現在時帶有 -''j''- 後綴的{{{langname}}}" .. class .. "類強變化動詞。",
parents = {
class .. "類強變化動詞",
"不規則強變化動詞",
},
breadcrumb = "j-現在時",
}
end
end)
insert(handlers, function(data)
local gender, category
for _, g in ipairs({ "陰性", "陽性", "中性" }) do
gender, category = data.label:match("^(" .. g .. ") (.+)$")
if gender then break end
end
category = category or data.label
local stem, POS = category:match("^(.-)%-詞幹(%w+)$")
if stem and POS then
local ret = {
description = "{{{langname}}} " .. (gender or "") .. " " .. POS .. " which decline in historical {{m|odt||-" .. stem .. "}}.",
breadcrumb = (gender and gender .. " " or "") .. "-" .. stem .. "詞幹",
}
if gender then
ret.parents = {
stem .. "-詞幹" .. POS,
"依屈折分類的名詞",
}
else
ret.parents = {
{ name = POS, sort = stem },
{ name = "依屈折分類的名詞", sort = stem },
}
end
return ret
end
end)
return { LABELS = labels, HANDLERS = handlers }