Module:zh-generateforms

From Wiktionary, the free dictionary
Jump to navigation Jump to search


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