Module:xchc-noun: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 59: Line 59:
data.g = g
data.g = g
data.sg = ""
data.sg = ""
local lastipa = match(pron(word), "(.?$")
 
local pautable = {["a"] = "н", ["e"] = "ч", ["ɛ"] = "н", ["i"] = "ч", ["o"] = "ӈ", ["ɔ"] = "ӈ", ["ø"] = "ч", ["u"] = "ӈ", ["y"] = "ч"}
local pautable = {
data.pau = pautable[lastipa] or gsubh(word, "Bӈ",{["b"]="о̆",["f"]="э̆", ["ab"]="о̆"})
{"(э" .. c.macron .."?" .. c.breve ")$", "н"}, {"([ая]" .. c.macron .."?)$", "н"},
{"([оуюӯ]" .. c.macron .."?" .. c.breve "?)$", "ӈ"},  
{"([эеыиӣөү]" .. c.macron .."?)$", "ч"},  
}
data.pau = ""
for mat, suf in ipairs(pautable) do
if word:match(mat) then
data.pau = suf
break
end
end
if not data.pau then
data.pau = gsubh(word, "Bӈ",{["b"]="о̆",["f"]="э̆", ["ab"]="о̆"})
end
data.pl = {
data.pl = {
["i"] = (match(pron(word), voiceless .. "ː?$") and "ш" or "ж") .. gsubh(word, "Bд",{["b"]="о̆",["e"]="э̆", ["ab"]="о̆"}),
["i"] = (match(word, "[" .. voiceless .. "]" .. c.macron .. "?$") and "ш" or "ж") .. gsubh(word, "Bд",{["b"]="о̆",["e"]="э̆", ["ab"]="о̆"}),
["a"] = (match(pron(word), voiceless .. "ː?$") and "ф" or "в") .. gsubh(word, "Rд",{["r"]="ө",["u"]="э", ["ar"]="э"}),
["a"] = (match(word, "[" .. voiceless .. "]" .. c.macron .. "?$") and "ф" or "в") .. gsubh(word, "Rд",{["r"]="ө",["u"]="э", ["ar"]="э"}),
}
}

Navigation menu