မဝ်ဂျူ:accel/cy

နူ ဝိက်ရှေန်နရဳ

Documentation for this module may be created at မဝ်ဂျူ:accel/cy/doc

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 == "နာမ်" and params.form == "ကိုန်ဗဟုဝစ်" then
		entry.head = entry.make_head("နာမ်ဗီုပြင်ကိုန်ဗဟုဝစ်")
	elseif params.form == "ကိုန်ဨကဝုစ်" then
		entry.head = entry.make_head("ကိုန်ဨကဝုစ်")
	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}