From The Languages of David J. Peterson
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Zh-generateforms/documentation
local export = {}
local data = mw.loadData("Module:zh/data/ts")
function export.generateForms(text, lang, sc)
if sc == "Hant" then
return {text, (text:gsub("[\194-\244][\128-\191]*", data))}
end
return {text}
end
return export