This module contains new entry creation rules for යිඩිශ්; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.


local m_yi_common = require("Module:yi-common")

return {
	generate = function(params, entry)
		if params.form == "past-participle" then
			entry.head = entry.make_head("past participle")
			entry.def = entry.make_def("past participle of")
		elseif params.form == "diminutive" then
			local dimpl
			if mw.ustring.find(params.target, "ע$") then
				dimpl = m_yi_common.make_non_final(params.target) .. "ך"
			else
				dimpl = m_yi_common.make_non_final(params.target) .. "עך"
			end
			entry.head = "{{yi-noun|g=n" .. (params.transliteration and "|tr=" .. params.transliteration or "") .. "|pl=" .. dimpl .. "}}"
		end
	end
}
"https://si.wiktionary.org/w/index.php?title=Module:accel/yi&oldid=34050" වෙතින් සම්ප්‍රවේශනය කෙරිණි