模組:Category tree/poscatboiler/data/lang-specific/gmw-pro


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 = {}


--------------------------------- Nouns/Pronouns/Numerals --------------------------------

labels["n-詞幹名詞"] = {
	description = "{{{langname}}} ''n''-stem nouns, deriving from Proto-Indo-European ''n''-stem nouns.",
	displaytitle = "{{{langname}}}''n''-詞幹名詞",
	additional = "This is not a single class in Proto-West Germanic, but several related gender-differentiated classes.",
	breadcrumb = "''n''-詞幹",
	parents = {"依屈折分類的名詞"},
}

--[=[
Noun declension specifications. The top-level key is the stem class, and the value is an object containing properties of
the stem class. If the stem class contains the word 'GENDER' in it, it expands into labels both for a parent category
that subsumes several genders (obtained by removing the word 'GENDER' and following whitespace) as well as
gender-specific children categories (obtained by replacing the word 'GENDER' with the genders specified in the
`possible_genders` field). The stem class can contain literal Latin-script text (e.g. suffixes), which will be
italicized in breadcrumbs and titles. The fields of the property object for a given stem class are as follows:
* `gender`: The description of the gender(s) of the stem class. If preceded by ~, the description is preceded by
  "most commonly". This appears in the `additional` field of the label properties. It is not used in gender-specific
  children categories; instead the gender of that category is used.
* `possible_genders`: The possible genders this class occurs in. If this is specified, the word 'GENDER' must occur in
  the stem class, and gender-specific variants of the stem class (with GENDER replaced by the possible genders) are
  handled along with a parent category subsuming all genders. 
* `nom_sg`: The nominative singular ending. Use <...> to enclose literal Latin-script text (e.g. suffixes), which will
  be italicized.
* `GENDER_nom_sg`: The nominative singular ending for the GENDER variant of this stem class. If not specified, the
  value of `nom_sg` is used.
* `gen_sg`: The genitive singular ending. Conventions are the same as for `nom_sg`.
* `GENDER_gen_sg`: The genitive singular ending for the GENDER variant of this stem class. If not specified, the value
  of `gen_sg` is used.
* `nom_pl`: The nominative plural ending. Conventions are the same as for `nom_sg`.
* `GENDER_nom_pl`: The nominative plural ending for the GENDER variant of this stem class. If not specified, the value
  of `nom_pl` is used.
* `breadcrumb`: The breadcrumb for the category, appearing in the trail of breadcrumbs at the top of the page. If this
  stem has gender-specific variants, the breadcrumb specified here is used only for the parent category, while the
  gender-specific child categories use the gender as the breadcrumb. If not specified, it defaults to `sortkey`. If that
  is also not specified, or if the breadcrumb has the value "+", the stem class (without the word 'GENDER') is used.
  (Use "+" when a sortkey is specified but the stem class should be used as the breadcrumb.)
* `parent`: The parent category or categories. If specified, the actual category label is formed by appending the part
  of speech (e.g. "nouns"). Defaults to "POS by inflection type" where POS is the part of speech. Note that
  gender-specific child categories do not use this, but always have the gender-subsuming parent stem class category as
  their parent.
* `sortkey`: The sort key used for sorting this category among its parent's children. Defaults to the stem class
  (without the word 'GENDER'). Note that gender-specific child categories do not use this, but always use the gender
  as the sort key.
]=]
local noun_decls = {
	["GENDER <a>-stem"] = {
		gender = "masculine or neuter",
		possible_genders = {"masculine", "neuter"},
		nom_sg = "the bare stem",
		gen_sg = "<-as>",
		nom_pl = "<-ō> or <-ōs> when masculine, <-u> when neuter",
		masculine_nom_pl = "<-ō> or <-ōs>",
		neuter_nom_pl = "<-u>",
	},
	["GENDER <ja>-stem"] = {
		gender = "masculine or neuter",
		possible_genders = {"masculine", "neuter"},
		nom_sg = "<-ī> after a heavy root, <-i> after a light root",
		gen_sg = "<-ijas> after a heavy root, <-jas> with {{w|West Germanic gemination}} after a light root",
		nom_pl = "when masculine, <-ijō> or <-ijōs> after a heavy root, <-jō> or <-jōs> with {{w|West Germanic gemination}} after a light root; when neuter, <-iju> after a heavy root, <-ju> with {{w|West Germanic gemination}} after a light root",
		masculine_nom_pl = "<-ijō> or <-ijōs> after a heavy root, <-jō> or <-jōs> with {{w|West Germanic gemination}} after a light root",
		neuter_nom_pl = "<-iju> after a heavy root, <-ju> with {{w|West Germanic gemination}} after a light root",
		parent = "<a>-stem",
		addl = "In Proto-Germanic, the endings were the same as that of the <a>-stems, but later sound changes " ..
		"caused the two classes to diverge.",
	},
	["GENDER <wa>-stem"] = {
		gender = "masculine or neuter",
		possible_genders = {"masculine", "neuter"},
		nom_sg = "<-u>",
		gen_sg = "<-was>",
		nom_pl = "<-wō> or <-wōs> when masculine, <-u> when neuter",
		masculine_nom_pl = "<-wō> or <-wōs>",
		neuter_nom_pl = "<-u>",
		parent = "<a>-stem",
		addl = "In Proto-Germanic, the endings were the same as that of the <a>-stems, but later sound changes " ..
		"caused the two classes to diverge.",
	},
	["<i>-stem"] = {
		gender = "masculine, feminine or neuter",
		nom_sg = "<-i>",
		gen_sg = "<-ī>",
		nom_pl = "<-ī>",
		addl = "In Proto-Germanic, the masculine and feminine <i>-stems differed from the neuter <i>-stems in the " ..
		"nominative and accusative, but later sound changes caused the two classes to converge.",
	},
	["GENDER <an>-stem"] = {
		gender = "masculine or rarely neuter",
		possible_genders = {"masculine", "neuter"},
		nom_sg = "<-ō> when masculine, <-ā> when neuter",
		masculine_nom_sg = "<-ō>",
		neuter_nom_sg = "<-ā>",
		gen_sg = "<-ini> or <-an>",
		nom_pl = "<-an> when masculine, <-ōn> when neuter",
		masculine_nom_pl = "<-an>",
		neuter_nom_pl = "<-ōn>",
		parent = "n-stem",
	},
	["<īn>-stem"] = {
		gender = "feminine",
		nom_sg = "<-ī>",
		gen_sg = "<-īn>",
		nom_pl = "unattested",
		parent = "n-stem",
	},
	["<ōn>-stem"] = {
		gender = "feminine",
		nom_sg = "<-ā>",
		gen_sg = "<-ōn>",
		nom_pl = "<-ōn>",
		parent = "n-stem",
	},
	["<u>-stem"] = {
		gender = "masculine, feminine or rarely neuter",
		nom_sg = "<-u>",
		gen_sg = "<-ō>",
		nom_pl = "<-iwi> or <-ō> when masculine or feminine, unattested when neuter",
	},
	["consonant stem"] = {
		gender = "masculine, feminine or rarely neuter",
		nom_sg = "the bare stem",
		gen_sg = "<-i> (with {{w|Germanic umlaut}} of roots in <-e->)",
		nom_pl = "<-i> (with {{w|Germanic umlaut}} of roots in <-e->)",
	},
	["<r>-stem"] = {
		gender = "masculine or feminine",
		nom_sg = "<-er>",
		gen_sg = "?",
		nom_pl = "?",
	},
	["<z>-stem"] = {
		gender = "neuter",
		nom_sg = "the bare stem",
		gen_sg = "<-iʀi> (with {{w|Germanic umlaut}} of roots in <-e->)",
		nom_pl = "<-iʀu> (with {{w|Germanic umlaut}} of roots in <-e->)",
	},
	["<ō>-stem"] = {
		gender = "feminine",
		nom_sg = "<-u>",
		gen_sg = "<-ā>",
		nom_pl = "<-ō>",
	},
	["<ī>/<jō>-stem"] = {
		gender = "feminine",
		nom_sg = "<-ī>",
		gen_sg = "<-ijā> after a heavy root, <-jā> with {{w|West Germanic gemination}} after a light root",
		nom_pl = "<-ijō> after a heavy root, <-jō> with {{w|West Germanic gemination}} after a light root",
		parent = "<ō>-stem",
	},
	["<wō>-stem"] = {
		gender = "feminine",
		nom_sg = "<-u>",
		gen_sg = "<-wā>",
		nom_pl = "<-wō>",
		parent = "<ō>-stem",
		addl = "In Proto-Germanic, the endings were the same as that of the <ō>-stems, but later sound changes " ..
		"caused the two classes to diverge.",
	},
}

require("Module:category tree/poscatboiler/utilities").add_inflection_labels {
	labels = labels,
	pos = "noun",
	stem_classes = noun_decls,
	principal_parts = {
		{"nom_sg", "nominative singular"},
		{"gen_sg", "genitive singular"},
		{"nom_pl", "nominative plural"},
	},
	addl = "The stem classes are named from the perspective of [[:Category:Proto-Germanic language|Proto-Germanic]] " ..
	"and may not still be visible in {{{langname}}} inflections.",
}

return {LABELS = labels}