Jump to content

Module:accel/en

From Wiktionary, the free dictionary

This module contains new entry creation rules for English; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.


return {generate = function(params, entry)
	local english_template, general_template
	if params.form == "comparative" or params.form == "superlative" then
		-- [[Template:en-comparative of]], [[Template:en-superlative of]]
		entry.def = "{{en-" .. params.form .. " of|" .. params.origin
			.. (params.pos ~= "adjective" and "|POS=" .. params.pos or "")
			.. "}}"
	elseif params.form == "pres|part" then
		entry.pos_header = "Verb"
		entry.head = entry.make_head("verb form")
	end
end}