Модул:category tree/poscatboiler/data/terms by lexical property
Script error: The function "main" does not exist.
local labels = {}
local raw_categories = {}
local handlers = {}
local insert = table.insert
-----------------------------------------------------------------------------
-- --
-- LABELS --
-- --
-----------------------------------------------------------------------------
labels["термини по лексичкој својини"] = {
description = "{{{langname}}} terms categorized by properties relating to spelling, pronunciation or meaning.",
umbrella_parents = "Почетак",
parents = {{name = "{{{langcat}}}", raw = true}}
}
labels["autohyponyms"] = {
description = "{{{langname}}} terms that have at least two meanings, one of which is a hyponym of the other.",
parents = {"термини по лексичкој својини"},
}
labels["character counts"] = {
description = "{{{langname}}} terms categorized by their quantities of characters.",
parents = {"термини по правописној својини"},
}
labels["contranyms"] = {
description = "{{{langname}}} terms that have two opposite meanings.",
parents = {"термини по лексичкој својини"},
}
labels["double negatives"] = {
description = "{{{langname}}} terms which include a [[double negative]], either etymologically or in a definition.",
parents = {"термини по лексичкој својини"},
}
labels["heteronyms"] = {
description = "{{{langname}}} terms that have different meanings depending on their etymology and/or on how they are pronounced.",
parents = {"термини по лексичкој својини"},
}
labels["nuqtaless forms"] = {
description = "{{{langname}}} terms that are spelled without a [[nuqta]].",
parents = {"термини по правописној својини"},
}
labels["палиндроми"] = {
description = "{{{langname}}} terms whose characters are read equally both from left to right and vice versa, normally ignoring spaces, [[diacritic]]s and punctuation.",
parents = {"изрази по својим појединачним карактерима"},
}
labels["pleonastic compounds"] = {
description = "{{{langname}}} compound terms where the head is a hyponym of its other part and whose other part is its synonym.",
parents = {"термини по лексичкој својини", "compound terms"},
}
labels["pleonastic compound adjectives"] = {
description = "{{{langname}}} compound adjectives where the head is a hyponym of its other part and whose other part is its synonym.",
parents = {"pleonastic compounds", "compound adjectives"},
}
labels["pleonastic compound nouns"] = {
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 = {"pleonastic compounds", "compound nouns"},
}
labels["pronunciation spellings"] = {
description = "{{{langname}}} terms spelled to represent a pronunciation, often a nonstandard one.",
parents = {"термини по правописној својини"},
}
labels["tautophrases"] = {
description = "{{{langname}}} phrases that repeat the same idea or concept using the same words.",
parents = {"термини по лексичкој својини"},
}
labels["термини по правописној својини"] = {
description = "{{{langname}}} terms categorized by properties relating to [[orthography]] or [[spelling]].",
parents = {"термини по лексичкој својини"},
}
labels["calculator words"] = {
description = "{{{langname}}} terms that can be spelled on a [[seven-segment]] display, as found on pocket calculators, by turning numbers upside-down.",
parents = {"термини по правописној својини"},
}
labels["речи по броју слогова"] = {
description = "{{{langname}}} words categorized by number of syllables.",
parents = {"термини по фонемском својству"},
}
labels["изрази по својим појединачним карактерима"] = {
description = "{{{langname}}} terms categorized by whether they include certain individual characters.",
parents = {"термини по правописној својини"},
}
labels["terms by their sequences of characters"] = {
description = "{{{langname}}} terms categorized by whether they include certain sequences of characters.",
parents = {"термини по правописној својини"},
}
labels["термини са узастопним инстанцама истог слова"] = {
description = "{{{langname}}} words categorized by the number of consecutive instances of the same letter they contain.",
parents = {"термини по правописној својини"},
}
labels["terms containing italics"] = {
description = "{{{langname}}} terms containing [[italics]].",
parents = {"термини по правописној својини"},
}
labels["terms containing Roman numerals"] = {
description = "{{{langname}}} terms containing [[Roman numeral]]s.",
parents = {"термини по правописној својини"},
}
labels["terms with mixed convergence"] = {
description = "{{{langname}}} terms where the spelling represents a variant pronunciation that differs from (one of) the current standard pronunciation(s).",
parents = {"термини по правописној својини", "terms by phonemic property"},
}
labels["terms with homophones"] = {
description = "{{{langname}}} terms that have one or more [[homophones]]: other terms that are pronounced in the same way but spelled differently.",
parents = {"термини по лексичкој својини"},
}
labels["terms where the adjective follows the noun"] = {
description = "{{{langname}}} terms where the adjective follows the noun. These adjectives within these terms are sometimes referred to as postpositive or postnominal adjectives.",
parents = {"термини по правописној својини"},
}
labels["terms written in foreign scripts"] = {
description = "{{{langname}}} terms that are written in a different, non-native script.",
parents = {"термини по правописној својини"},
}
labels["terms written in multiple scripts"] = {
description = "{{{langname}}} terms that are written using more than one script.",
parents = {"термини по правописној својини"},
}
labels["one-letter words"] = {
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 = "character counts", sort = "1"},
}
labels["two-letter words"] = {
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 = "character counts", sort = "2"},
}
labels["three-letter words"] = {
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 = "character counts", sort = "3"},
}
labels["two-letter abbreviations"] = {
description = "{{{langname}}} abbreviations composed of exactly two letters.",
parents = {name = "character counts", sort = "2"},
}
labels["three-letter abbreviations"] = {
description = "{{{langname}}} abbreviations composed of exactly three letters.",
parents = {name = "character counts", sort = "3"},
}
labels["four-letter abbreviations"] = {
description = "{{{langname}}} abbreviations composed of exactly four letters.",
parents = {name = "character counts", sort = "4"},
}
labels["five-letter abbreviations"] = {
description = "{{{langname}}} abbreviations composed of exactly five letters.",
parents = {name = "character counts", sort = "5"},
}
labels["термини по фонемском својству"] = {
description = "{{{langname}}} terms categorized by properties relating to [[pronunciation]] and [[phonemics]].",
parents = {"термини по лексичкој својини"},
}
-- Add 'umbrella_parents' key if not already present.
for _, 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 terms categorized by their lexical properties, such as palindromes and number of letters or syllables in a word.",
additional = "{{{umbrella_meta_msg}}}",
parents = {
"Кишобран метакатегорија",
{name = "термини по лексичкој својини", is_label = true, sort = " "},
},
}
raw_categories["Речи по броју слогова подкатегорије по језику"] = {
description = "Umbrella categories covering topics related to words categorized by their number of syllables.",
additional = "{{{umbrella_meta_msg}}}",
parents = {
"Кишобран метакатегорија",
{name = "речи по броју слогова", is_label = true, sort = " "},
},
}
raw_categories["Термини са узастопним инстанцама истог слова подкатегорије по језику"] = {
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 = {
"Кишобран метакатегорија",
{name = "термини са узастопним инстанцама истог слова", is_label = true, sort = " "},
},
}
-----------------------------------------------------------------------------
-- --
-- HANDLERS --
-- --
-----------------------------------------------------------------------------
insert(handlers, function(data)
local number = data.label:match("^([1-9]%d*)%-слог речи$")
if not number then
return
end
return {
description = "{{{langname}}} words that are pronounced in " .. number .. " слог" .. (number == "1" and "" or "а") .. ".",
breadcrumb = number,
umbrella_parents = "Речи по броју слогова подкатегорије по језику",
parents = {{
name = "речи по броју слогова",
sort = ("#%03d"):format(number),
}}
}
end)
insert(handlers, function(data)
local number = data.label:match("^термини са ([1-9]%d*) узастопним инстанцама истог слова$")
if not number then
return
end
return {
description = "{{{langname}}} terms containing " .. number .. " consecutive instances of the same letter.",
breadcrumb = number,
umbrella_parents = "Термини са узастопним инстанцама истог слова подкатегорије по језику",
parents = {{
name = "термини са узастопним инстанцама истог слова",
sort = ("#%03d"):format(number),
}}
}
end)
return {LABELS = labels, RAW_CATEGORIES = raw_categories, HANDLERS = handlers}