local export = {}
export.gloss = ""
export.syns = {}
local data = mw.loadData("Module:dialect synonyms/yo").varieties
local layer = {data}
while layer do
local children = {}
for _,node in ipairs(layer) do
if node then
for _,child in ipairs(node) do
table.insert(children,child)
end
else
export.syns = {node.name}
end
end
layer = children
end
return export