Module:dialect synonyms/yo/all-lects

local export = {}

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

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

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] = {node.name} end end layer = children end

return export