Module:accel/sl

return {generate = function (params, entry) if params.form == 'comparative' or params.form == 'superlative' then entry.pronunc = '' entry.head = '' -- If there is a comma in the head, assume it has multiple accented variants. -- Add a link with an alternative display form instead. entry.def = ''

-- If it's an adjective, add a declension table if params.pos == 'adjective' then local stem = params.target:sub(1, -1) local ending = params.target:sub(-1) -- Adjective comparatives and superlatives must always end in -i if ending ~= 'i' then return error('The Slovene comparative/superlative "' .. params.target .. '" does not end in -i.') end entry.declension = '' end else entry.no_rule_error(params) end end}