Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 83: | Line 83: | ||
local function lenition(word) | local function lenition(word) | ||
local _, c = stressed_components(word) | local _, c = stressed_components(word) | ||
local lenited | |||
for regex, repl in pairs(lenition_patterns) do | for regex, repl in pairs(lenition_patterns) do | ||
lenited = gsub(c, regex, repl) | |||
end | end | ||
return sub(word, 1, find(word, c)) .. lenited .. sub(word, -(#c+1)) | return sub(word, 1, find(word, c)) .. lenited .. sub(word, -(#c+1)) | ||