Module:snon-mut: Difference between revisions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 16: | Line 16: | ||
local mutation_rules = { | local mutation_rules = { | ||
["b"] = { | ["b"] = {"b", "m", "bh"}, | ||
["c"] = {"g", "ngh", "ch"}, | ["c"] = {"g", "ngh", "ch"}, | ||
["d"] = { | ["d"] = {"d", "n", "dh"}, | ||
["g"] = { | ["g"] = {"g", "ng", "gh"}, | ||
["h"] = {"gh", "nh", "'"}, | ["h"] = {"gh", "nh", "'"}, | ||
["l"] = { | ["l"] = {"l", "l", "lh"}, | ||
["m"] = {"b", | ["m"] = {"b", "m", "mh"}, | ||
["n"] = {"d", | ["n"] = {"d", "n", "nh"}, | ||
["p"] = {"b", "mh", "ph"}, | ["p"] = {"b", "mh", "ph"}, | ||
["f"] = {"v", "mh", "fh"}, | ["f"] = {"v", "mh", "fh"}, | ||
["v"] = {"b", "m", "vh"}, | ["v"] = {"b", "m", "vh"}, | ||
["r"] = { | ["r"] = {"r", "r", "rh"}, | ||
["s"] = {"z", "nh","sh"}, | ["s"] = {"z", "nh","sh"}, | ||
["t"] = {"d", "nh", "th"}, | ["t"] = {"d", "nh", "th"}, | ||
} | } | ||
| Line 43: | Line 42: | ||
if data.vowel then | if data.vowel then | ||
data.final = term_lower | data.final = term_lower | ||
if not (normalized:match("^i[aeiou]")) then | |||
data.mut1 = "gh-" | data.mut1 = "gh-" | ||
data.mut2 = "n-" | data.mut2 = "n-" | ||
data.mut3 = "h-" | data.mut3 = "h-" | ||
end | |||
return data | return data | ||
end | end | ||
| Line 68: | Line 69: | ||
end | end | ||
data.colloquial = mut.colloquial | data.colloquial = mut.colloquial | ||
end | end | ||