45,660
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
local v = "([aeiouyůõảẻỉỏủỷę])" | local v = "([aeiouyůõảẻỉỏủỷę])" | ||
local lenition_patterns = { | local lenition_patterns = { | ||
[" | --geminated voiced stops | ||
["bb"] = "b", ["dd"] = "d", ["gg"] = "g", ["ġġ"] = "ġ", | |||
[" | --long sonorants | ||
["gį"] = "į", ["mm"] = "m", ["ll"] = "l", ["nn"] = "n", ["rr"] = "r", | |||
[" | --uvular stops | ||
["bġ"] = "p", ["pr"] = "p", ["dġ"] = "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 |