48,407
edits
No edit summary |
No edit summary |
||
| Line 61: | Line 61: | ||
local pautable = { | local pautable = { | ||
{"(э | {"(э%W?%W)$", "н"}, {"([ая]%W?)$", "н"}, | ||
{"([ою] | {"([ою]%W?%W?)$", "ӈ"}, {"(е%W?%W)$", "ӈ"}, {"([уӯ])$", "ӈ"}, | ||
{"([эеыөү] | {"([эеыөү]%W?)$", "ч"}, {"([иӣ])$", "ч"}, | ||
} | } | ||
--data.pau = nil | --data.pau = nil | ||
if word:match(vowel .. "$") then | if mw.ustring.toNFD(word):match(vowel .. "$") then | ||
for _, ms in ipairs(pautable) do | for _, ms in ipairs(pautable) do | ||
if word:match(ms[1]) then | if word:match(ms[1]) then | ||