Module:ttj-utilities
Appearance
- This module lacks a documentation subpage. Please create it.
- Useful links: subpage list • links • transclusions • testcases • sandbox (diff)
local export = {}
function export.plural(frame)
local word = frame.args[1]
local sg_class = frame.args[2]
word = word:gsub("^" .. sg_class, "")
return word
end
function export.conj(frame)
local verb = frame.args[1]
local initial = frame.args[2]
local final = frame.args[3]
verb = verb:gsub("^" .. initial .. "(.*)" .. final .. "$", "%1")
return verb
end
return export