Module:snon-mut: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
Line 17: Line 17:
local mutation_rules = {
local mutation_rules = {
["b"] = {"bb", "m", "bh"},
["b"] = {"bb", "m", "bh"},
["bh"] = {"b", "m", "gh"},
["c"] = {"g", "ngh", "ch"},
["c"] = {"g", "ngh", "ch"},
["ch"] = {"gh", "ngh", "h"},
["d"] = {"dd", "n", "dh"},
["d"] = {"dd", "n", "dh"},
["dh"] = {"d", "n", "gh"},
["g"] = {"gg", "ng", "gh"},
["g"] = {"gg", "ng", "gh"},
["h"] = {"gh", "nh", "ch"},
["h"] = {"gh", "nh", "'"},
["l"] = {"ll", "l", "lh"},
["l"] = {"l", "l", "lh"},
["m"] = {"m", "mm", "mh"},
["m"] = {"m", "mm", "mh"},
["n"] = {"n", "nn", "nh"},
["n"] = {"n", "nn", "nh"},
["p"] = {"b", "mh", "ph"},
["p"] = {"b", "mh", "ph"},
["ph"] = {"bh", "mh", "h"},
["f"] = {"v", "mh", "fh"},
["r"] = {"rr", "r", "rh"},
["v"] = {"b", "m", "vh"},
["r"] = {"r", "r", "rh"},
["s"] = {"z", "nh","sh"},
["s"] = {"z", "nh","sh"},
["t"] = {"d", "nh", "th"},
["t"] = {"d", "nh", "th"},
["th"] = {"dh", "nh", "ch"},
}
}


Line 130: Line 127:
result = result .. '\n! ' .. (data.vowel and 'gh-prothesis' or '[[soft mutation|voiced]]')
result = result .. '\n! ' .. (data.vowel and 'gh-prothesis' or '[[soft mutation|voiced]]')
result = result .. '\n! ' .. (data.vowel and 'n-prothesis' or '[[nasal mutation|nasal]]')
result = result .. '\n! ' .. (data.vowel and 'n-prothesis' or '[[nasal mutation|nasal]]')
result = result .. '\n! ' .. (data.vowel and 'ch-prothesis' or '[[aspirate mutation|aspirate]]')
result = result .. '\n! ' .. (data.vowel and 'h-prothesis' or '[[aspirate mutation|lenition]]')
result = result .. '\n|-'
result = result .. '\n|-'
result = result .. '\n| ' .. require("Module:links").full_link({lang = lang, term = data.radical})
result = result .. '\n| ' .. require("Module:links").full_link({lang = lang, term = data.radical})