10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 265: | Line 265: | ||
-- create stem and ending parameters -- | -- create stem and ending parameters -- | ||
mw.log("Parameters:") | --mw.log("Parameters:") | ||
if stem_data[args[4]] or stem_data[args[5]] or stem_data[args[6]] then | if stem_data[args[4]] or stem_data[args[5]] or stem_data[args[6]] then | ||
Line 354: | Line 354: | ||
end | end | ||
-- | --[[ | ||
mw.log("Stem: " .. stem) | mw.log("Stem: " .. stem) | ||
if stem_broken then mw.log("Broken stem: " .. stem_broken ) end | if stem_broken then mw.log("Broken stem: " .. stem_broken ) end | ||
Line 360: | Line 360: | ||
if stem_raised then mw.log("Raised stem: " .. stem_raised ) end | if stem_raised then mw.log("Raised stem: " .. stem_raised ) end | ||
mw.log("Ending: " .. ending) | mw.log("Ending: " .. ending) | ||
-- | ]]-- | ||
-- generate endings from declension type -- | -- generate endings from declension type -- | ||
Line 425: | Line 425: | ||
end | end | ||
mw.log("——— Resolving ———") | --mw.log("——— Resolving ———") | ||
for part, infl in pairs(principle_parts) do | for part, infl in pairs(principle_parts) do | ||
principle_parts[part] = resolve_ending(infl) | principle_parts[part] = resolve_ending(infl) | ||
Line 432: | Line 432: | ||
principle_parts["type"] = stem_data[ending] | principle_parts["type"] = stem_data[ending] | ||
mw.logObject(principle_parts) | --mw.logObject(principle_parts) | ||
return principle_parts | return principle_parts | ||
end | end |