模組:Category tree/poscatboiler/data/lang-specific/ja
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 m_ja = require("Module:ja")
local kata_to_hira = m_ja.kata_to_hira
local romaji_to_kata = m_ja.romaji_to_kata
-- Verbs
labels["五段動詞"] = {
breadcrumb = "五段",
description = "{{{langname}}}中使用{{ja-r|五%段%活%用|ご%だん %かつ%よう}}的動詞。又被稱作第一組動詞或輔音詞幹動詞。",
parents = {"依屈折分類的動詞"},
}
labels["一段動詞"] = {
breadcrumb = "一段",
description = "{{{langname}}}中使用{{ja-r|一%段%活%用|いち%だん %かつ%よう}} 的動詞。又被稱作第二組動詞或元音詞幹動詞。",
additional = "These are further divided into {{ja-r|上 一%段 活%用|かみ いち%だん かつ%よう|upper monograde conjugation}} verbs, with verb stems that end with ''-i'', and {{ja-r|下 一%段 活%用|しも いち%だん かつ%よう|lower monograde conjugation}} verbs, with verb stems that end with ''-e''.",
parents = {"依屈折分類的動詞"},
}
labels["上一段動詞"] = {
breadcrumb = "上一段",
description = "{{{langname}}} kami ichidan verbs, which are verbs that follow the upper one-grade conjugation, or {{ja-r|上 一%段 活%用|かみ いち%だん かつ%よう}}; also known as upper [[monograde]] verbs.",
additional = [==[These verbs have stems that end with ''-i''.
===參見===
* [[:Category:{{{langname}}}下一段動詞]]
* [[:Category:詞尾是「いる」的{{{langname}}}五段動詞]]
]==],
parents = {"一段動詞"},
}
labels["上二段動詞"] = {
breadcrumb = "上二段",
description = "{{{langname}}}中使用{{w|古典日語}}{{ja-r|上 二%段 活%用|かみ に%だん かつ%よう}}的動詞。這種變位在現代語言中已被{{ja-r|一%段 活%用|いち%だん かつ%よう}}所取代。",
additional = [==[These verbs have stems that alternate between ''-u'' and ''-i'' endings.
===參見===
* [[:Category:{{{langname}}}下二段動詞]]
]==],
parents = {"二段動詞"},
}
labels["カ行活用動詞"] = {
breadcrumb = "カ行活用",
description = "{{{langname}}}中所有{{ja-r|カ行 変格 活用|カ-ぎょう へんかく かつよう}} 的動詞,由{{ja-r|来る|くる}} 以及以它結尾的動詞組成。",
parents = {"不規則動詞"},
}
labels["二段動詞"] = {
breadcrumb = "二段",
description = "{{{langname}}}中使用{{w|古典日語}}{{ja-r|二%段 活%用|に%だん かつ%よう}}的動詞。",
additional = "二段動詞又可以進一步分成{{ja-r|上 二%段 活%用|かみ に%だん かつ%よう}}、{{ja-r|下 二%段 活%用|しも に%だん かつ%よう}}兩類,前者的詞幹在 ''-u'' 和 ''-i'' 之間交替,後者的詞幹在 ''-u'' 和 ''-e'' 之間交替。{{pb}}這種變位在現代語言中已被{{ja-r|一%段 活%用|いち%だん かつ%よう}}所取代。",
parents = {"依屈折分類的動詞"},
}
labels["下一段動詞"] = {
breadcrumb = "shimo",
description = "{{{langname}}} shimo ichidan verbs, which are verbs that follow the lower one-grade conjugation, or {{ja-r|下 一%段 活%用|しも いち%だん かつ%よう}}; also known as lower [[monograde]] verbs.",
additional = [==[These verbs have stems that end with ''-e''.
===參見===
* [[:Category:{{{langname}}}上一段動詞]]
* [[:Category:詞尾是「える」的{{{langname}}}五段動詞]]
]==],
parents = {"一段動詞"},
}
labels["下二段動詞"] = {
breadcrumb = "shimo",
description = "{{{langname}}} shimo nidan verbs in [[Classical Japanese]], which are verbs that follow the lower two-grade conjugation, or {{ja-r|下 二%段 活%用|しも に%だん かつ%よう}}; also known as lower [[bigrade]] verbs.",
additional = [==[These verbs have stems that alternate between ''-u'' and ''-e'' endings.
===參見===
* [[:Category:{{{langname}}}上二段動詞]]
]==],
parents = {"二段動詞"},
}
labels["サ行活用動詞"] = {
breadcrumb = "サ行活用",
description = "{{{langname}}}中所有{{ja-r|サ行 変格 活用|サ-ぎょう へんかく かつよう}} 的動詞,由{{ja-r|する}} 以及以它結尾的動詞組成。",
parents = {"不規則動詞"},
}
labels["四段動詞"] = {
breadcrumb = "四段",
description = "{{{langname}}}中使用{{w|古典日語}}{{ja-r|四%段%活%用|よ%だん %かつ%よう}}的動詞。這種動詞活用在現代日語中已被[[:Category:日語五段動詞|五段活用]]取代。",
additional = "This conjugation is archaic in the modern language, and has been superseded by the [[:Category:{{{langname}}} godan verbs|godan]] conjugation.",
parents = {"依屈折分類的動詞"},
}
labels["ずる動詞"] = {
breadcrumb = "ずる",
description = "{{{langname}}} zuru verbs, which includes any suru verbs that end with {{ja-r|ずる}}, the [[rendaku]] form of {{ja-r|する||to do}}.",
parents = {"サ行活用動詞"},
}
table.insert(handlers, function(data)
local ending = data.label:match("^詞尾是「(.-)」的五段動詞$")
if not ending then
return
end
local hira_ending, extra, additional, parent, confusable, other
if ending == "える" then
hira_ending = "ぇる"
confusable = "下一段"
other = "いる"
elseif ending == "いる" then
hira_ending = "ぃる"
confusable = "上一段"
other = "える"
else
hira_ending = kata_to_hira(romaji_to_kata(ending))
extra = "。"
parent = "五段動詞"
end
if not extra then
extra = ("。常被誤認為[[:Category:{{{langname}}}%s動詞|%s動詞]]。"):format(confusable, confusable)
additional = ([==[===參見===
* [[:Category:詞尾是「%s」的{{{langname}}}五段動詞]]
* [[:Category:{{{langname}}}%s動詞]]
]==]):format(ending == "える" and "いる" or "える", confusable)
parent = "詞尾是「る」的五段動詞"
end
return {
breadcrumb = ending,
description = "以{{ja-r|" .. hira_ending .. "|linkto=-}} 結尾的{{{langname}}}五段動詞" .. extra,
additional = additional,
parents = {parent},
}
end)
table.insert(handlers, function(data)
local ending = data.label:match("^詞尾是「(.-)」的四段動詞$")
if not ending then
return
end
return {
breadcrumb = ending,
description = "以{{ja-r|" .. kata_to_hira(romaji_to_kata(ending)) .. "|linkto=-}} 結尾的{{{langname}}}四段動詞",
parents = {"四段動詞"},
}
end)
-- Phonemic properties
labels["有連濁的詞"] = {
breadcrumb = "連濁",
description = "{{{langname}}} words exhibit [[Appendix:日語術語表#rendaku|rendaku]] ({{m|ja|連濁|sc=Jpan}}), a phenomenon in which [[dakuten]] ({{m|ja|濁点|sc=Jpan}}) are added to the first [[mora]] of a [[medial]] or [[final]] [[kanji]] in a compound. Phonologically, this means that the initial consonant of the component is [[voiced]].",
additional = "要將單詞添加到此分類,您可以使用 {{temp|ja-rendaku}}、{{temp|ja-rendaku2}},或在 {{temp|ja-kanjitab}} 中加上參數 <code>|r=y</code>。",
parents = {{name = "依音位屬性分類的詞", sort = "rendaku"}},
}
labels["有連聲的詞"] = {
breadcrumb = "連聲",
description = "{{{langname}}} words exhibit [[Appendix:日語術語表#renjō|renjō]] ({{m|ja|連声}}), a phenomenon in which one of the [[phoneme]]s /m/, /n/ or /t/ is initially added to the first [[mora]] (otherwise either having no [[consonant]] [[onset]], or having the glide /j/) of a [[medial]] or [[final]] [[kanji]] in a [[compound]], depending on whether the [[coda]] mora of the preceding kanji is the [[archiphoneme]] /N/ (historical /mu/ > modern [mm]; historical [ɴ] > modern [nn]) or /Q/ (historical [t̚] > modern /tt/).",
additional = "要將單詞添加到此分類,您可以使用{{temp|ja-renjō}}。",
parents = {{name = "依音位屬性分類的詞", sort = "renjō"}},
}
return {LABELS = labels, HANDLERS = handlers}