Module:accel/ttj
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 Tooro; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.
return {generate = function (params, entry)
if params.form == "1s" or params.form == "1p" or params.form == "2s" or params.form == "2p" then
entry.pronunc = "* {{IPA|ttj|}}"
entry.def = "{{infl of|ttj|" .. params.origin .. "|-" .. params.origin .. "|" .. params.form .. "}}"
elseif params.form == "1" or params.form == "2" or params.form == "3" or params.form == "4" or params.form == "5" or params.form == "6" or params.form == "7" or params.form == "8" or params.form == "9" or params.form == "10" or params.form == "11" or params.form == "12" or params.form == "13" or params.form == "14" or params.form == "15" or params.form == "16" or params.form == "17" or params.form == "18" then
entry.pronunc = "* {{IPA|ttj|}}"
entry.def = "{{infl of|ttj|" .. params.origin .. "|-" .. params.origin .. "|c" .. params.form .. "}}"
elseif params.form == "1def" or params.form == "2def" or params.form == "3def" or params.form == "4def" or params.form == "5def" or params.form == "6def" or params.form == "7def" or params.form == "8def" or params.form == "9def" or params.form == "10def" or params.form == "11def" or params.form == "12def" or params.form == "13def" or params.form == "14def" or params.form == "15def" or params.form == "16def" or params.form == "17def" or params.form == "18def" then
if params.pos == "adjective" then
entry.head = "{{head|ttj|adjective form}}"
elseif params.pos == "particle" then
entry.head = "{{ttj-part form}}"
end
entry.pronunc = "* {{IPA|ttj|}}"
entry.def = "{{infl of|ttj|" .. params.origin .. "|-" .. params.origin .. "|c" .. string.gsub(params.form, "(def)", "") .. "|def}}"
elseif params.form == "1ndef" or params.form == "2ndef" or params.form == "3ndef" or params.form == "4ndef" or params.form == "5ndef" or params.form == "6ndef" or params.form == "7ndef" or params.form == "8ndef" or params.form == "9ndef" or params.form == "10ndef" or params.form == "11ndef" or params.form == "12ndef" or params.form == "13ndef" or params.form == "14ndef" or params.form == "15ndef" or params.form == "16ndef" or params.form == "17ndef" or params.form == "18ndef" then
if params.pos == "adjective" then
entry.head = "{{head|ttj|adjective form}}"
elseif params.pos == "particle" then
entry.head = "{{ttj-part form}}"
end
entry.pronunc = "* {{IPA|ttj|}}"
entry.def = "{{infl of|ttj|" .. params.origin .. "|-" .. params.origin .. "|c" .. string.gsub(params.form, "(ndef)", "") .. "|indef}}"
elseif params.form == "2pl" or params.form == "2apl" or params.form == "4pl" or params.form == "6pl" or params.form == "8pl" or params.form == "10pl" or params.form == "13pl" or params.form == "14pl" then
entry.pronunc = "* {{IPA|ttj|}}"
entry.head = "{{ttj-noun form|" .. string.gsub(params.form, "(pl)", "") .. "|pl}}"
entry.def = "{{plural of|ttj|" .. params.origin .. "}}"
elseif params.form == "1augless" or params.form == "3augless" or params.form == "5augless" or params.form == "7augless" or params.form == "9augless" or params.form == "11augless" or params.form == "12augless" or params.form == "14augless" or params.form == "15augless" or params.form == "16augless" or params.form == "17augless" or params.form == "19augless" then
entry.pronunc = "* {{IPA|ttj|}}"
entry.head = "{{ttj-noun form|" .. string.gsub(params.form, "(augless)", "") .. "|augless}}"
entry.def = "{{infl of|ttj|" .. params.origin .. "||augless}}"
elseif params.form == "2pl-augless" or params.form == "6pl-augless" then
entry.pronunc = "* {{IPA|ttj|}}"
entry.head = "{{ttj-noun form|" .. string.gsub(params.form, "(pl)(-augless)", "") .. "|augless}}"
entry.def = "{{infl of|ttj|a" .. params.target_pagename .. "||augless}}"
elseif params.form == "4pl-augless" or params.form == "8pl-augless" or params.form == "10pl-augless" then
entry.pronunc = "* {{IPA|ttj|}}"
entry.head = "{{ttj-noun form|" .. string.gsub(params.form, "(pl)(-augless)", "") .. "|augless}}"
entry.def = "{{infl of|ttj|e" .. params.target_pagename .. "||augless}}"
elseif params.form == "13pl-augless" or params.form == "14pl-augless" then
entry.pronunc = "* {{IPA|ttj|}}"
entry.head = "{{ttj-noun form|" .. string.gsub(params.form, "(pl)(-augless)", "") .. "|augless}}"
entry.def = "{{infl of|ttj|o" .. params.target_pagename .. "||augless}}"
elseif params.form == "apo" then
entry.pronunc = "* {{IPA|ttj|}}"
entry.def = "{{qualifier|before a vowel}} {{apocopic form of|ttj|" .. params.origin .. "}}."
end
end}