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


return {generate = function(params, entry)
	if string.sub(params.form, 1, 5) == "root:" then -- for verb roots
		entry.pos_header= "動詞"
		entry.head = "{{sw-verb}}"
		entry.def = "{{sw-derform|" .. string.sub(params.form, 6) .. "|" .. params.origin .. "}}"
		entry.conjugation = "{{sw-conj}}"
	elseif string.sub(params.form, 1, 5) == "verb:" then -- for verb inflections
		entry.def = entry.make_def("inflection of", "|-" .. params.origin .. string.sub(params.form, 6))
	elseif params.form == "p" then
		entry.head = entry.make_head("名詞複數形式")
	elseif params.form == "m" or params.form == "wa" or params.form == "mi" or params.form == "ma" or params.form == "ki" or params.form == "vi" or params.form == "n" or params.form == "pa" or params.form == "ku" or params.form == "mu" then
		entry.def = "{{sw-adj form of|" .. params.form .. "|" .. params.origin .. "}}"
	elseif params.form == "infinitive" then
		entry.head = "{{sw-inf}}"
		entry.def = entry.make_def("inflection of", "|-" .. params.origin .. "|" .. "不定式")
	end
end}