Module:head/languages/lfv: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
local export = {}
local data = {}


local m_head = require("Module:head")
data["adjective"] = {
local m_head_languages = require("Module:head/languages")
{param = "acc", label = "accusative singular"},
local m_parameters = require("Module:parameters")
{param = "dat", label = "dative singular"},
local lfv = require("Module:languages").get_by_code("lfv")
{param = "loc", label = "locative singular"},
 
{param = "du", label = "nominative dual"},
local params = {
{param = "pl", label = "nominative plural"},
[1] = {list = true},
head = {},
}
local inflection_params = {
adjective = {
{param = "pl", label = "plural", glossary = true},
{param = "cmp", label = "comparative", glossary = true},
{param = "cmp", label = "comparative", glossary = true},
{param = "rel", label = "relative superlative", glossary = true},
{param = "rel", label = "relative superlative", glossary = true},
{param = "abs", label = "absolute superlative", glossary = true},
{param = "abs", label = "absolute superlative", glossary = true},
{param = "ela", label = "elative", glossary = true},
{param = "exc", label = "excessive", glossary = "excessive degree"},
{param = "dim", label = "diminutive", glossary = true},
{param = "pej", label = "pejorative", glossary = true},
{param = "pej", label = "pejorative", glossary = true},
},
{param = "adv", label = "adverb", glossary = true},
adverb = {
}
 
data["adverb"] = {
{param = "cmp", label = "comparative", glossary = true},
{param = "cmp", label = "comparative", glossary = true},
{param = "rel", label = "relative superlative", glossary = true},
{param = "rel", label = "relative superlative", glossary = true},
{param = "abs", label = "absolute superlative", glossary = true},
{param = "abs", label = "absolute superlative", glossary = true},
{param = "ela", label = "elative", glossary = true},
{param = "ela", label = "elative", glossary = true},
},
}
noun = {
 
{param = "du", label = "dual", glossary = true},
data["noun"] = {
{param = "pl", label = "mplural", glossary = true},
{param = "acc", label = "accusative singular"},
{param = "gen", label = "genitive singular"},
{param = "dat", label = "dative singular"},
{param = "loc", label = "locative singular"},
{param = "du", label = "nominative dual"},
{param = "pl", label = "nominative plural"},
{param = "accpl", label = "accusative plural"},
{param = "genpl", label = "genitive plural"},
{param = "datpl", label = "dative plural"},
{param = "dim", label = "diminutive", glossary = true},
{param = "dim", label = "diminutive", glossary = true},
{param = "aug", label = "augmentative", glossary = true},
{param = "aug", label = "augmentative", glossary = true},
{param = "sup", label = "superlative", glossary = true},
{param = "pej", label = "pejorative", glossary = true},
{param = "pej", label = "pejorative", glossary = true},
},
{param = "der", label = "derogatory", glossary = true},
verb = {
{param = "end", label = "endearing", glossary = true},
{param = "dimend", label = "diminutive-endearing"},
{param = "augend", label = "augmentative-endearing"},
{param = "dimder", label = "diminutive-derogatory"},
{param = "augder", label = "augmentative-derogatory"},
{param = "surn", label = "surname", glossary = true},
{param = "poss", label = "possessive", glossary = true},
}
 
data["verb"] = {
{param = "pfv", label = "perfective", glossary = true},
{param = "pfv", label = "perfective", glossary = true},
{param = "impfv", label = "imperfective", glossary = true},
{param = "impfv", label = "imperfective", glossary = true},
Line 38: Line 53:
{param = "rem-3s", label = "3rd person singular remote past"},
{param = "rem-3s", label = "3rd person singular remote past"},
{param = "pass", label = "passive participle"},
{param = "pass", label = "passive participle"},
},
{param = "presp", label = "present participle"},
}
{param = "pastp", label = "past participle"},
 
{param = "futp", label = "future participle"},
function export.adjective(frame)
{param = "vn", label = "verbal noun"},
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 = lfv,
pos = "adjective",
genders = args[1],
inflections = inflections,
}
end
 
function export.adverb(frame)
local args, inflections = m_head_languages.get_args(frame:getParent().args, params, inflection_params.adverb)
return m_head.full_head{
term = mw.title.getCurrentTitle().text,
head = args["head"],
language = lfv,
pos = "adverb",
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 = lfv,
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 = lfv,
pos = "verb",
genders = args[1],
inflections = inflections,
}
}
end
data["proper noun"] = data["noun"]
data["numeral"] = data["noun"]
data["pronoun"] = data["noun"]


return export
return data

Latest revision as of 15:55, 8 August 2024

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

local data = {}

data["adjective"] = {
		{param = "acc", label = "accusative singular"},
		{param = "dat", label = "dative singular"},
		{param = "loc", label = "locative singular"},
		{param = "du", label = "nominative dual"},
		{param = "pl", label = "nominative plural"},
		{param = "cmp", label = "comparative", glossary = true},
		{param = "rel", label = "relative superlative", glossary = true},
		{param = "abs", label = "absolute superlative", glossary = true},
		{param = "exc", label = "excessive", glossary = "excessive degree"},
		{param = "dim", label = "diminutive", glossary = true},
		{param = "pej", label = "pejorative", glossary = true},
		{param = "adv", label = "adverb", glossary = true},
	}

data["adverb"] = {
		{param = "cmp", label = "comparative", glossary = true},
		{param = "rel", label = "relative superlative", glossary = true},
		{param = "abs", label = "absolute superlative", glossary = true},
		{param = "ela", label = "elative", glossary = true},
	}

data["noun"] = {
		{param = "acc", label = "accusative singular"},
		{param = "gen", label = "genitive singular"},
		{param = "dat", label = "dative singular"},
		{param = "loc", label = "locative singular"},
		{param = "du", label = "nominative dual"},
		{param = "pl", label = "nominative plural"},
		{param = "accpl", label = "accusative plural"},
		{param = "genpl", label = "genitive plural"},
		{param = "datpl", label = "dative plural"},
		{param = "dim", label = "diminutive", glossary = true},
		{param = "aug", label = "augmentative", glossary = true},
		{param = "sup", label = "superlative", glossary = true},
		{param = "pej", label = "pejorative", glossary = true},
		{param = "der", label = "derogatory", glossary = true},
		{param = "end", label = "endearing", glossary = true},
		{param = "dimend", label = "diminutive-endearing"},
		{param = "augend", label = "augmentative-endearing"},
		{param = "dimder", label = "diminutive-derogatory"},
		{param = "augder", label = "augmentative-derogatory"},
		{param = "surn", label = "surname", glossary = true},
		{param = "poss", label = "possessive", glossary = true},
	}

data["verb"] = {
		{param = "pfv", label = "perfective", glossary = true},
		{param = "impfv", label = "imperfective", glossary = true},
		{param = "pres-3s", label = "3rd person singular present"},
		{param = "rem-3s", label = "3rd person singular remote past"},
		{param = "pass", label = "passive participle"},
		{param = "presp", label = "present participle"},
		{param = "pastp", label = "past participle"},
		{param = "futp", label = "future participle"},
		{param = "vn", label = "verbal noun"},		
	}
	
data["proper noun"] = data["noun"]
data["numeral"] = data["noun"]
data["pronoun"] = data["noun"]

return data