Module:siwa-noun/common: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 27: Line 27:
["[ou]ų"] = "ů",
["[ou]ų"] = "ů",
}
}
for regex, repl in pairs(lenition_patterns) do
for regex, repl in pairs(lenition_patterns) do
lenited = gsub(word, regex, repl, 1)
if word:match("<.*>") then
lenited = gsub(word, "<" .. regex .. ">", repl, 1)
else
lenited = gsub(word, regex, repl, 1)
end
if lenited ~= word then return lenited end
if lenited ~= word then return lenited end
end
end