模組:Category tree/poscatboiler/data/figures of speech/sandbox


此數據子模塊定義了維基詞典分類結構的一部分。

關於poscatboiler系統的介紹以及如何添加或更改分類,請參見Module:category tree/poscatboiler/data/documentation


local labels = {}
local raw_categories = {}



-----------------------------------------------------------------------------
--                                                                         --
--                                  LABELS                                 --
--                                                                         --
-----------------------------------------------------------------------------


labels["修辭手法"] = {
	description = "{{{langname}}} terms whose interpretation is not strictly literal, but are used in figurative ways or for special effect.",
	umbrella_parents = "分类",
	parents = {{name = "{{{langcat}}}", raw = true}},
}

labels["格言"] = {
	description = "{{{langname}}} phrases that convey basic concepts in a manner short and easily memorable.",
	parents = {"修辭手法"},
}

labels["口頭禪"] = {
	description = "{{{langname}}} phrases that are popularized through repeated use.",
	parents = {"修辭手法"},
}

labels["成語"] = {
	description = "{{{langname}}} phrases originating in Classical Chinese, typically four characters in length.",
	parents = {"俗語"},
}

labels["俗語"] = {
	description = "{{{langname}}} phrases understood by subjective, as opposed to literal meanings.",
	parents = {"修辭手法"},
}

labels["隱喻詞"] = {
	description = "{{{langname}}} phrases that invoke a similarity with something else.",
	parents = {"修辭手法"},
}

labels["諺語"] = {
	description = "{{{langname}}} phrases popularly known as representations of common sense.",
	parents = {"修辭手法"},
}

labels["明喻詞"] = {
	description = "{{{langname}}} figures of speech in which one thing is compared to another.",
	parents = {"修辭手法"},
}

labels["snowclones"] = {
	description = "{{{langname}}} clichés using old idioms with varying words in new contexts.",
	parents = {"俗語"},
}


-- Add 'umbrella_parents' key if not already present.
for key, data in pairs(labels) do
	if not data.umbrella_parents then
		data.umbrella_parents = "修辭手法子分類"
	end
end



-----------------------------------------------------------------------------
--                                                                         --
--                              RAW CATEGORIES                             --
--                                                                         --
-----------------------------------------------------------------------------


raw_categories["修辭手法子分類"] = {
	description = "Umbrella categories covering topics related to figures of speech.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Umbrella metacategories",
		{name = "修辭手法", is_label = true, sort = " "},
	},
}


return {LABELS = labels, RAW_CATEGORIES = raw_categories}