Module:dialect synonyms/yo/groups
Appearance
- The following documentation is located at Module:dialect synonyms/yo/groups/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
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