Module:accel/es

Hello, you have come here looking for the meaning of the word Module:accel/es. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:accel/es, but we will also tell you about its etymology, its characteristics and you will know how to say Module:accel/es in singular and plural. Everything you need to know about the word Module:accel/es you have here. The definition of the word Module:accel/es will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:accel/es, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

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


return {generate = function (params, entry)
	entry.pronunc = "{{es-pr}}"
	-- special handling for female equivalents
	if params.pos == "noun" and params.form == "f" then
		entry.head = "{{es-noun|f}}"
		-- definition already correct
		return
	end
	-- special handling for verb forms
	local gerund_verb_spec = params.form:match("^gerund%-(.*)$")
	if gerund_verb_spec then
		entry.head = "{{head|es|gerund}}"
		entry.def = "{{es-verb form of|" .. gerund_verb_spec .. "}}"
		return
	end
	local verb_spec = params.form:match("^verb%-form%-(.*)$")
	if verb_spec then
		entry.def = "{{es-verb form of|" .. verb_spec .. "}}"
		return
	end
	-- special handling for participles and participle forms
	if params.form == "pp_ms" then
		entry.pos_header = "Participle"
		entry.head = "{{es-past participle}}"
		entry.def = "{{past participle of|es|" .. params.origin .. "}}"
	elseif params.form:find("^pp_") then
		entry.pos_header = "Participle"
		local form_of_template = {pp_fs = "feminine singular of", pp_mp = "masculine plural of", pp_fp = "feminine plural of"}
		local gender = {pp_fs = "f-s", pp_mp = "m-p", pp_fp = "f-p"}
		entry.head = "{{head|es|past participle form|g=" .. gender .. "}}"
		entry.def = "{{" .. form_of_template .. "|es|" .. params.target:gsub("s?$", "o") .. "}}"
	end
end}