This module handles generating the descriptions and categorization for Japanese category pages of the format "Japanese LABEL" where LABEL can be any text. Examples are Category:Bulgarian conjugation 2.1 verbs and Category:Russian velar-stem neuter-form nouns. This module is part of the poscatboiler system, which is a general framework for generating the descriptions and categorization of category pages.
For more information, see Module:category tree/poscatboiler/data/lang-specific/documentation.
NOTE: If you add a new language-specific module, you must add the language code to the list at the top of Module:category tree/poscatboiler/data/lang-specific in order for the module to be recognized.
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 = "godan",
description = "{{{langname}}} godan verbs, which are verbs that follow the five-grade conjugation, or {{ja-r|五%段 活%用|ご%だん かつ%よう}}; also variously known as group 1 verbs, {{lang|ja|う}}-verbs, ]s, ] verbs, ] verbs or consonant-stem verbs.",
parents = {"verbs by inflection type"},
}
labels = {
breadcrumb = "ichidan",
description = "{{{langname}}} ichidan verbs, which are verbs that follow the one-grade conjugation, or {{ja-r|一%段 活%用|いち%だん かつ%よう}}; also variously known as group 2 verbs, {{lang|ja|る}}-verbs, ]s, ] verbs or vowel-stem verbs.",
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 = {"verbs by inflection type"},
}
labels = {
breadcrumb = "kami",
description = "{{{langname}}} kami ichidan verbs, which are verbs that follow the upper one-grade conjugation, or {{ja-r|上 一%段 活%用|かみ いち%だん かつ%よう}}; also known as upper ] verbs.",
additional = [==[These verbs have stems that end with ''-i''.
===See also===
* ]
* ]
]==],
parents = {"ichidan verbs"},
}
labels = {
breadcrumb = "kami",
description = "{{{langname}}} kami nidan verbs in ], which are verbs that follow the upper two-grade conjugation, or {{ja-r|上 二%段 活%用|かみ に%だん かつ%よう}}; also known as upper ] verbs.",
additional = [==[These verbs have stems that alternate between ''-u'' and ''-i'' endings.
===See also===
* ]
]==],
parents = {"nidan verbs"},
}
labels = {
breadcrumb = "kuru",
description = "{{{langname}}} kuru verbs, which includes the irregular verb {{ja-r|来る|くる|to come}} and any compound verbs which end with it.",
parents = {"irregular verbs"},
}
labels = {
breadcrumb = "nidan",
description = "{{{langname}}} nidan verbs in ], which are verbs that follow the two-grade conjugation, or {{ja-r|二%段 活%用|に%だん かつ%よう}}; also known as ] verbs.",
additional = "These are further divided into {{ja-r|上 二%段 活%用|かみ に%だん かつ%よう|upper bigrade conjugation}} verbs, with verb stems that alternate between ''-u'' and ''-i'' endings, and {{ja-r|下 二%段 活%用|しも に%だん かつ%よう|lower bigrade conjugation}} verbs, with verb stems that alternate between ''-u'' and ''-e'' endings.{{pb}}This conjugation is archaic in the modern language, and has been superseded by the ] conjugation.",
parents = {"verbs by inflection type"},
}
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 ] verbs.",
additional = [==[These verbs have stems that end with ''-e''.
===See also===
* ]
* ]
]==],
parents = {"ichidan verbs"},
}
labels = {
breadcrumb = "shimo",
description = "{{{langname}}} shimo nidan verbs in ], which are verbs that follow the lower two-grade conjugation, or {{ja-r|下 二%段 活%用|しも に%だん かつ%よう}}; also known as lower ] verbs.",
additional = [==[These verbs have stems that alternate between ''-u'' and ''-e'' endings.
===See also===
* ]
]==],
parents = {"nidan verbs"},
}
labels = {
breadcrumb = "suru",
description = "{{{langname}}} suru verbs, which includes the irregular verb {{ja-r|する||to do}} and any compound verbs which end with it.",
parents = {"irregular verbs"},
}
labels = {
breadcrumb = "yodan",
description = "{{{langname}}} yodan verbs in ], which are verbs that follow the four-grade conjugation, or {{ja-r|四%段 活%用|よ%だん かつ%よう}}; also known as ] verbs.",
additional = "This conjugation is archaic in the modern language, and has been superseded by the ] conjugation.",
parents = {"verbs by inflection type"},
}
labels = {
breadcrumb = "zuru",
description = "{{{langname}}} zuru verbs, which includes any suru verbs that end with {{ja-r|ずる}}, the ] form of {{ja-r|する||to do}}.",
parents = {"suru verbs"},
}
table.insert(handlers, function(data)
local ending = data.label:match("^godan verbs ending with (%-.-)$")
if not ending then
return
end
local hira_ending, extra, additional, parent, confusable, other
if ending == "-eru" then
hira_ending = "ぇる"
confusable = "shimo ichidan"
other = "-iru"
elseif ending == "-iru" then
hira_ending = "ぃる"
confusable = "kami ichidan"
other = "-eru"
else
hira_ending = kata_to_hira(romaji_to_kata(ending))
extra = "."
parent = "godan verbs"
end
if not extra then
extra = (", which are therefore confusable with ]."):format(confusable, confusable)
additional = ([==[===See also===
* ]
* ]
]==]):format(ending == "-eru" and "-iru" or "-eru", confusable)
parent = "godan verbs ending with -ru"
end
return {
breadcrumb = ending,
description = "{{{langname}}} godan verbs that end with {{ja-r|" .. hira_ending .. "|linkto=-}}" .. extra,
additional = additional,
parents = {parent},
}
end)
table.insert(handlers, function(data)
local ending = data.label:match("^yodan verbs ending with (%-.-)$")
if not ending then
return
end
return {
breadcrumb = ending,
description = "{{{langname}}} godan verbs that end with {{ja-r|" .. kata_to_hira(romaji_to_kata(ending)) .. "|linkto=-}}.",
parents = {"yodan verbs"},
}
end)
-- Phonemic properties
labels = {
breadcrumb = "rendaku",
description = "{{{langname}}} words exhibit ] ({{m|ja|連濁|sc=Jpan}}), a phenomenon in which ] ({{m|ja|濁点|sc=Jpan}}) are added to the first ] of a ] or ] ] in a compound. Phonologically, this means that the initial consonant of the component is ].",
additional = "To add a word to this category, you can use {{temp|ja-rendaku}} or {{temp|ja-kanjitab}}.",
parents = {{name = "terms by phonemic property", sort = "rendaku"}},
}
labels = {
breadcrumb = "renjō",
description = "{{{langname}}} words exhibit ] ({{m|ja|連声}}), a phenomenon in which one of the ]s /m/, /n/ or /t/ is initially added to the first ] (otherwise either having no ] ], or having the glide /j/) of a ] or ] ] in a ], depending on whether the ] mora of the preceding kanji is the ] /N/ (historical /mu/ > modern ; historical > modern ) or /Q/ (historical > modern /tt/).",
additional = "To add a word to this category, you can use {{temp|ja-renjō}}.",
parents = {{name = "terms by phonemic property", sort = "renjō"}},
}
return {LABELS = labels, HANDLERS = handlers}