Module:siwa-pron: Difference between revisions

Jump to navigation Jump to search
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, 1
local i = 1
if gmatch(word,"·") then
if gmatch(word,"·") then
Line 118: Line 118:
repeat
repeat
if m_sm.prefix[i]==pss[i] then
for j=1,#m_sm.prefix do
pss[i] = "ˌ" .. pss[i]
if m_sm.prefix[i]==pss[i] then
elseif m_sm.suffix[m] then
pss[i] = "ˌ" .. pss[i]
else
elseif m_sm.suffix[m] then
pss[i] = "ˈ" .. pss[i]
else
end
pss[i] = "ˈ" .. pss[i]
i=i+1
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),"ˌ")