Module:jugs-noun-cell: Difference between revisions
No edit summary |
No edit summary |
||
| (59 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
local accel_forms = { | local accel_forms = { | ||
-- | --NEUTRALS | ||
nsi = "nom|s", | nsi = "nom|s", | ||
nsd = "def|nom|s", | nsd = "def|nom|s", | ||
| Line 38: | Line 38: | ||
gpd_la = "def|gen|p|la", | gpd_la = "def|gen|p|la", | ||
--PEJORATIVES | |||
nsi_pej = "nom|s|pej", | |||
nsd_pej = "def|nom|s|pej", | |||
npi_pej = "nom|p|pej", | |||
npd_pej = "def|nom|p|pej", | |||
asi_pej = "acc||pej", | |||
asd_pej = "def|acc|s|pej", | |||
api_pej = "acc|p|pej", | |||
apd_pej = "def|acc|p|pej", | |||
dsi_pej = "dat|s|pej", | |||
dsd_pej = "def|dat|s|pej", | |||
dpi_pej = "dat|p|pej", | |||
dpd_pej = "def|dat|p|pej", | |||
gsi_pej = "gen|s|pej", | |||
gs_pejd = "def|gen|s|pej", | |||
gpi_pej = "gen|p|pej", | |||
gpd_pej = "def|gen|p|pej", | |||
} | } | ||
function export.create(frame) | function export.create(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local | local out = {} | ||
if not args[1] or args[1] == "" then | if not args[1] or args[1] == "" then | ||
return "―" | return "―" | ||
| Line 64: | Line 82: | ||
if words then | if words then | ||
for i,j in ipairs(words) do | for i,j in ipairs(words) do | ||
table.insert( | table.insert(out, args[1]) | ||
end | end | ||
end | end | ||
end | end | ||
return table.concat( | return table.concat(out, ", ") | ||
end | end | ||
return export | return export | ||