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


return {generate = function (params, entry)
	local pos_to_template = {
		['noun'] = 'ne-noun form',
		['verb'] = 'ne-verb form',
		['adjective'] = 'ne-adj form',
		['pronoun'] = 'ne-pron form',
		['determiner'] = 'ne-det form',
		['postposition'] = 'ne-post form',
	}
	
	if pos_to_template[params.pos] then
		entry.head = "{{" .. pos_to_template[params.pos] ..
			(params.target ~= params.target_pagename and "|head=" .. params.target or "") ..
			(params.transliteration and "|tr=" .. params.transliteration or "") ..
			(params.gender and "|g=" .. params.gender or "") ..
			"}}"

if (params.form == "比較級" or params.form == "最高級") and params.pos == "形容詞" then
		entry.declension = "{{ne-decl-adj}}"
	end
	end

	entry.pronunc = "* {{ne-IPA" .. (params.transliteration and "|" .. params.transliteration or "") .. "}}"
end}