Module:Gender and number/data
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Gender and number/data/documentation
local data = {}
-- 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.
data.codes = {
["?"] = {type = "other", display = '<abbr title="gender incomplete">?</abbr>'},
["?!"] = {type = "other", display = '<abbr title="gender unattested">gender unattested</abbr>'},
-- Genders
["m"] = {type = "gender", cat = "masculine POS", display = '<abbr title="masculine gender">m</abbr>'},
["f"] = {type = "gender", cat = "feminine POS", display = '<abbr title="feminine gender">f</abbr>'},
["n"] = {type = "gender", cat = "neuter POS", display = '<abbr title="neuter gender">n</abbr>'},
["c"] = {type = "gender", cat = "common-gender POS", display = '<abbr title="common gender">c</abbr>'},
["gneut"] = {type = "gender", cat = "gender-neutral POS", display = '<abbr title="gender-neutral">gender-neutral</abbr>'},
["w"] = {type = "gender", cat = "wolf-class POS", display = '<abbr title="wolf class">w</abbr>'},
["h"] = {type = "gender", cat = "hare-class POS", display = '<abbr title="hare class">h</abbr>'},
["t"] = {type = "gender", cat = "tooth-class POS", display = '<abbr title="tooth class">t</abbr>'},
-- Class
["air"] = {type = "class", cat = "air-class POS", display = '<abbr title="air class">air</abbr>'},
["Celestial"] = {type = "class", cat = "celestial-class POS", display = '<abbr title="celestial class">celestial</abbr>'},
["earth"] = {type = "class", cat = "earth-class POS", display = '<abbr title="earth class">earth</abbr>'},
["fire"] = {type = "class", cat = "fire-class POS", display = '<abbr title="fire class">fire</abbr>'},
["greater"] = {type = "class", cat = "greater-class POS", display = '<abbr title="greater class">greater</abbr>'},
["lesser"] = {type = "class", cat = "lesser-class POS", display = '<abbr title="lesser class">lesser</abbr>'},
["sentient"] = {type = "class", cat = "sentient-class POS", display = '<abbr title="sentient class">sentient</abbr>'},
["water"] = {type = "class", cat = "water-class POS", display = '<abbr title="water class">water</abbr>'},
-- Animacy
["an"] = {type = "animacy", cat = "animate POS", display = '<abbr title="animate">anim</abbr>'},
["in"] = {type = "animacy", cat = "inanimate POS", display = '<abbr title="inanimate">inan</abbr>'},
-- Animal (for Ukrainian, Belarusian, Polish)
["anml"] = {type = "animacy", cat = "animal POS", display = '<abbr title="animal">animal</abbr>'},
-- Personal (for Ukrainian, Belarusian, Polish)
["pr"] = {type = "animacy", cat = "personal POS", display = '<abbr title="personal">pers</abbr>'},
-- Nonpersonal not currently used
["np"] = {type = "animacy", cat = "nonpersonal POS", display = '<abbr title="nonpersonal">npers</abbr>'},
-- Virility (for Polish)
["vr"] = {type = "virility", cat = "virile POS", display = '<abbr title="virile">vir</abbr>'},
["nv"] = {type = "virility", cat = "nonvirile POS", display = '<abbr title="nonvirile">nvir</abbr>'},
-- Numbers
["s"] = {type = "number", display = '<abbr title="singular number">sg</abbr>'},
["d"] = {type = "number", cat = "dualia tantum", display = '<abbr title="dual number">du</abbr>'},
["p"] = {type = "number", cat = "pluralia tantum", display = '<abbr title="plural number">pl</abbr>'},
-- Verb qualifiers
["impf"] = {type = "aspect", cat = "imperfective POS", display = '<abbr title="imperfective aspect">impf</abbr>'},
["pf"] = {type = "aspect", cat = "perfective POS", display = '<abbr title="perfective aspect">pf</abbr>'},
["Cfin"] = {type = "inflection type", cat = "consonant-final POS", display = '<abbr title="consonant-final">c-fin</abbr>'},
["Vfin"] = {type = "inflection type", cat = "vowel-final POS", display = '<abbr title="vowel-final">v-fin</abbr>'},
}
-- 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.
data.combinations = {
["mf"] = {codes = {"m", "f"}},
["mfequiv"] = {codes = {"m", "f"}, display = '<abbr title="different genders do not affect the meaning">same meaning</abbr>'},
["mfbysense"] = {codes = {"m", "f"}, cat = "masculine and feminine POS by sense",
display = '<abbr title="according to the gender of the referent">by sense</abbr>'},
["biasp"] = {codes = {"impf", "pf"}},
}
-- 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 = {
["gender"] = "POS with multiple genders",
["animacy"] = "POS with multiple animacies",
["aspect"] = "biaspectual POS",
}
return data