Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
Line 23: Line 23:
ret.len = mw.ustring.gsub(word, "^(.)", "%1h")
ret.len = mw.ustring.gsub(word, "^(.)", "%1h")
elseif mw.ustring.find(word_l, "^gh[i]") then
elseif mw.ustring.find(word_l, "^gh[i]") then
ret.len = mw.ustring.gsub(word, "^(..)", "ch")
ret.len = mw.ustring.gsub(word, "^(..)", "%ch")
elseif mw.ustring.find(word_l, "^[h]") then
elseif mw.ustring.find(word_l, "^[h]") then
ret.len = mw.ustring.gsub(word, "^(.)", "g%1")
ret.len = mw.ustring.gsub(word, "^(.)", "g%1")