Module:Zh-generateforms

From The Languages of David J. Peterson
Revision as of 15:27, 23 March 2024 by Wojnicz (talk | contribs) (Created page with "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")
(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