本模块包含意第緒語的新條目建立規則;有關概述,請參見en:WT:ACCEL,有關創建新規則的資訊,請參見en:Module:accel


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

return {generate = function(params, entry)
	if params.form == "過去分詞" then
		entry.head = entry.make_head("過去分詞")
		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}