Module:ibe-nouns: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 460: Line 460:
local args = require("Module:parameters").process(frame:getParent().args, params)
local args = require("Module:parameters").process(frame:getParent().args, params)
if string.find(args[1], "a") then
    vowel = mw.ustring.gsub(args[1], "ar$", "r")
elseif string.find(args[1], "e") then
    vowel = mw.ustring.gsub(args[1], "er$", "r")
elseif string.find(args[1], "i") then
    vowel = mw.ustring.gsub(args[1], "ir$", "r")
elseif string.find(args[1], "o") then
    vowel = mw.ustring.gsub(args[1], "or$", "r")
elseif string.find(args[1], "u") then
    vowel = mw.ustring.gsub(args[1], "ur$", "r")
end
local data = {forms = {}, info = "neuter u-stem", categories = {lang:getCanonicalName() .. " u-stem nouns"}}
local data = {forms = {}, info = "neuter u-stem", categories = {lang:getCanonicalName() .. " u-stem nouns"}}
Line 466: Line 477:
data.forms["voc_sg"] = {args[1] .. "u"}
data.forms["voc_sg"] = {args[1] .. "u"}
data.forms["acc_sg"] = {args[1] .. "u"}
data.forms["acc_sg"] = {args[1] .. "u"}
data.forms["gen_sg"] = {args[1] .. "eus"}
data.forms["gen_sg"] = {vowel .. "eus"}
data.forms["dat_sg"] = {args[1] .. "ewei"}
data.forms["dat_sg"] = {vowel .. "ewei"}
data.forms["com_sg"] = {args[1] .. "ū"}
data.forms["com_sg"] = {args[1] .. "ū"}


Line 474: Line 485:
data.forms["voc_du"] = {args[1] .. "ī"}
data.forms["voc_du"] = {args[1] .. "ī"}
data.forms["acc_du"] = {args[1] .. "ī"}
data.forms["acc_du"] = {args[1] .. "ī"}
data.forms["gen_du"] = {args[1] .. "ewom"}
data.forms["gen_du"] = {vowel .. "ewom"}
data.forms["dat_du"] = {args[1] .. "umos"}
data.forms["dat_du"] = {args[1] .. "umos"}
data.forms["com_du"] = {args[1] .. "uvi(s)"}
data.forms["com_du"] = {args[1] .. "uvi(s)"}
Line 481: Line 492:
data.forms["voc_pl"] = {args[1] .. "ū"}
data.forms["voc_pl"] = {args[1] .. "ū"}
data.forms["acc_pl"] = {args[1] .. "ū"}
data.forms["acc_pl"] = {args[1] .. "ū"}
data.forms["gen_pl"] = {args[1] .. "ewom"}
data.forms["gen_pl"] = {vowel .. "ewom"}
data.forms["dat_pl"] = {args[1] .. "umos"}
data.forms["dat_pl"] = {args[1] .. "umos"}
data.forms["com_pl"] = {args[1] .. "uvi(s)"}
data.forms["com_pl"] = {args[1] .. "uvi(s)"}
182

edits