Module:accel/cy

Wiktionary වෙතින්

This module contains new entry creation rules for වේල්ස; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.


return {generate = function (params, entry)
	local template = {
		["nasal"] = "nasal mutation of",
		["soft"] = "soft mutation of",
		["aspirate"] = "aspirate mutation of",
		["h-prothesis"] = "h-prothesis of",
		["singulative"] = "singulative of",
	}
	
	if template[params.form] then
		entry.def = entry.make_def(template[params.form])
	end
	
	entry.mutation = "{{cy-mut}}"
	
	if params.pos == "noun" and params.form == "plural" then
		entry.head = entry.make_head("noun plural form")
	elseif params.form == "singulative" then
		entry.head = entry.make_head("singulative")
	elseif params.form == "nasal" or params.form == "soft" or params.form == "aspirate" or params.form == "h-prothesis" then
		entry.head = entry.make_head("mutated " .. params.pos)
		entry.mutation = "{{cy-mut|" .. params.origin .. "}}"
	end
end}
"https://si.wiktionary.org/w/index.php?title=Module:accel/cy&oldid=34001" වෙතින් සම්ප්‍රවේශනය කෙරිණි