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, 0 | |||
if gmatch(word,"·") then | if gmatch(word,"·") then | ||
pss = split(word,"·") | pss = split(word,"·") | ||
end | end | ||
while m~=1 and n~=1 do | |||
if m_sm. | if m_sm.prefix[i]==pss[i] then | ||
pss[i] = "ˌ" .. pss[i] | pss[i] = "ˌ" .. pss[i] | ||
m=m+1 | |||
elseif m_sm.suffix[m] then | |||
n=n+1 | |||
else | else | ||
pss[i] = "ˈ" .. pss[i] | pss[i] = "ˈ" .. pss[i] | ||
end | end | ||
i=i+1 | |||
end | end | ||