45,337
edits
No edit summary |
No edit summary |
||
Line 111: | Line 111: | ||
function export.morphemes(word) | function export.morphemes(word) | ||
local pss = {} | local pss = {} | ||
local m, n, i = 0, 0, | local m, n, i = 0, 0, 1 | ||
if gmatch(word,"·") then | if gmatch(word,"·") then | ||
Line 124: | Line 124: | ||
pss[i] = "ˈ" .. pss[i] | pss[i] = "ˈ" .. pss[i] | ||
end | end | ||
i=i+1 | |||
until gmatch(table.concat(pss),"ˈ") and gmatch(table.concat(pss),"ˌ") | until gmatch(table.concat(pss),"ˈ") and gmatch(table.concat(pss),"ˌ") | ||