45,337
edits
(Created page with "local export = {} if type(word) == 'table' then do_debug = word.args[4] word = word.args[1] end local orig_word = word word = mw.ustring.lower(word or mw.title.getCu...") |
No edit summary |
||
Line 13: | Line 13: | ||
local V = "[aeiou]" -- vowel | local V = "[aeiou]" -- vowel | ||
local C = "[^aeiou.]" -- consonant | local C = "[^aeiou.]" -- consonant | ||
--"c" & "g" before "i" and "e" and all that stuff | --"c" & "g" before "i" and "e" and all that stuff | ||
Line 74: | Line 68: | ||
word = mw.ustring.gsub(word, "([pbktdɡ])%.([lɾ])", ".%1%2") | word = mw.ustring.gsub(word, "([pbktdɡ])%.([lɾ])", ".%1%2") | ||
word = mw.ustring.gsub(word, "(" .. C .. ")%.s(" .. C .. ")", "%1s.%2") | word = mw.ustring.gsub(word, "(" .. C .. ")%.s(" .. C .. ")", "%1s.%2") | ||
word = mw.ustring.gsub(word, "([ | word = mw.ustring.gsub(word, "([aeo])([aeo])", "%1.%2") | ||
word = mw.ustring.gsub(word, "([ | word = mw.ustring.gsub(word, "([i])([i])", "%1.%2") | ||
word = mw.ustring.gsub(word, "([ | word = mw.ustring.gsub(word, "([u])([u])", "%1.%2") | ||
table.insert(debug, word) | table.insert(debug, word) |