Module:xchc-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 38: Line 38:
local roundh = ipa:match("[yuøo]") and "r" or ipa:match("[ie]") and "u" or nil
local roundh = ipa:match("[yuøo]") and "r" or ipa:match("[ie]") and "u" or nil
local repl = {["r"] = data.r, ["u"] = data.u}
local repl = {["r"] = data.r, ["u"] = data.u}
return word:gsub("R", repl[roundh or def])
return word:gsub("R", ipa)
end
end


Line 61: Line 61:
data.pl = {
data.pl = {
["i"] = (wordpron(word):match(voiceless .. "ː?$") and "ш" or "ж") .. gsubbh("Bд",{["o"]="о̆",["e"]="э̆"},"ɔ"),
["i"] = (wordpron(word):match(voiceless .. "ː?$") and "ш" or "ж") .. gsubbh("Bд",{["o"]="о̆",["e"]="э̆"},"ɔ"),
["a"] = (wordpron(word):match(voiceless .. "ː?$") and "ф" or "в") .. gsubrh("Rд",{["r"]="ө",["u"]="a"},"u"),
["a"] = (wordpron(word):match(voiceless .. "ː?$") and "ф" or "в") .. gsubrh("Rд",{["r"]="ө",["u"]="э"},"u"),
}
}