Module:User:Gnosandes/sla-decl-noun-o-m-d

local declensions = {}

local com = require("Module:sla-common") local m_table_tools = require("Module:table tools") local lang = require("Module:languages").getByCode("sla-pro")

local u = mw.ustring.char local rfind = mw.ustring.find local rsubn = mw.ustring.gsub local rmatch = mw.ustring.match local rsplit = mw.text.split local ulower = mw.ustring.lower local uupper = mw.ustring.upper local usub = mw.ustring.sub local ulen = mw.ustring.len local ugmatch = mw.ustring.gmatch -- I don't know how to use Lua, so this is my experiment. -- -- I don't know how to use Lua, so this is my experiment. -- -- I don't know how to use Lua, so this is my experiment. -- local TILDE = u(0x0303) local INVBREVE = u(0x0311)

declensions["hard masculine o-stem"] = function(data) local forms = {}

if data.ap == "d" then add_forms(data, forms, data.stem,			{n={INVBREVE, "ъ"}, a={INVBREVE, "ъ"}, g={TILDE, "a"}, l={TILDE, "ě", pal2=true}, d={TILDE, "u"}, i={TILDE, "omь"}, v={TILDE, "e", pal1=true}},			{n={TILDE, "a"}, g={TILDE, "u"}, d={TILDE, "oma"}, v={TILDE, "a"}},			{n={TILDE, "i", pal2=true}, a={TILDE, "y"}, g={TILDE, "ъ"}, l={TILDE, "ěxъ", pal2=true}, d={TILDE, "omъ"}, i={TILDE, "y"}, v={TILDE, "i"}}		) end

return forms, "hard o-stem", {"hard masculine o-stem nouns"} end

return declensions