မဝ်ဂျူ:gender and number/data
Documentation for this module may be created at မဝ်ဂျူ:gender and number/data/doc
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. `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
["m"] = {type = "gender", cat = "POSပုလ္လိင်", display = '<abbr title="ပုလ္လိင်">ပု.</abbr>'},
["f"] = {type = "gender", cat = "POSဣတ္တိလိင်", display = '<abbr title="ဣတ္တိလိင်">ဣ.</abbr>'},
["n"] = {type = "gender", cat = "POSနပုလ္လိင်", display = '<abbr title="နပုလ္လိင်">နပု.</abbr>'},
["c"] = {type = "gender", cat = "POSလိင်-ပံင်ဖနှဴ", display = '<abbr title="လိင်-ပံင်ဖနှဴ">ပံ.</abbr>'},
["gneut"] = {type = "gender", cat = "gender-neutral POS", display = "gender-neutral"},
["g!"] = {type = "gender", display = "gender unattested"},
["g?"] = {type = "gender", req = true, display = "gender unspecified"},
-- Animacy
-- Animate = either animal or personal (for Russian, etc.)
["an"] = {type = "animacy", cat = "POSမြာကၠုင်", display = '<abbr title="မြာကၠုင်">မြာ</abbr>'},
["in"] = {type = "animacy", cat = "POSမသက္ကုဟၟဲကဵုလမျီုနကဵုဘာသာ", display = '<abbr title="မသက္ကုဟၟဲကဵုလမျီု">ဟၟဲသက္ကု</abbr>'},
-- Animal (for Ukrainian, Belarusian, Polish, etc.)
["anml"] = {type = "animacy", cat = "POSသတ်ဇိုင်ပန်", display = "သတ်ဇိုင်ပန်"},
-- Personal (for Ukrainian, Belarusian, Polish, etc.)
["pr"] = {type = "animacy", cat = "POSအဇ္ဇျတ္တိကာ", display = '<abbr title="အဇ္ဇျတ္တိကာ">အဇ္ဇျ</abbr>'},
["np"] = {type = "animacy", cat = "nonpersonal POS", display = '<abbr title="nonpersonal">npers</abbr>'},
["an!"] = {type = "animacy", display = "animacy unattested"},
["an?"] = {type = "animacy", req = true, display = "animacy unspecified"},
-- Virility (for Polish)
["vr"] = {type = "virility", cat = "virile POS", display = '<abbr title="virile (= masculine personal)">vir</abbr>'},
["nv"] = {type = "virility", cat = "nonvirile POS", display = '<abbr title="nonvirile (= other than masculine personal)">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>'},
["num!"] = {type = "number", display = "number unattested"},
["num?"] = {type = "number", req = true, display = "number unspecified"},
-- Verb qualifiers
["impf"] = {type = "aspect", cat = "POSဟွံဍိုက်ပေင်", display = '<abbr title="imperfective aspect">impf</abbr>'},
["pf"] = {type = "aspect", cat = "perfective POS", display = '<abbr title="perfective aspect">pf</abbr>'},
["asp!"] = {type = "aspect", display = "aspect unattested"},
["asp?"] = {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.
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မနွံဂၠိုင်ကဵုလိင်နကဵုဘာသာ",
["animacy"] = "POSမနွံဂၠိုင်ကဵုသတ်လဝီုနကဵုဘာသာ",
["aspect"] = "biaspectual POS",
}
return data