This module generates a table which maps canonical family names to family codes. It is then loaded using mw.loadData() to perform data lookup by name.


local export = {}

for code, data in pairs(require("Module:families/data")) do
	export[data[1]] = code
end
for code, data in pairs(require("Module:families/data/etymology")) do
	export[data[1]] = export[data[1]] or data.main_code or code
end

return export
"https://si.wiktionary.org/w/index.php?title=Module:families/by_name&oldid=54932" වෙතින් සම්ප්‍රවේශනය කෙරිණි