2,788
edits
No edit summary |
No edit summary |
||
Line 48: | Line 48: | ||
local function format_inflections(data) | local function format_inflections(data) | ||
if ((not data.inflections) | if ((not data.inflections) and (not data.labels)) or (#data.inflections < 1 and #data.labels < 1) then return nil end | ||
local out = {} | local out = {} | ||
for _, inflection in pairs(data.inflections) do | for _, inflection in pairs(data.inflections) do |