Module:head/languages/ryn: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(Created page with "local export = {} local m_head = require("Module:head") local m_head_languages = require("Module:head/languages") local m_parameters = require("Module:parameters") local ryn = require("Module:languages").get_by_code("ryn") local params = { [1] = {list = true}, head = {}, } local inflection_params = { adjective = { du = {label = "dual", glossary = true}, pl = {label = "plural", glossary = true}, cmp = {label = "comparative", glossary = true}, sup = {label = "...")
 
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
local export = {}
return {
 
local m_head = require("Module:head")
local m_head_languages = require("Module:head/languages")
local m_parameters = require("Module:parameters")
local ryn = require("Module:languages").get_by_code("ryn")
 
local params = {
[1] = {list = true},
head = {},
}
local inflection_params = {
adjective = {
adjective = {
du = {label = "dual", glossary = true},
{param = "adv", label = "adverb", glossary = true, auto = "$1?o"},
pl = {label = "plural", glossary = true},
{param = "attr", label = "attributive", glossary = true, auto = "$1?e"},
cmp = {label = "comparative", glossary = true},
{param = "cmp", label = "comparative", glossary = "comparative degree", auto = "$1?úv"},
sup = {label = "superlative", glossary = true},
{param = "sup", label = "superlative", glossary = "superlative degree", auto = "$1?úva"},
{param = "exc", label = "excessive", glossary = "excessive degree", auto = "$1?úr"},
},
},
noun = {
noun = {
du = {label = "dual", glossary = true},
{param = "du", label = "dual", glossary = true, auto = "$1?ad"},
pl = {label = "plural", glossary = true},
{param = "pl", label = "plural", glossary = true, auto = "$1?is"},
dim = {label = "diminutive", glossary = true},
{param = "coll", label = "collective", glossary = true, auto = "$1?iva"},
aug = {label = "augmentative", glossary = true},
{param = "dim", label = "diminutive", glossary = true},
fem = {label = "feminine", glossary = true},
{param = "aug", label = "augmentative", glossary = true},
masc = {label = "masculine", glossary = true},
{param = "fem", label = "feminine", glossary = true},
{param = "masc", label = "masculine", glossary = true},
},
},
verb = {
verb = {
["pres-3s"] = {label = "3rd person singular present"},
{param = "pres-3s", label = "1st person singular future", auto = "$1?aŗ"},
{param = "vn", label = "verb-noun", auto = "$1?íd"},
},
},
}
}
function export.adjective(frame)
local args, inflections = m_head_languages.get_args(frame:getParent().args, params, inflection_params.adjective)
return m_head.full_head{
term = mw.title.getCurrentTitle().text,
head = args["head"],
language = ryn,
pos = "adjective",
genders = args[1],
inflections = inflections,
}
end
function export.noun(frame)
local args, inflections = m_head_languages.get_args(frame:getParent().args, params, inflection_params.noun)
return m_head.full_head{
term = mw.title.getCurrentTitle().text,
head = args["head"],
language = ryn,
pos = "noun",
genders = args[1],
inflections = inflections,
}
end
function export.verb(frame)
local args, inflections = m_head_languages.get_args(frame:getParent().args, params, inflection_params.verb)
return m_head.full_head{
term = m_head_languages.get_term(),
head = args["head"],
language = ryn,
pos = "verb",
genders = args[1],
inflections = inflections,
}
end
return export

Latest revision as of 11:49, 23 February 2024

Documentation for this module may be created at Module:head/languages/ryn/documentation

return {
	adjective = {
		{param = "adv", label = "adverb", glossary = true, auto = "$1?o"},
		{param = "attr", label = "attributive", glossary = true, auto = "$1?e"},
		{param = "cmp", label = "comparative", glossary = "comparative degree", auto = "$1?úv"},
		{param = "sup", label = "superlative", glossary = "superlative degree", auto = "$1?úva"},
		{param = "exc", label = "excessive", glossary = "excessive degree", auto = "$1?úr"},
	},
	noun = {
		{param = "du", label = "dual", glossary = true, auto = "$1?ad"},
		{param = "pl", label = "plural", glossary = true, auto = "$1?is"},
		{param = "coll", label = "collective", glossary = true, auto = "$1?iva"},
		{param = "dim", label = "diminutive", glossary = true},
		{param = "aug", label = "augmentative", glossary = true},
		{param = "fem", label = "feminine", glossary = true},
		{param = "masc", label = "masculine", glossary = true},
	},
	verb = {
		{param = "pres-3s", label = "1st person singular future", auto = "$1?aŗ"},
		{param = "vn", label = "verb-noun", auto = "$1?íd"},
	},
}