local decl_data = {}
decl_data = {
params = {
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
local stem = args
data.decl_type = "masculine a-stem"
data.forms = {args .. destress_if_stressed("ás")}
data.forms = {args .. "a"}
data.forms = {args .. destress_if_stressed("ám")}
data.forms = {args .. destress_if_stressed("ā́")}
data.forms = {args .. destress_if_stressed("ā́t")}
data.forms = {args .. destress_if_stressed("ā́y")}
data.forms = {args .. destress_if_stressed("ásya")}
data.forms = {args .. destress_if_stressed("áy")}
data.forms = {args .. destress_if_stressed("ā́")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("áybʰyaH, -ā́bʰyām")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("áyās")}
data.forms = {args .. destress_if_stressed("áyaw")}
if not args.nopl then
data.forms = {args .. destress_if_stressed("ā́, -ā́s(as)")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("ā́ns")}
data.forms = {args .. destress_if_stressed("ā́yš")}
data.forms = {args .. destress_if_stressed("áybʰyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("ā́na(H)m")}
data.forms = {args .. destress_if_stressed("áyšu")}
end
table.insert(data.categories, "Proto-Indo-Iranian a-stem nouns")
end
})
decl_data = {
params = {
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
decl_data(args, data)
data.decl_type = "neuter a-stem"
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("áy")}
data.forms = data.forms
data.forms = data.forms
if not args.nopl then
data.forms = {args .. destress_if_stressed("áH")}
data.forms = data.forms
data.forms = data.forms
end
end
})
decl_data = {
params = {
= {},
= {},
= {},
= {},
= {},
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
local pagename = mw.title.getCurrentTitle().subpageText
local s = mw.ustring.sub(pagename, -1, -1)
-- Check for s-stems
if mw.ustring.sub(pagename, -1, -1) == "s" and not mw.ustring.find(mw.ustring.sub(pagename, -2, -2), "") then
s = ""
end
-- (mw.ustring.find(mw.ustring.sub(args, -1, -1), "") and "s" or "z")
data.decl_type = "consonant stem"
data.forms = {args.nomsg or (args .. s)}
data.forms = {args}
data.forms = {args .. "ám"}
data.forms = {args .. "áH"}
data.forms = {args .. "ás"}
data.forms = {args .. "áy"}
data.forms = data.forms
data.forms = {args .. "í"}
data.forms = {args.nomsg or (args .. "ā́w")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args.insdu or args .. "bʰyáH, -bʰyā́m"}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. "áwš"}
data.forms = data.forms
if not args.nopl then
data.forms = {args.nomsg or (args .. "ás")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args.inspl or args .. "bʰíš"}
data.forms = {args.ablpl or args .. "bʰyáH"}
data.forms = data.forms
data.forms = {args .. "ām"}
data.forms = {args.locpl or args .. "su"}
end
table.insert(data.categories, "Proto-Indo-Iranian consonant stem nouns")
end
})
decl_data = {
params = {
= {},
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
decl_data(args, data)
data.decl_type = "neuter consonant stem"
data.forms = {args.nomsg or (args)}
data.forms = data.forms
data.forms = data.forms
if not args.nopl then
data.forms = {args.nomsg or (args)}
data.forms = data.forms
data.forms = data.forms
end
end
})
decl_data = {
params = {
= {},
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
data.decl_type = "masculine i-stem"
data.forms = {args .. destress_if_stressed("íš")}
data.forms = {args .. destress_if_stressed("áy")}
data.forms = {args .. destress_if_stressed("ím")}
data.forms = {args .. destress_if_stressed("íH́")}
data.forms = {args .. destress_if_stressed("áyš")}
data.forms = {args .. destress_if_stressed("áyay")}
data.forms = {args .. destress_if_stressed("áyš")}
data.forms = {args .. destress_if_stressed("ā́(w)?")}
data.forms = {args .. destress_if_stressed("íH")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íbʰyām")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("yáwš")}
data.forms = data.forms
if not args.nopl then
data.forms = {args .. destress_if_stressed("áyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("ī́n, -ī́š")}
data.forms = {args .. destress_if_stressed("íbʰiš")}
data.forms = {args .. destress_if_stressed("íbʰyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("áyām?")}
data.forms = {args .. destress_if_stressed("íšu")}
end
if args.g == "f" then
data.decl_type = "feminine i-stem"
data.forms = {args .. destress_if_stressed("(išt)yā́")}
data.forms = {args .. destress_if_stressed("áyš, *-yáš")}
data.forms = {args .. destress_if_stressed("ā́w, *-yā́")}
data.forms = {args .. destress_if_stressed("yáwš")}
data.forms = data.forms
end
table.insert(data.categories, "Proto-Indo-Iranian i-stem nouns")
end
})
decl_data = {
params = {
= {},
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
decl_data(args, data)
data.decl_type = "neuter i-stem"
data.forms = data.forms
data.forms = data.forms
if not args.nopl then
data.forms = {args .. destress_if_stressed("ī")}
data.forms = data.forms
data.forms = data.forms
end
end
})
decl_data = {
params = {
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
data.decl_type = "feminine iH-stem"
data.forms = {args .. destress_if_stressed("íHs")}
data.forms = {args .. destress_if_stressed("í")}
data.forms = {args .. destress_if_stressed("íyam")}
data.forms = {args .. destress_if_stressed("íyáH")}
data.forms = {args .. destress_if_stressed("íyas")}
data.forms = {args .. destress_if_stressed("íyay")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íyi")}
data.forms = {args .. destress_if_stressed("íyaH́")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íHbʰyaH")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íyaHs")}
data.forms = {args .. destress_if_stressed("íyaw")}
if not args.nopl then
data.forms = {args .. destress_if_stressed("íyas")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íHbʰiš")}
data.forms = {args .. destress_if_stressed("íHbʰyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íHām")}
data.forms = {args .. destress_if_stressed("íHsu")}
end
table.insert(data.categories, "Proto-Indo-Iranian iH-stem nouns")
end
})
decl_data = {
params = {
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
data.decl_type = "aH-stem"
data.forms = {args .. destress_if_stressed("áH")}
data.forms = {args .. "ay"}
data.forms = {args .. destress_if_stressed("ā́m")}
data.forms = {args .. destress_if_stressed("áyaH́")}
data.forms = {args .. destress_if_stressed("áyaHs")}
data.forms = {args .. destress_if_stressed("áyaHy")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("áyaH(m)")}
data.forms = {args .. destress_if_stressed("áy")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("áHbʰyā(m)")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("āyās")}
data.forms = {args .. destress_if_stressed("āyaw")}
if not args.nopl then
data.forms = {args .. destress_if_stressed("ā́s")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("áHbʰiš")}
data.forms = {args .. destress_if_stressed("áHbʰyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("áHnām")}
data.forms = {args .. destress_if_stressed("áHsu")}
end
table.insert(data.categories, "Proto-Indo-Iranian aH-stem nouns")
end
})
decl_data = {
params = {
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
data.decl_type = "yaH-stem"
data.forms = {args .. destress_if_stressed("íH")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íHm")}
data.forms = {args .. destress_if_stressed("yáH")}
data.forms = {args .. destress_if_stressed("yáHs")}
data.forms = {args .. destress_if_stressed("yáy")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íH")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íHbʰyā(m)")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íyās")}
data.forms = {args .. destress_if_stressed("íyaw")}
if not args.nopl then
data.forms = {args .. destress_if_stressed("íH́s")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íHbʰiš")}
data.forms = {args .. destress_if_stressed("íHbʰyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("íHnām")}
data.forms = {args .. destress_if_stressed("íHsu")}
end
table.insert(data.categories, "Proto-Indo-Iranian yaH-stem nouns")
end
})
decl_data = {
params = {
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
data.decl_type = "uH-stem"
data.forms = {args .. destress_if_stressed("úHs")}
data.forms = {args .. "u"}
data.forms = {args .. destress_if_stressed("úwam")}
data.forms = {args .. destress_if_stressed("úwaH")}
data.forms = {args .. destress_if_stressed("úwas")}
data.forms = {args .. destress_if_stressed("úway")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("úwi")}
if not args.nopl then
data.forms = {args .. destress_if_stressed("úwas")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("úHbʰiš")}
data.forms = {args .. destress_if_stressed("úHbʰyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("úH́na(H)m")}
data.forms = {args .. destress_if_stressed("úHsu")}
end
table.insert(data.categories, "Proto-Indo-Iranian uH-stem nouns")
end
})
decl_data = {
params = {
= {},
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
data.decl_type = "masculine u-stem"
data.forms = {args .. destress_if_stressed("úš")}
data.forms = {args .. destress_if_stressed("aw")}
data.forms = {args .. destress_if_stressed("úm")}
data.forms = {args .. destress_if_stressed("úH́")}
data.forms = {args .. destress_if_stressed("áwš")}
data.forms = {args .. destress_if_stressed("áway")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("ā́(w)?")}
data.forms = {args .. destress_if_stressed("úH")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("úbʰyaH")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("úwaHs")}
data.forms = {args .. destress_if_stressed("úwaw")}
if not args.nopl then
data.forms = {args .. destress_if_stressed("áwas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("únš")}
data.forms = {args .. destress_if_stressed("úbʰiš")}
data.forms = {args .. destress_if_stressed("úbʰyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("únām?")}
data.forms = {args .. destress_if_stressed("úšu")}
end
table.insert(data.categories, "Proto-Indo-Iranian u-stem nouns")
end
})
decl_data = {
params = {
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
decl_data(args, data)
data.decl_type = "neuter u-stem"
data.forms = data.forms
data.forms = data.forms
if not args.nopl then
data.forms = data.forms
data.forms = data.forms
data.forms = data.forms
end
end
})
decl_data = {
params = {
= {},
= {},
},
}
decl_data = {
params = {
= {},
= {},
},
}
setmetatable(decl_data, {__call = function(self, args, data)
data.decl_type = "r-stem"
data.forms = {args .. destress_if_stressed("ā́")}
data.forms = {args .. "ar"}
data.forms = {args .. destress_if_stressed("áram, *-ā́ram, *-r̥m")}
data.forms = {args .. destress_if_stressed("ráH")}
data.forms = {args .. destress_if_stressed("ŕ̥š, *-rás")}
data.forms = {args .. destress_if_stressed("ráy")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("ári")}
data.forms = {args .. destress_if_stressed("áraH, -ā́raH")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("ŕ̥bʰyā(m)")}
data.forms = data.forms
data.forms = data.forms
data.forms = {args .. destress_if_stressed("ráHs")}
data.forms = {args .. destress_if_stressed("ráw")}
if not args.nopl then
data.forms = {args .. destress_if_stressed("áras, -ā́ras")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("ŕ̥Nš")}
data.forms = {args .. destress_if_stressed("ŕ̥bʰiš")}
data.forms = {args .. destress_if_stressed("ŕ̥bʰyas")}
data.forms = data.forms
data.forms = {args .. destress_if_stressed("rā́m")}
data.forms = {args .. destress_if_stressed("ŕ̥šu")}
end
table.insert(data.categories, "Proto-Indo-Iranian r-stem nouns")
end
})
decl_data = {}
setmetatable(decl_data, {__call = function(self, args, data)
local word = mw.title.getCurrentTitle().subpageText
irreg_data = require("Module:User:Victar/iir-decl-noun/data/irreg")
if irreg_data.irreg then
irreg_data.irreg(args, data)
else
error("Irregular inflection not found. Please check Module:iir-decl-noun/data.")
end
table.insert(data.categories, "Proto-Indo-Iranian irregular nouns")
end
})
return decl_data