Module:ryn-mut: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 45: Line 45:
if next_initial == "r" or next_initial == "l" then
if next_initial == "r" or next_initial == "l" then
initial = initial .. next_initial
initial = initial .. next_initial
prevowel = mw.ustring.find(mw.ustring.sub(term, 3, 3), vowel_pattern)
prevowel = mw.ustring.find(mw.ustring.sub(term, 3, 3), vowel_pattern) and true or false
remainder = mw.ustring.sub(term, 3)
remainder = mw.ustring.sub(term, 3)
return initial, false, prevowel, remainder
return initial, false, prevowel, remainder
end
end
end
end
prevowel = mw.ustring.find(mw.ustring.sub(term, 2, 2), vowel_pattern)
prevowel = mw.ustring.find(mw.ustring.sub(term, 2, 2), vowel_pattern) and true or false
remainder = mw.ustring.sub(term, 2)
remainder = mw.ustring.sub(term, 2)
local vowel = mw.ustring.find(initial, vowel_pattern) and true or false
local vowel = mw.ustring.find(initial, vowel_pattern) and true or false
Line 69: Line 69:
return change .. data.remainder
return change .. data.remainder
end
end
if data.prevowel and (not mw.ustring.sub(data.remainder, 1, 1) == "i") then
if data.prevowel and (not (mw.ustring.sub(data.remainder, 1, 1) == "i")) then
return data.initial .. "i" .. data.remainder
return data.initial .. "i" .. data.remainder
end
end

Navigation menu