Module:accel/sw

return {generate = function(params, entry) if string.sub(params.form, 1, 5) == "root:" then -- for verb roots entry.pos_header= "Verb" entry.head = "" entry.def = "" entry.conjugation = "" elseif string.sub(params.form, 1, 5) == "verb:" then -- for verb inflections entry.def = entry.make_def("inflection of", "|-" .. params.origin .. string.sub(params.form, 6)) elseif params.form == "m" or params.form == "wa" or params.form == "mi" or params.form == "ma" or params.form == "ki" or params.form == "vi" or params.form == "n" or params.form == "pa" or params.form == "ku" or params.form == "mu" then entry.def = "" elseif params.form == "infinitive" then entry.head = "" entry.def = entry.make_def("inflection of", "|-" .. params.origin .. "|" .. params.form) end end}