Pergi ke kandungan

Modul:category tree/poscatboiler/data/terms by lexical property

Daripada Wikikamus

Submodul data ini mentakrifkan sebahagian daripada struktur kategori Wikikamus.

Untuk pengenalan kepada sistem poscatboiler dan penerangan tentang cara menambah atau mengubah suai kategori, lihat Modul:category tree/poscatboiler/data/doc.


local labels = {}
local raw_categories = {}
local handlers = {}

local insert = table.insert



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

labels["kata mengikut sifat leksikal"] = {
	description = "{{{langname}}} terms categorized by properties relating to spelling, pronunciation or meaning.",
	umbrella_parents = "Asas",
	parents = {{name = "{{{langcat}}}", raw = true}}
}

labels["autohiponim"] = {
	description = "{{{langname}}} terms that have at least two meanings, one of which is a hyponym of the other.",
	parents = {"kata mengikut sifat leksikal"},
}

labels["bilangan askara"] = {
	description = "{{{langname}}} terms categorized by their quantities of characters.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kontranim"] = {
	description = "{{{langname}}} terms that have two opposite meanings.",
	parents = {"kata mengikut sifat leksikal"},
}

labels["negatif berganda"] = {
	description = "{{{langname}}} terms which include a [[double negative]], either etymologically or in a definition.",
	parents = {"kata mengikut sifat leksikal"},
}

labels["heteronim"] = {
	description = "{{{langname}}} terms that have different meanings depending on their etymology and/or on how they are pronounced.",
	parents = {"kata mengikut sifat leksikal"},
}

labels["bentuk tanpa nuqta"] = {
	description = "{{{langname}}} terms that are spelled without a [[nuqta]].",
	parents = {"kata mengikut sifat ortografi"},
}

labels["bentuk tidak berhamzah"] = {
	description = "{{{langname}}} terms that are spelled without a [[hamza]].",
	parents = {"kata mengikut sifat ortografi"},
}

labels["palindrom"] = {
	description = "{{{langname}}} terms whose characters are read equally both from left to right and vice versa, normally ignoring spaces, [[diacritic]]s and punctuation.",
	parents = {"terms by their sequences of characters"},
}

labels["kata majmuk pleonastik"] = {
	description = "{{{langname}}} compound terms where the head is a hyponym of its other part and whose other part is its synonym.",
	parents = {"kata mengikut sifat leksikal", "kata majmuk"},
}

labels["kata sifat majmuk pleonastik"] = {
	description = "{{{langname}}} compound adjectives where the head is a hyponym of its other part and whose other part is its synonym.",
	parents = {"kata majmuk pleonastik", "compound adjectives"},
}

labels["kata nama majmuk pleonastik"] = {
	description = "{{{langname}}} compound nouns where the head is a hyponym of its other part and where the head is the synonym for the whole.",
	parents = {"kata majmuk pleonastik", "kata nama majmuk"},
}

labels["ejaan sebutan"] = {
	description = "{{{langname}}} terms spelled to represent a pronunciation, often a nonstandard one.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["tautofrasa"] = {
	description = "{{{langname}}} phrases that repeat the same idea or concept using the same words.",
	parents = {"kata mengikut sifat leksikal"},
}

labels["kata mengikut sifat ortografi"] = {
	description = "{{{langname}}} terms categorized by properties relating to [[orthography]] or [[spelling]].",
	parents = {"kata mengikut sifat leksikal"},
}

labels["perkataan kalkulator"] = {
	description = "{{{langname}}} terms that can be spelled on a [[seven-segment]] display, as found on pocket calculators, by turning numbers upside-down.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kata mengikut bilangan suku kata"] = {
	description = "{{{langname}}} words categorized by number of syllables.",
	parents = {"kata mengikut sifat fonemik"},
}

labels["kata mengikut aksara individu"] = {
	description = "{{{langname}}} terms categorized by whether they include certain individual characters.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kata mengikut susunan askara"] = {
	description = "{{{langname}}} terms categorized by whether they include certain sequences of characters.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kata dengan kehadiran huruf yang sama berturut-turut"] = {
	description = "{{{langname}}} words categorized by the number of consecutive instances of the same letter they contain.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kata mengandungi huruf condong"] = {
	description = "{{{langname}}} terms containing [[italics]].",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kata mengandungi angka Romawi"] = {
	description = "{{{langname}}} terms containing [[Roman numeral]]s.",
	parents = {"kata mengikut sifat ortografi", "kata dieja dengan nombor"},
}

labels["kata dengan penumpuan campuran"] = {
	description = "{{{langname}}} terms where the spelling represents a variant pronunciation that differs from (one of) the current standard pronunciation(s).",
	parents = {"kata mengikut sifat ortografi", "terms by phonemic property"},
}

labels["kata mengikut homofon"] = {
	description = "{{{langname}}} terms that have one or more [[homophones]]; other terms that are pronounced equally but spelled differently.",
	parents = {"kata mengikut sifat leksikal"},
}

