Module:User:Quantum10000/mu-render-2

-- Define the module local M = {}

local rfind = mw.ustring.find local rsubn = mw.ustring.gsub -- Use rsubn local rsplit = mw.text.split

local C = "ptCksSxhmnwylzf" -- consonants local voicelessObstruents = "ptCksSxhz" -- voiceless obstruents local vowels = "aeiouAEIO" -- vowels local v = {"a", "i", "e", "o", "u"} -- short vowels local V = {"A", "I", "E", "O"} -- long vowels

-- Rule R1 local function R1(inStr) local output = inStr output = rsubn(output, "l%-kE", "h%-kE") if rsubn(output, -3) == "l%-k" then output = rsubn(output, "l%-k$", "h%-k") end return output end

-- Define the main function crunch function M.crunch(input) local output = input

-- Applying the rules output = R1(output)

return output end

-- Export the module using colon instead of dot return M