Module:jugs-cell: Difference between revisions
No edit summary |
No edit summary |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
local export = {} | local export = {} | ||
local accel_forms = { | local accel_forms = { | ||
-- | --NEUTRALS | ||
nsi = "nom|s", | nsi = "nom|s", | ||
nsd = "def|nom|s", | nsd = "def|nom|s", | ||
| Line 40: | 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", | |||
--VERBS | |||
-- Active | |||
pres_inf = "act|pres|inf", | |||
past_inf = "act|past|inf", | |||
pres_part = "act|pres|part", | |||
past_part = "act|past|part", | |||
pres_ind_sg = "s|pres|act|ind", | |||
pres_ind_1pl = "1|p|pres|act|ind", | |||
pres_ind_2pl = "2|p|pres|act|ind", | |||
pres_ind_3pl = "3|p|pres|act|ind", | |||
past_ind_sg = "s|past|act|ind", | |||
past_ind_1pl = "1|p|past|act|ind", | |||
past_ind_2pl = "2|p|past|act|ind", | |||
past_ind_3pl = "3|p|past|act|ind", | |||
pres_sub_sg = "s|pres|act|sub", | |||
pres_sub_1pl = "1|p|pres|act|sub", | |||
pres_sub_2pl = "2|p|pres|act|sub", | |||
pres_sub_3pl = "3|p|pres|act|sub", | |||
past_sub_sg = "s|past|act|sub", | |||
past_sub_1pl = "1|p|past|act|sub", | |||
past_sub_2pl = "2|p|past|act|sub", | |||
past_sub_3pl = "3|p|past|act|sub", | |||
imp = "act|imp", | |||
-- Mediopassive | |||
mp_pres_inf = "mp|pres|inf", | |||
mp_past_inf = "mp|past|inf", | |||
mp_pres_part = "mp|pres|part", | |||
mp_past_part = "mp|past|part", | |||
mp_pres_ind_sg = "s|pres|mp|ind", | |||
mp_pres_ind_1pl = "1|p|pres|mp|ind", | |||
mp_pres_ind_2pl = "2|p|pres|mp|ind", | |||
mp_pres_ind_3pl = "3|p|pres|mp|ind", | |||
mp_past_ind_sg = "s|past|mp|ind", | |||
mp_past_ind_1pl = "1|p|past|mp|ind", | |||
mp_past_ind_2pl = "2|p|past|mp|ind", | |||
mp_past_ind_3pl = "3|p|past|mp|ind", | |||
mp_pres_sub_sg = "s|pres|mp|sub", | |||
mp_pres_sub_1pl = "1|p|pres|mp|sub", | |||
mp_pres_sub_2pl = "2|p|pres|mp|sub", | |||
mp_pres_sub_3pl = "3|p|pres|mp|sub", | |||
mp_past_sub_sg = "s|past|mp|sub", | |||
mp_past_sub_1pl = "1|p|past|mp|sub", | |||
mp_past_sub_2pl = "2|p|past|mp|sub", | |||
mp_past_sub_3pl = "3|p|past|mp|sub", | |||
mp_impr = "mp|imp", | |||
} | |||
local mode_prefix = { --this is prefixed to the index value in accel_forms | |||
mpass = "mp_" | |||
} | } | ||
local mode_prepend = { --on the other hand, this is prefixed to the accelerated text itself | |||
wk = "weak|", | |||
str = "strong|", | |||
comp = "comparative|", | |||
wk_sup = "weak|superlative|", | |||
str_sup = "strong|superlative|" | |||
} | |||
function export.create(frame) | function export.create(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
| Line 66: | Line 149: | ||
if words then | if words then | ||
for i,j in ipairs(words) do | for i,j in ipairs(words) do | ||
table.insert(out, | table.insert(out, args[1]) | ||
end | end | ||
end | end | ||