Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
local vowels = "[aeiouyůõảẻỉỏủỷęȯởử]" | local vowels = "[aeiouyůõảẻỉỏủỷęȯởử]" | ||
local consonants = "[mpbvntdsṡʦʨʥŋɲcɟħðrṁṅḥkgġhłƛɬḍ]" | local consonants = "[mpbvntdsṡʦʨʥŋɲcɟħðrṁṅḥkgġhłƛɬḍ]" | ||
local cases = {"u", "m", "ine", "ill", "ela", "ade", "all", "abl"} | |||
local function dedigraphicize(word) | local function dedigraphicize(word) | ||
| Line 109: | Line 111: | ||
end | end | ||
n = 1 | |||
if g == "i" then | if g == "i" then | ||
if parent_args.m then data.forms["m"][1] = parent_args["m"] end | if parent_args.m then data.forms["m"][1] = parent_args["m"] end | ||
-- Diphthong coalescence in | -- Diphthong and long vowel coalescence | ||
for _, case in ipairs(cases) do | |||
while data.forms[case][n] ~= nil do | |||
for regex, repl in pairs(m_com.triphthong_coalescence) do | |||
data.forms[case][n] = gsub(data.forms[case][n], regex, repl) | |||
end | |||
n = n + 1 | |||
end | |||
end | |||
if data.forms["ine"] then | if data.forms["ine"] then | ||
data.forms["ine"][1] = gsub(data.forms["ine"][1], "([aoueů])ia$", "%1įa") | data.forms["ine"][1] = gsub(data.forms["ine"][1], "([aoueů])ia$", "%1įa") | ||