48,357
edits
No edit summary |
No edit summary |
||
| Line 79: | Line 79: | ||
local class = frame.args[2]; if class == "" then class = nil end | local class = frame.args[2]; if class == "" then class = nil end | ||
local data = {lang = lang, | local data = { | ||
lang = lang, | |||
heads = {head}, | |||
inflections = {}, | |||
genders = {}, | |||
pos_category = poscat, | |||
categories = {}, | |||
} | |||
if pos_functions[poscat] then | if pos_functions[poscat] then | ||
| Line 90: | Line 97: | ||
pos_functions.nouns = function(class, args, data) | pos_functions.nouns = function(class, args, data) | ||
local params = { | local params = { | ||
[1] = { | [1] = {default = detect_gender(PAGENAME)}, | ||
["gen"] = { | ["nopl"] = {}, | ||
["gen"] = {}, | |||
["pl"] = {}, | ["pl"] = {}, | ||
["head"] = {}, | ["head"] = {}, | ||
} | } | ||
| Line 101: | Line 107: | ||
data.heads = {args["head"]} | data.heads = {args["head"]} | ||
table.insert(data.genders, args[1]) | |||
table.insert(data.categories, "High Valyrian " .. args[1] .. " " .. data.pos_category) | |||
if args[ | if not args["nopl"] then | ||
table.insert(args["gen"], generate_gen_sg(PAGENAME)) | |||
for i, form in ipairs(args[2]) do | for i, form in ipairs(args[2]) do | ||
args[ | args["gen"][i] = {term = form} | ||
end | end | ||
args["gen"].label = "genitive" | |||
table.insert(data.inflections, args["gen"]) | |||
end | end | ||
end | end | ||