Module:accel/lg
Appearance
- The following documentation is generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
This module contains new entry creation rules for Luganda; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.
return {generate = function (params, entry)
if params.form == "ip" or params.form == "iip" or params.form == "iiip" or params.form == "ivp" or params.form == "vp" or params.form == "vip" or params.form == "viip" or params.form == "viiip" or params.form == "ivp" then
entry.pronunc = "* {{IPA|lg|}}"
entry.head = "{{lg-noun form|" .. string.gsub(params.form, "(p)", "") .. "|plural}}"
entry.def = "{{plural of|lg|" .. params.origin .. "}}"
elseif params.form == "ib" or params.form == "iib" or params.form == "iiib" or params.form == "ivb" or params.form == "vb" or params.form == "vib" or params.form == "viib" or params.form == "viiib" or params.form == "ixb" then
entry.pronunc = "* {{IPA|lg|}}"
entry.head = "{{lg-noun form|" .. string.gsub(params.form, "(b)", "") .. "|base}}"
entry.def = "{{infl of|lg|" .. params.origin .. "||base}}"
elseif params.form == "ip-b" or params.form == "vp-b" or params.form == "viiip-b" then
entry.pronunc = "* {{IPA|lg|}}"
entry.head = "{{lg-noun form|" .. string.gsub(params.form, "(p)(-b)", "") .. "|base}}"
entry.def = "{{infl of|lg|a" .. params.target_pagename .. "||base}}"
elseif params.form == "iip-b" or params.form == "ivp-b" or params.form == "iiip-b" then
entry.pronunc = "* {{IPA|lg|}}"
entry.head = "{{lg-noun form|" .. string.gsub(params.form, "(p)(-b)", "") .. "|base}}"
entry.def = "{{infl of|lg|e" .. params.target_pagename .. "||base}}"
elseif params.form == "xb" or params.form == "vip-b" then
entry.pronunc = "* {{IPA|lg|}}"
entry.head = "{{lg-noun form|" .. string.gsub(params.form, "(p)(-b)", "") .. "|base}}"
entry.def = "{{infl of|lg|o" .. params.target_pagename .. "||base}}"
end
end}