Module:snon-mut: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 16: Line 16:


local mutation_rules = {
local mutation_rules = {
["b"] = {true, "m", "bh"},
["b"] = {"b", "m", "bh"},
["c"] = {"g", "ngh", "ch"},
["c"] = {"g", "ngh", "ch"},
["d"] = {true, "n", "dh"},
["d"] = {"d", "n", "dh"},
["g"] = {true, "ng", "gh"},
["g"] = {"g", "ng", "gh"},
["h"] = {"gh", "nh", "'"},
["h"] = {"gh", "nh", "'"},
["l"] = {true, true, "lh"},
["l"] = {"l", "l", "lh"},
["m"] = {"b", true, "mh"},
["m"] = {"b", "m", "mh"},
["n"] = {"d", true, "nh"},
["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"] = {true, true, "rh"},
["r"] = {"r", "r", "rh"},
["s"] = {"z", "nh","sh"},
["s"] = {"z", "nh","sh"},
["t"] = {"d", "nh", "th"},
["t"] = {"d", "nh", "th"},
["ch"] = true
}
}


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