This module contains new entry creation rules for Ilocano; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.
return {generate = function (params, entry)
-- Check native script first
if params.form == "Kur-itan" then
local pos_with_head_template = {
noun = "noun",
= "proper noun",
verb = "verb",
adjective = "adj",
adverb = "adv",
}
if pos_with_head_template ~= nil then
entry.head = "{{ilo-" .. pos_with_head_template .."}}"
else
entry.head = "{{ilo-head|" .. params.pos .."}}"
end
entry.def = "{{ilo-kur-itan|" .. params.origin .. "}}"
else
entry.head = "{{ilo-head|" .. params.pos .." form|b=+}}"
if params.pos == "verb" then
entry.def = "{{verb form of|ilo|" .. params.origin .. "||" .. params.form .. "}}"
end
end
end}