This module contains new entry creation rules for Nepali; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.
return {generate = function (params, entry)
local pos_to_template = {
= 'ne-noun form',
= 'ne-verb form',
= 'ne-adj form',
= 'ne-pron form',
= 'ne-det form',
= 'ne-post form',
}
if pos_to_template then
entry.head = "{{" .. pos_to_template ..
(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 == "comparative" or params.form == "superlative") and params.pos == "adjective" then
entry.declension = "{{ne-decl-adj}}"
end
end
entry.pronunc = "* {{ne-IPA" .. (params.transliteration and "|" .. params.transliteration or "") .. "}}"
end}