Module:xchc-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 92: Line 92:


function make_cases(data)
function make_cases(data)
local w_number = {["si"] = data.word .. data.sg, ["pa"] = data.word .. data.pa, ["pl"] = data.word .. data.pl}
local cases = {"nominative", "accusative", "dative", "genitive", "instrumental", "prosecutive", "adessive<br/>comitative", "ablative<br/>elative", "illative<br/>allative"}
local cases = {"nominative", "accusative", "dative", "genitive", "instrumental", "prosecutive", "adessive<br/>comitative", "ablative<br/>elative", "illative<br/>allative"}
local numbers = {"singular", "paucal", "plural"}
local numbers = {"singular", "paucal", "plural"}
Line 112: Line 110:
for _, number in ipairs(numbers) do
for _, number in ipairs(numbers) do
local n_sh = number:sub(1,2)
local n_sh = number:sub(1,2)
local w_number = {["si"] = data.word .. data.sg, ["pa"] = data.word .. data.pa, ["pl"] = data.word .. data.pl[data.g]}
local decl = {
local decl = {
["nom"] = "",
["nom"] = "",