Module:gender and number/data

Hello, you have come here looking for the meaning of the word Module:gender and number/data. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:gender and number/data, but we will also tell you about its etymology, its characteristics and you will know how to say Module:gender and number/data in singular and plural. Everything you need to know about the word Module:gender and number/data you have here. The definition of the word Module:gender and number/data will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:gender and number/data, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local data = {}

local insert = table.insert

-- A list of all possible "parts" that a specification can be made out of. For each part, we list the class it's in
-- (gender, animacy, etc.), the associated category (if any) and the display form. In a given gender/number spec, only
-- one part of each class is allowed. `display` is how the code is diplayed to the user and should normally be wrapped
-- in <abbr title="tooltip">...</abbr> with an explanatory tooltip. If not, it will automatically be wrapped in this
-- fashion. If `req` is true, a category "Requests for TYPE in LANG entries" will be generated, except for the code "?",
-- which is special-cased; TYPE is "gender" unless the POS is "verb", in which case it is "aspect".

data.codes = {
	 = {type = "other", req = true, display = '<abbr title="gender incomplete">?</abbr>'},
	-- FIXME: The following should be either eliminated in favor of g! or converted to a general "gender/number unattested".
	 = {type = "other", display = "gender unattested"},

-- Genders
	 = {type = "gender", cat = "masculine POS", display = '<abbr title="masculine gender">m</abbr>'},
	 = {type = "gender", cat = "feminine POS", display = '<abbr title="feminine gender">f</abbr>'},
	 = {type = "gender", cat = "neuter POS", display = '<abbr title="neuter gender">n</abbr>'},
	 = {type = "gender", cat = "common-gender POS", display = '<abbr title="common gender">c</abbr>'},
	 = {type = "gender", cat = "gender-neutral POS", display = "gender-neutral"},
	 = {type = "gender", display = "gender unattested"},
	 = {type = "gender", req = true, display = "gender unspecified"},

-- Animacy
	-- Animate = either animal or personal (for Russian, etc.)
	 = {type = "animacy", cat = "animate POS", display = '<abbr title="animate">anim</abbr>'},
	 = {type = "animacy", cat = "inanimate POS", display = '<abbr title="inanimate">inan</abbr>'},
	-- Animal (for Ukrainian, Belarusian, Polish, etc.)
	 = {type = "animacy", cat = "animal POS", display = "animal"},
	-- Personal (for Ukrainian, Belarusian, Polish, etc.)
	 = {type = "animacy", cat = "personal POS", display = '<abbr title="personal">pers</abbr>'},
	 = {type = "animacy", cat = "nonpersonal POS", display = '<abbr title="nonpersonal">npers</abbr>'},
	 = {type = "animacy", display = "animacy unattested"},
	 = {type = "animacy", req = true, display = "animacy unspecified"},

-- Virility (for Polish)
	 = {type = "virility", cat = "virile POS", display = '<abbr title="virile (= masculine personal)">vir</abbr>'},
	 = {type = "virility", cat = "nonvirile POS", display = '<abbr title="nonvirile (= other than masculine personal)">nvir</abbr>'},

-- Numbers
	 = {type = "number", display = '<abbr title="singular number">sg</abbr>'},
	 = {type = "number", cat = "dualia tantum", display = '<abbr title="dual number">du</abbr>'},
	 = {type = "number", cat = "pluralia tantum", display = '<abbr title="plural number">pl</abbr>'},
	 = {type = "number", display = "number unattested"},
	 = {type = "number", req = true, display = "number unspecified"},

-- Verb qualifiers
	 = {type = "aspect", cat = "imperfective POS", display = '<abbr title="imperfective aspect">impf</abbr>'},
	 = {type = "aspect", cat = "perfective POS", display = '<abbr title="perfective aspect">pf</abbr>'},
	 = {type = "aspect", display = "aspect unattested"},
	 = {type = "aspect", req = true, display = "aspect unspecified"},
}

-- Combined codes that are equivalent to giving multiple specs. `mf` is the same as specifying two separate specs,
-- one with `m` in it and the other with `f`. `mfbysense` is similar but is used for nouns that can be either masculine
-- or feminine according as to whether they refer to masculine or feminine beings.
local combinations = {
	 = {codes = {"impf", "pf"}},
}
for _, comb in ipairs{"mf", "fm", "mn", "nm", "fn", "nf", "mfn", "mnf", "fmn", "fnm", "nmf", "nfm"} do
	local codes = {}
	for ch in comb:gmatch(".") do
		insert(codes, ch)
	end
	combinations = {codes = codes}
	combinations = {codes = codes, display = '<abbr title="different genders do not affect the meaning">same meaning</abbr>'}
	if comb == "mf" or comb == "fm" then
		combinations = {codes = codes, cat = "masculine and feminine POS by sense",
			display = '<abbr title="according to the gender of the referent">by sense</abbr>'}
	end
end
data.combinations = combinations

-- Categories when multiple gender/number codes of a given type occur in different specs (two or more of the same type
-- cannot occur in a single spec).
data.multicode_cats = {
	 = "POS with multiple genders",
	 = "POS with multiple animacies",
	 = "biaspectual POS",
}

return data