Module:xchc-noun: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 61: Line 61:


local pautable = {
local pautable = {
{"(э" .. c.macron .. "?" .. c.breve .. ")$", "н"}, {"([ая]" .. c.macron .. "?)$", "н"},
{"(э%W?%W)$", "н"}, {"([ая]%W?)$", "н"},
{"([ою]" .. c.macron .. "?" .. c.breve .. "?)$", "ӈ"}, {"(е" .. c.macron .. "?" .. c.diaer .. ")$", "ӈ"}, {"([уӯ])$", "ӈ"},
{"([ою]%W?%W?)$", "ӈ"}, {"(е%W?%W)$", "ӈ"}, {"([уӯ])$", "ӈ"},
{"([эеыөү]" .. c.macron .. "?)$", "ч"}, {"([иӣ])$", "ч"},
{"([эеыөү]%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

Navigation menu