Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 111: Line 111:
function export.morphemes(word)
function export.morphemes(word)
local pss = {}
local pss = {}
local i = 1
if gmatch(word,"·") then
if gmatch(word,"·") then
Line 118: Line 117:
repeat
repeat
for j=1,table.getn(m_sm.prefix) do
for _, morph in ipairs(pss) do
if m_sm.prefix[j]==pss[i] then
for i=1,15,1 do
pss[i] = "ˌ" .. pss[i]
if morph==m_sm.prefix[i] then
elseif m_sm.suffix[j] then
pss[i] = "ˌ" .. pss[i]
else
end
pss[i] = "ˈ" .. pss[i]
end
end
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),"ˌ")