Module:accel/sw
- පහත දැක්වෙන උපදෙස්, Module:documentation මගින් ජනනය කොට ඇත. [සංස්කරණය කරන්න]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • testcases • sandbox
This module contains new entry creation rules for Swahili; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.
return {generate = function(params, entry)
if string.sub(params.form, 1, 5) == "root:" then -- for verb roots
entry.pos_header= "Verb"
entry.head = "{{sw-verb}}"
entry.def = "{{sw-derform|" .. string.sub(params.form, 6) .. "|" .. params.origin .. "}}"
entry.conjugation = "{{sw-conj}}"
elseif string.sub(params.form, 1, 5) == "verb:" then -- for verb inflections
entry.def = entry.make_def("inflection of", "|-" .. params.origin .. string.sub(params.form, 6))
elseif params.form == "p" then
entry.head = entry.make_head("noun plural form")
elseif params.form == "m" or params.form == "wa" or params.form == "mi" or params.form == "ma" or params.form == "ki" or params.form == "vi" or params.form == "n" or params.form == "pa" or params.form == "ku" or params.form == "mu" then
entry.def = "{{sw-adj form of|" .. params.form .. "|" .. params.origin .. "}}"
elseif params.form == "infinitive" then
entry.head = "{{sw-inf}}"
entry.def = entry.make_def("inflection of", "|-" .. params.origin .. "|" .. params.form)
end
end}