Module:qhv-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 158: Line 158:
["unc"] = {type = "boolean"},
["unc"] = {type = "boolean"},
["head"] = {},
["head"] = {},
["det"] = {type = "boolean"}
}
}
local args = require("Module:parameters").process(args, params)
local args = require("Module:parameters").process(args, params)
local isdet = data.pos_category == "determiners"
data.heads = {args["head"]}
data.heads = {args["head"]}
data.pos_category = args["det"] and "determiners" or data.pos_category
table.insert(data.categories, "High Valyrian " .. data.pos_category)
table.insert(data.categories, "High Valyrian " .. data.pos_category)
if args["unc"] or args["det"] then
if args["unc"] or isdet then
table.insert(data.inflections, {label = "not " .. glossary_link("comparable")})
table.insert(data.inflections, {label = "not " .. glossary_link("comparable")})
if not args["det"] then table.insert(data.categories, "High Valyrian uncomparable adjectives") end
if not isdet then table.insert(data.categories, "High Valyrian uncomparable adjectives") end
else
else
args[1] = require("Module:qhv-adj/head").fetch("eq")
args[1] = require("Module:qhv-adj/head").fetch("eq")
Line 185: Line 184:


pos_functions["proper nouns"] = pos_functions.nouns
pos_functions["proper nouns"] = pos_functions.nouns
pos_functions["determiners"] = pos_functions.adjectives


pos_functions.verbs = function(class, args, data)
pos_functions.verbs = function(class, args, data)