Module:xchc-noun: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 56: Line 56:
local lastipa = match(pron(word), ".ː?$")
local lastipa = match(pron(word), ".ː?$")
local pautable = {["a"] = "н", ["e"] = "ч", ["ɛ"] = "н", ["i"] = "ч", ["o"] = "ӈ", ["ɔ"] = "ӈ", ["ø"] = "ч", ["u"] = "ӈ", ["y"] = "ч"}
local pautable = {["a"] = "н", ["e"] = "ч", ["ɛ"] = "н", ["i"] = "ч", ["o"] = "ӈ", ["ɔ"] = "ӈ", ["ø"] = "ч", ["u"] = "ӈ", ["y"] = "ч"}
data.pau = lastipa-- or gsubh("Bӈ",{["b"]="о̆",["f"]="э̆", ["ab"]="о̆"})
data.pau = pautable.lastipa or gsubh("Bӈ",{["b"]="о̆",["f"]="э̆", ["ab"]="о̆"})
data.pl = {
data.pl = {
["i"] = (pron(word):match(voiceless .. "ː?$") and "ш" or "ж") .. gsubh("Bд",{["b"]="о̆",["e"]="э̆", ["ab"]="о̆"}),
["i"] = (match(pron(word), voiceless .. "ː?$") and "ш" or "ж") .. gsubh("Bд",{["b"]="о̆",["e"]="э̆", ["ab"]="о̆"}),
["a"] = (pron(word):match(voiceless .. "ː?$") and "ф" or "в") .. gsubh("Rд",{["r"]="ө",["u"]="э", ["ar"]="э"}),
["a"] = (match(pron(word), voiceless .. "ː?$") and "ф" or "в") .. gsubh("Rд",{["r"]="ө",["u"]="э", ["ar"]="э"}),
}
}
Line 114: Line 114:
local decl = {
local decl = {
["nom"] = "",
["nom"] = "",
["acc"] = pron(w_number[n_sh]):match(vowel .. "ː?$") and "дза" or pron(w_number[n_sh]):match(voiced .. "ː?$") and "да" or "та",
["acc"] = match(pron(w_number[n_sh]), vowel .. "ː?$") and "дза" or match(pron(w_number[n_sh]), voiced .. "ː?$") and "да" or "та",
["dat"] = pron(w_number[n_sh]):match(vowel .. "ː?$") and "ша" or pron(w_number[n_sh]):match(voiced .. "ː?$") and "за" or "са",
["dat"] = match(pron(w_number[n_sh]), vowel .. "ː?$") and "ша" or match(pron(w_number[n_sh]), voiced .. "ː?$") and "за" or "са",
["gen"] = "ля",
["gen"] = "ля",
["ins"] = pron(w_number[n_sh]):match(vowel .. "ː?$") and "лза" or gsubh("Rлз",{["r"]="ө",["u"]="э",["ar"]="ө"}),
["ins"] = match(pron(w_number[n_sh]), vowel .. "ː?$") and "лза" or gsubh("Rлз",{["r"]="ө",["u"]="э",["ar"]="ө"}),
["pro"] = gsubh("сRц",{["r"]="ө",["u"]="э", ["ar"]="ө"}),
["pro"] = gsubh("сRц",{["r"]="ө",["u"]="э", ["ar"]="ө"}),
["ade"] = "ляц",
["ade"] = "ляц",

Navigation menu