labels["kata dengan transposisi kehormat"] = {
	description = "{{{langname}}} compound terms where the written order of the elements is reversed due to [[honorific transposition]].",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kata dengan kata sifat mengikuti kata nama"] = {
	description = "{{{langname}}} terms where the adjective follows the noun. These adjectives within these terms are sometimes referred to as postpositive or postnominal adjectives.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kata ditulis dengan tulisan asing"] = {
	description = "{{{langname}}} terms that are written in a different, non-native script.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["kata ditulis dengan berbilang jenis tulisan"] = {
	description = "{{{langname}}} terms that are written using more than one script.",
	parents = {"kata mengikut sifat ortografi"},
}

labels["perkataan satu huruf"] = {
	description = "{{{langname}}} individual words consisting of exactly one letter. They have meaning(s) other than their letter or the shape of their letter which are not abbreviations, names, numbers or symbols.",
	parents = {name = "bilangan aksara", sort = "1"},
}

labels["perkataan dua huruf"] = {
	description = "{{{langname}}} individual words composed of exactly two letters. They have meaning(s) beyond their component letters that are neither names nor abbreviations.",
	parents = {name = "bilangan aksara", sort = "2"},
}

labels["perkataan tiga huruf"] = {
	description = "{{{langname}}} individual words composed of exactly three letters. They have meaning(s) beyond their component letters that are neither names nor abbreviations.",
	parents = {name = "bilangan askara", sort = "3"},
}

labels["singkatan dua huruf"] = {
	description = "{{{langname}}} abbreviations composed of exactly two letters.",
	parents = {name = "bilangan aksara", sort = "2"},
}

labels["singkatan tiga huruf"] = {
	description = "{{{langname}}} abbreviations composed of exactly three letters.",
	parents = {name = "bilangan askara", sort = "3"},
}

labels["singkatan empat huruf"] = {
	description = "{{{langname}}} abbreviations composed of exactly four letters.",
	parents = {name = "bilangan askara", sort = "4"},
}

labels["singkatan lima huruf"] = {
	description = "{{{langname}}} abbreviations composed of exactly five letters.",
	parents = {name = "bilangan askara", sort = "5"},
}

labels["kata mengikut sifat fonemik"] = {
	description = "{{{langname}}} terms categorized by properties relating to [[pronunciation]] and [[phonemics]].",
	parents = {"kata mengikut sifat leksikal"},
}


-- Add 'umbrella_parents' key if not already present.
for _, data in pairs(labels) do
	if not data.umbrella_parents then
		data.umbrella_parents = "Subkategori kata mengikut sifat leksikal mengikut bahasa"
	end
end


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


raw_categories["Subkategori kata mengikut sifat leksikal mengikut bahasa"] = {
	description = "Umbrella categories covering topics related to terms categorized by their lexical properties, such as palindromes and number of letters or syllables in a word.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Metakategori payung",
		{name = "kata mengikut sifat leksikal", is_label = true, sort = " "},
	},
}


raw_categories["Subkategori kata mengikut bilangan suku kata mengikut bahasa"] = {
	description = "Umbrella categories covering topics related to words categorized by their number of syllables.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Metakategori payung",
		{name = "kata mengikut bilangan suku kata", is_label = true, sort = " "},
	},
}

raw_categories["Subkategori kata dengan kehadiran huruf sama berturut-turut mengikut bahasa"] = {
	description = "Umbrella categories covering topics related to terms categorized by the number of consecutive instances of the same letter they contain.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Metakategori payung",
		{name = "kata dengan kehadiran huruf sama berturut-turut", is_label = true, sort = " "},
	},
}


-----------------------------------------------------------------------------
--                                                                         --
--                                 HANDLERS                                --
--                                                                         --
-----------------------------------------------------------------------------


insert(handlers, function(data)
	local number = data.label:match("^kata dengan ([1-9]%d*) suku kata $")
	if not number then
		return
	end
	return {
		description = "Perkataan bahasa {{{langname}}} yang disebut dengan " .. number .. " suku kata " .. (number == "1" and "" or "s") .. ".",
		breadcrumb = number,
		umbrella_parents = "Subkategori kata mengikut bilangan suku kata mengikut bahasa",
		parents = {{
			name = "kata mengikut bilangan suku kata",
			sort = ("#%03d"):format(number),
		}}
	}
end)

insert(handlers, function(data)
	local number = data.label:match("^kata dengan kehadiran huruf sama ([1-9]%d*) kali berturut-turut$")
	if not number then
		return
	end
	return {
		description = "{{{langname}}} terms containing " .. number .. " consecutive instances of the same letter.",
		breadcrumb = number,
		umbrella_parents = "Subkategori kata dengan kehadiran huruf sama berturut-turut mengikut bahasa",
		parents = {{
			name = "kata dengan kehadiran huruf sama berturut-turut",
			sort = ("#%03d"):format(number),
		}}
	}
end)


return {LABELS = labels, RAW_CATEGORIES = raw_categories, HANDLERS = handlers}