Modul:gender and number/data
Utsjånad
Dokumentasjon for modulen kan opprettast på Modul:gender and number/data/dok
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 = {
["?"] = '<abbr title="gender incomplete">?</abbr>',
-- Genders
["m"] = {type = "gender", display = '<abbr title="hankjønn">m</abbr>'},
["f"] = {type = "gender", '<abbr title="hokjønn">f</abbr>'},
["n"] = {type = "gender", '<abbr title="inkjekjønn">n</abbr>'},
["c"] = {type = "gender", '<abbr title="samkjønn">c</abbr>'},
-- Additional qualifiers
["an"] = '<abbr title="animat">anim</abbr>',
["in"] = '<abbr title="inanimat">inan</abbr>',
["pr"] = '<abbr title="personleg">pers</abbr>',
["np"] = '<abbr title="ikkje-personleg">npers</abbr>',
-- Numbers
["s"] = '<abbr title="eintal">sg</abbr>',
["d"] = '<abbr title="total">du</abbr>',
["p"] = '<abbr title="fleirtal">pl</abbr>',
-- Verb qualifiers
["impf"] = '<abbr title="imperfective aspect">impf</abbr>',
["pf"] = '<abbr title="perfective aspect">pf</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"}},
["mfbysense"] = {codes = {"m", "f"}, cat = "masculine and feminine POS by sense",
display = '<abbr title="according to the gender of the referent">by sense</abbr>'}
}
-- Categories when multiple gender/number specs of a given type occur in different
data.codetype_cats = {
["gender"] = "POS with multiple genders",
["animacy"] = "POS with multiple animacies",
["aspect"] = "biaspectual POS"
}
return data