Module:snon-mut: Difference between revisions

No edit summary
Undo revision 526485 by Sware (talk)
Tag: Undo
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:


local export = {}
local export = {}
local words = mw.text.split("hello world hi", "%s")
local first = table.remove(words, 1)
local ords = words


function export.mutations(ret, args)
function export.mutations(ret, args)
Line 20: Line 25:
local vowels = "([aeiouàèìòù])"
local vowels = "([aeiouàèìòù])"
local apostrophe
local apostrophe
words = " " .. table.concat(table.remove(words, 1), " ")
words[1] = " "
words = table.concat(words, " ")
if args.len then
if args.len then