Module:User:Wyang/yue-char-pron

Hello, you have come here looking for the meaning of the word Module:User:Wyang/yue-char-pron. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Wyang/yue-char-pron, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Wyang/yue-char-pron in singular and plural. Everything you need to know about the word Module:User:Wyang/yue-char-pron you have here. The definition of the word Module:User:Wyang/yue-char-pron will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Wyang/yue-char-pron, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This is a private module sandbox of Wyang, for their own experimentation. Items in this module may be added and removed at Wyang's discretion; do not rely on this module's stability.


local m_data = require("Module:User:Wyang/yue-char-pron/data")

local export = {}

function export.make(frame)
	local character_readings = {}
	for syllable, characters in pairs(m_data) do
		for _, character in ipairs(characters) do
			if character_readings then
				table.insert(character_readings, syllable)
			else
				character_readings = { syllable }
			end
		end
	end
	local output_text = { "<pre>" }
	for character, readings in pairs(character_readings) do
		table.insert(output_text, (" = \"" .. table.concat(readings, ",") .. "\","))
	end
	table.insert(output_text, "</pre>")
	return table.concat(output_text, "\n")
end

return export