Module:rad-stem: Difference between revisions

Added vocative
mNo edit summary
(Added vocative)
Line 34: Line 34:
}
}


light_noun_data = {
light_noun_data = { -- NOM, V, ^V, dat, acc, ins, pl, voc
['a^e'] = {"Ra", "a", "e", "an", "ast"},
['a^e'] = {"Ra", "a", "e", "an", "ast"},
['a^o'] = {"Ra", "a", "u", "an", "ast"},
['a^o'] = {"Ra", "a", "u", "an", "ast"},
['ai'] = {"ai", "ai"},
['ai'] = {"ai", "ai"},
['áj'] = {"ájr", "áj"},
['áj'] = {"áj", "áj"},
['au'] = {"au", "au"},
['au'] = {"au", "au"},
['e'] = {"Ra", "e", "i"},
['e'] = {"Ra", "e", "i"},
Line 58: Line 58:
['yG'] = {"ýr", "ýj", "øa", "ýd", "yúr", "ý"},
['yG'] = {"ýr", "ýj", "øa", "ýd", "yúr", "ý"},
['yeG'] = {"ỷr", "ỷ", "yea", "ỷd", "yeúr", "ỷ"},
['yeG'] = {"ỷr", "ỷ", "yea", "ỷd", "yeúr", "ỷ"},
['G'] = {"jr", "j", "a", "x", "úr", "j"},
['G'] = {"jr", "j", "a", "x", "úr", "j", "șe"},
}
}


Line 255: Line 255:
local principle_parts = {
local principle_parts = {
["nom"] = "",
["nom"] = "",
["voc"] = "",
["gen"] = "",
["gen"] = "",
["dat"] = "",
["dat"] = "",
Line 379: Line 380:
principle_parts["acc"] = stem_broken .. "=d"
principle_parts["acc"] = stem_broken .. "=d"
end
end
principle_parts["voc"] = principle_parts["nom"] .. "e"
if (ending == 'v' or ending == 'r') and stem_raised == stem then
if (ending == 'v' or ending == 'r') and stem_raised == stem then
principle_parts["gen"] = stem .. "=g"
principle_parts["gen"] = stem .. "=g"
Line 395: Line 397:
elseif ending == 'nj^e' then
elseif ending == 'nj^e' then
principle_parts["nom"] = stem_broken .. "nș"
principle_parts["nom"] = stem_broken .. "nș"
principle_parts["voc"] = stem_broken .. "nșe"
principle_parts["gen"] = stem_broken_e .. "njesk"
principle_parts["gen"] = stem_broken_e .. "njesk"
principle_parts["dat"] = stem_broken_e .. "=" .. "nja"
principle_parts["dat"] = stem_broken_e .. "=" .. "nja"
Line 404: Line 407:
elseif ending == 't^o' then
elseif ending == 't^o' then
principle_parts["nom"] = stem_broken .. "ts"
principle_parts["nom"] = stem_broken .. "ts"
principle_parts["voc"] = stem_broken .. "tse"
principle_parts["gen"] = stem .. "tusk"
principle_parts["gen"] = stem .. "tusk"
principle_parts["dat"] = stem .. "ta"
principle_parts["dat"] = stem .. "ta"
Line 413: Line 417:
elseif stem_data[ending] == 'V' then
elseif stem_data[ending] == 'V' then
principle_parts["nom"] = stem_broken_e .. "=" .. light_noun_data[ending][1]
principle_parts["nom"] = stem_broken_e .. "=" .. light_noun_data[ending][1]
principle_parts["voc"] = stem .. "=" .. light_noun_data[ending][2] .. "se"
principle_parts["gen"] = stem .. "=" .. (light_noun_data[ending][3] or light_noun_data[ending][2]) .. "sk"
principle_parts["gen"] = stem .. "=" .. (light_noun_data[ending][3] or light_noun_data[ending][2]) .. "sk"
principle_parts["dat"] = stem .. "=" .. (light_noun_data[ending][4] or (light_noun_data[ending][2] .. "n"))
principle_parts["dat"] = stem .. "=" .. (light_noun_data[ending][4] or (light_noun_data[ending][2] .. "n"))
Line 424: Line 429:
elseif stem_data[ending] == 'G' then
elseif stem_data[ending] == 'G' then
principle_parts["nom"] = stem_broken .. light_noun_data[ending][1]
principle_parts["nom"] = stem_broken .. light_noun_data[ending][1]
principle_parts["voc"] = stem .. light_noun_data[ending][7]
principle_parts["gen"] = stem_broken .. light_noun_data[ending][2]
principle_parts["gen"] = stem_broken .. light_noun_data[ending][2]
principle_parts["dat"] = stem .. light_noun_data[ending][3]
principle_parts["dat"] = stem .. light_noun_data[ending][3]