Module:xchc-noun: Difference between revisions

No edit summary
No edit summary
Line 44: Line 44:
backh = word:match("ɛ") and "ɛ" or word:match("ɔ") and "ɔ" or nil
backh = word:match("ɛ") and "ɛ" or word:match("ɔ") and "ɔ" or nil
local singular = word
local singular = word
local paucal = wordpron:matchEnd("[eiøy]") and "ч" or wordpron:matchEnd("[ɛa]") and "н" or wordpron:matchEnd("[uoɔ]") and "ӈ" or gsubh("Vӈ", "о̆", "э̆", "о̆")
local paucal = wordpron:matchEnd("[eiøy]") and "ч"
  or wordpron:matchEnd("[ɛa]") and "н"
  or wordpron:matchEnd("[uoɔ]") and "ӈ"
  or gsubh("Vӈ", "о̆", "э̆", "о̆")
local plural = {
local plural = {
["i"] = wordpron:matchEnd(voiceless) and gsubh("фVд","ө","э","э") or gsubh("вVд","ө","э","э"),
["i"] = wordpron:matchEnd(voiceless) and gsubh("фVд","ө","э","э") or gsubh("вVд","ө","э","э"),