-- This module takes text and puts the letters of all the words in random -- order. You probably shouldn't use it in articles.localmRandom=require('Module:Random')locallang=mw.language.getContentLanguage()localp={}functionp._main(text)text=mw.ustring.gsub(text,'%f[^%s\0]%w+%f[%s\0]',function(s)localisFirstCapitalized=mw.ustring.find(s,'^%u%l*$')s=mRandom.main('list',mw.text.split(s,''))-- Make an array of characters, randomize it, and concatenate the result.ifisFirstCapitalizedthens=mw.ustring.lower(s)s=lang:ucfirst(s)endreturnsend)returntextendfunctionp.main(frame)localtext=frame.args[1]text=mw.text.trim(text)returnp._main(text)endreturnp