Module:siwa-noun/common: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6: Line 6:
local v = "([aeiouyůõảẻỉỏủỷę])"
local v = "([aeiouyůõảẻỉỏủỷę])"
local lenition_patterns = {
local lenition_patterns = {
[""] = "t", [v.."[vųbhḥg]"..v] = "%1%2", ["bb"] = "b", ["dd"] = "d", ["gg"] = "g", ["gį"] = "į", ["mm"] = "m", ["ll"] = "l", ["nn"] = "n",
--geminated voiced stops
["rr"] = "r", ["bġ"] = "p", ["pr"] = "p", ["tr"] = "t", ["ḍb"] = "p", ["ḍḍ"] = "hh",
["bb"] = "b", ["dd"] = "d", ["gg"] = "g", ["ġġ"] = "ġ",
["ḍg"] = "k", ["bm"] = "m", ["dn"] = "n", ["kn"] = "ng", ["([lr])pp"] = "%1p", ["([lr])tt"] = "%1t", ["([lrms])kk"] = "%1k",
--long sonorants
["k([lvs])"] = "g%1", ["ps"] = "bs", ["d[aou]"] = "l", ["ġ[aou]"] = "vv", ["[dġ][eůy]"] = "", ["[]i"] = "ṡi",
["gį"] = "į", ["mm"] = "m", ["ll"] = "l", ["nn"] = "n", ["rr"] = "r",
["di"] = "", ["nįi"] = "ɟi", ["hhį"] = "ṡ", ["[ou]ų"] = "ů", ["dl"] = "l",
--uvular stops
["bġ"] = "p", ["pr"] = "p", [""] = "t", ["tr"] = "t",
--glottalized stops
["bm"] = "m", ["dn"] = "n", ["kn"] = "ng",
--consonant clusters
["dl"] = "l", ["([lr])pp"] = "%1p", ["([lr])tt"] = "%1t", ["([lrms])kk"] = "%1k",["ps"] = "bs", ["k([lvs])"] = "g%1",
--voiced consonants
["vv"] = "", [v.."[vųbhḥg]"..v] = "%1%2", ["d[aou]"] = "l", ["[dġ][ieůy]"] = "", ["ġ[aou]"] = "vv",
--Ci#
["[rġ]i"] = "ṡi", ["nįi"] = "gįi", ["hhį"] = "ṡ",
--long voiceless consonants
["ḍb"] = "p", ["ḍḍ"] = "hh", ["ḍg"] = "k",
--semi-vowels
["[ou]ų"] = "ů",
}
}
for regex, repl in pairs(lenition_patterns) do
for regex, repl in pairs(lenition_patterns) do