Wordplay Demos

This Class contains lots of little functions for playing with words I made in my spare time, if you have any suggestions or improvements please make them. You can download or fork the code at Github

Example usage:

    require_once "wordplay.php";
    
$wordTest = new Wordplay();

    
echo $wordTest->randomCaps("The quick brown fox jumps over the lazy dog.");
    
// result: tHe qUick BRoWn Fox jumpS oveR THE lAzy dog.


Original Text

In what we may term 'prescientific days' people were in no uncertainty about the interpretation of dreams. When they were recalled after awakening they were regarded as either the friendly or hostile manifestation of some higher powers, demoniacal and Divine. With the rise of scientific thought the whole of this expressive mythology was transferred to psychology; to-day there is but a small minority among educated persons who doubt that the dream is the dreamer's own psychical act.


Random Caps

In whAt we may teRM 'PreSCientific DaYS' pEoPlE werE in no uNCErtaINty about The iNTeRpreTAtIOn of dReAms. wHEN THey were rEcAlleD AfTER awaKEniNg tHeY weRe rEgaRded As eiThEr the FRiEndly Or hostile manIfEstaTiON OF SOmE hiGHer poweRS, dEmoniACAl And DiViNe. with thE rIse of ScIentifiC thougHT the whole Of this EXpresSIVe myTHOlogy WAs TransferREd TO PSychOlOGY; to-Day THerE is BUt a smALl minoriTY Among educatED persOnS Who doubt ThAt tHE drEam Is the dReAmeR'S OWN pSYchical aCT.


Alternating Caps

In wHaT We mAy tErM 'pReScIeNtIfIc dAyS' pEoPlE WeRe iN No uNcErTaInTy aBoUt tHe iNtErPrEtAtIoN Of dReAmS. wHeN ThEy wErE ReCaLlEd aFtEr aWaKeNiNg tHeY WeRe rEgArDeD As eItHeR ThE FrIeNdLy oR HoStIlE MaNiFeStAtIoN Of sOmE HiGhEr pOwErS, dEmOnIaCaL AnD DiViNe. WiTh tHe rIsE Of sCiEnTiFiC ThOuGhT ThE WhOlE Of tHiS ExPrEsSiVe mYtHoLoGy wAs tRaNsFeRrEd tO PsYcHoLoGy; To-dAy tHeRe iS BuT A SmAlL MiNoRiTy aMoNg eDuCaTeD PeRsOnS WhO DoUbT ThAt tHe dReAm iS ThE DrEaMeR'S OwN PsYcHiCaL AcT.


Shuffle Words Inner Letters

In waht we may trem 'ineftepiriscc days' polepe wree in no utcaniertny about the ianirpotrtteen of dmares. Wehn tehy were rlaeecld after anawnekig tehy were rereagdd as eetihr the feldriny or htslioe mfataistioenn of some hhegir powers, dciaeanoml and Dnviie. Wtih the rise of senciftiic tghhuot the whole of this evpexisrse motgylhoy was teafrsnrerd to pslcygohoy; ta-doy tehre is but a samll mtoiirny aomng eautecdd peonrss who dbuot taht the deram is the derrae'ms own pshcyiacl act.


Reverse Letters

nI tahw ew yam mret cifitneicserp' syad' elpoep erew ni on ytniatrecnu tuoba eht noitaterpretni fo smaerd. nehW yeht erew dellacer retfa gninekawa yeht erew dedrager sa rehtie eht yldneirf ro elitsoh noitatsefinam fo emos rehgih srewop, lacainomed dna eniviD. htiW eht esir fo cifitneics thguoht eht elohw fo siht evisserpxe ygolohtym saw derrefsnart ot ygolohcysp; yad-ot ereht si tub a llams ytironim gnoma detacude snosrep ohw tbuod taht eht maerd si eht s'remaerd nwo lacihcysp tca.


Sort Words Alphabetically

' ' ' a about act after among and as awakening but days demoniacal divine doubt dream dreamer dreams educated either expressive friendly higher hostile in in interpretation is is manifestation may minority mythology no of of of of or own people persons powers, prescientific psychical psychology; recalled regarded rise s scientific small some term that the the the the the the there they they this thought to to-day transferred uncertainty was we were were were what when who whole with.


Reverse Words

Dreams of interpretation the about uncertainty no in were people days' 'prescientific term may we what in. Divine and demoniacal powers, higher some of manifestation hostile or friendly the either as regarded were they awakening after recalled were they when. Act psychical own dreamer's the is dream the that doubt who persons educated among minority small a but is there to-day psychology; to transferred was mythology expressive this of whole the thought scientific of rise the with.


Reverse Words & Letters

Smaerd fo noitaterpretni eht tuoba ytniatrecnu on ni erew elpoep syad' cifitneicserp' mret yam ew tahw ni. Enivid dna lacainomed srewop, rehgih emos fo noitatsefinam elitsoh ro yldneirf eht rehtie sa dedrager erew yeht gninekawa retfa dellacer erew yeht nehw. Tca lacihcysp nwo s'remaerd eht si maerd eht taht tbuod ohw snosrep detacude gnoma ytironim llams a tub si ereht yad-ot ygolohcysp; ot derrefsnart saw ygolohtym evisserpxe siht fo elohw eht thguoht cifitneics fo esir eht htiw.


Shuffle Words

In dreams interpretation 'prescientific of term uncertainty we may about people were in what no the days'. Regarded were they were awakening hostile recalled manifestation powers, and after higher friendly or either as some divine demoniacal when they of the. Of educated doubt small thought rise that dream whole own psychology; to the there but with dreamer's scientific who transferred is was minority to-day among this expressive persons the is mythology the act of psychical the a.


Shuffle Sentences

In what we may term 'prescientific days' people were in no uncertainty about the interpretation of dreams. With the rise of scientific thought the whole of this expressive mythology was transferred to psychology; to-day there is but a small minority among educated persons who doubt that the dream is the dreamer's own psychical act. When they were recalled after awakening they were regarded as either the friendly or hostile manifestation of some higher powers, demoniacal and Divine.


Remove Vowels

n wht w my trm 'prscntfc dys' ppl wr n n ncrtnty bt th ntrprttn f drms. Whn thy wr rclld ftr wknng thy wr rgrdd s thr th frndly r hstl mnfsttn f sm hghr pwrs, dmncl nd Dvn. Wth th rs f scntfc thght th whl f ths xprssv mythlgy ws trnsfrrd t psychlgy; t-dy thr s bt smll mnrty mng dctd prsns wh dbt tht th drm s th drmr's wn psychcl ct.


Shift Vowels

en whut wa muy tarm 'prasceantefec duys' paipla wara en ni oncartuenty ubiot tha entarpratutein if draums. Whan thay wara racullad uftar uwukaneng thay wara ragurdad us aethar tha freandly ir histela munefastutein if sima heghar piwars, damineucul und Devena. Weth tha resa if sceantefec thioght tha whila if thes axprasseva mythiligy wus trunsfarrad ti psychiligy; ti-duy thara es bot u smull menirety uming adocutad parsins whi diobt thut tha draum es tha draumar's iwn psychecul uct.


Swap ! and ?

In what we may term 'prescientific days' people were in no uncertainty about the interpretation of dreams. When they were recalled after awakening they were regarded as either the friendly or hostile manifestation of some higher powers, demoniacal and Divine. With the rise of scientific thought the whole of this expressive mythology was transferred to psychology; to-day there is but a small minority among educated persons who doubt that the dream is the dreamer's own psychical act.


Creative Commons License
Wordplay by Jedidiah Broadbent is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.