This module contains new entry creation rules for Tagalog; 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 == "Baybayin" then
--{{tl-pr}} does not work in Baybayn entries, so don't include that.
local pos_with_head_template = {
noun = "noun",
= "proper noun",
verb = "verb",
adjective = "adj",
adverb = "adv",
numeral = "num",
preposition = "prep",
pronoun = "pron"
}
if pos_with_head_template ~= nil then
entry.head = "{{tl-" .. pos_with_head_template .."}}"
else
entry.head = "{{tl-head|" .. params.pos .."}}"
end
entry.def = "{{tl-bay|" .. params.origin .. "}}"
else
entry.pronunc = "{{tl-pr}}"
entry.head = "{{tl-head|" .. params.pos .." form|b=+}}"
if params.pos == "verb" then
entry.def = "{{verb form of|tl|" .. params.origin .. "||" .. params.form .. "}}"
end
end
end}