Module:siwa-noun/data: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2: Line 2:
local match = mw.ustring.match
local match = mw.ustring.match
local v = "([aeiouyůõảẻỉỏủỷę])"
local v = "([aeiouyůõảẻỉỏủỷę])"
local PAGENAME = mw.title.getCurrentTitle().text


local ine, ill, ela, ade, all, abl, loc
local ine, ill, ela, ade, all, abl, loc
Line 22: Line 23:
table.insert(data.categories, "Siwa a-declension nouns")
table.insert(data.categories, "Siwa a-declension nouns")
data.forms["u"] = {data.head}
data.forms["u"] = {PAGENAME}
if args.ld then
if args.ld then
Line 93: Line 94:
table.insert(data.categories, "Siwa e-declension nouns")
table.insert(data.categories, "Siwa e-declension nouns")
data.forms["u"] = {data.head}
data.forms["u"] = {PAGENAME}
if stem:match("[ae]$") then
if stem:match("[ae]$") then
Line 204: Line 205:
data.forms["ine"] = {}
data.forms["ine"] = {}
data.forms["u"] = {data.head}
data.forms["u"] = {PAGENAME}
if args.ld then
if args.ld then
Line 276: Line 277:
table.insert(data.categories, "Siwa o-declension nouns")
table.insert(data.categories, "Siwa o-declension nouns")
data.forms["u"] = {data.head}
data.forms["u"] = {PAGENAME}
if stem:match("[ae]$") then
if stem:match("[ae]$") then
Line 386: Line 387:
table.insert(data.categories, "Siwa u-declension nouns")
table.insert(data.categories, "Siwa u-declension nouns")
data.forms["u"] = {data.head}
data.forms["u"] = {PAGENAME}
if stem:match("[aei]$") then
if stem:match("[aei]$") then
Line 466: Line 467:
data.forms["ine"] = {}
data.forms["ine"] = {}
data.forms["u"] = {data.head}
data.forms["u"] = {PAGENAME}
if stem:match("a$") then
if stem:match("a$") then