Module:dialect synonyms/yo/groups

local export = {}

export.gloss = "" export.syns = {}

local data = mw.loadData("Module:dialect synonyms/yo").varieties

for _,proto in ipairs(data) do	for _,family in ipairs(proto) do		local family_name = family.name:gsub("/.+","") local layer = {family} while layer[1] do			local children = {} for _,node in ipairs(layer) do				if node[1] then for _,child in ipairs(node) do						table.insert(children,child) end else export.syns[node.name] = {family_name} end end layer = children end end end

return export