Module:affix: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,060: | Line 1,060: | ||
]==] | ]==] | ||
function export.show_compound(data) | function export.show_compound(data) | ||
local data_for_cats = m_table. | local data_for_cats = m_table.shallowCopy(data) | ||
data_for_cats.parts = {} | |||
for k, part in pairs(data.parts) do | |||
data_for_cats.parts[k] = m_table.shallowCopy(part) | |||
end | |||
data_for_cats.allow_no_affixes_or_compounds = true | data_for_cats.allow_no_affixes_or_compounds = true | ||
local categories = export.get_affix_categories_only(data_for_cats) | local categories = export.get_affix_categories_only(data_for_cats) | ||