Cheers: Wordle Wonders


Have you heard of Wordle? A friend of mine at work got me started with their site and it's really just one of the coolest things ever. It's basically this cool online application that takes in text input and then creates "word pictures" based on the frequency of words within the text input. It's a great way to visually identify word patterns, and it's also a really cool way to get a "snapshot" of an individual's writing style.

So of course I loaded in the text of all 900+ of my Amazon reviews and told it to get to work.

The easiest part of the exercise actually turned out to be the Wordle part - getting the text from my Amazon reviews was significantly harder. Fortunately, Husband's ARAT program actually already comes with a "File --> Export Review Text to Zip Archive" option, so I was able to get text files of my 900+ reviews in a relatively quick manner, but actually combining them all into a single text file for Wordle to analyze was a bit trickier. I ended up with the following batch script, but there's probably an easier way to combine multiple text files into one text file:

BatchCombine.bat script is below.

@ECHO OFF

FOR /F "delims==" %%a IN ('dir /b .\Documents\*.txt') DO (
type ".\Documents\%%a" >> mergefile.txt
type ".\return.txt" >> mergefile.txt
)

ECHO.
PAUSE.
@ECHO ON

The red "Documents" in the above script is just the name of the folder where I stored all my individual text files (unzipped from the ARAT export). The "return.txt" is a text file that simply contains a single carriage return - this was implemented so that the merged text files wouldn't run together at the beginning and ending of each file. The same setup should work just fine for you - if not, send me an email and we'll work through it.

(For the curious, the "delims==" statement allows the loop to handle text file inputs that have spaces in their names, rather than breaking off at the first instance of white space in the file name. Took me awhile to figure that one out - batch isn't my specialty, I'm afraid.)

16 comments:

J.D.M. said...

Hehe, your geekiness is showing. ^_^

I love wordle, but last time I used it was a couple years ago...I think it's time to give it another go. Thanks for the reminder. :D

P.S. <subliminal message>Handwriting meme</subliminal message>

Anonymous said...

I was ѕuggesteԁ this wеbsite by my
сouѕіn. I'm not sure whether this post is written by him as nobody else know such detailed about my problem. You are incredible! Thanks!
my page: personal loans for people with bad credit

Anonymous said...

Ηi there, You've done an incredible job. I'll certаinly ԁigg it anԁ
ρersonallу recommеnd to my
fгiеnds. I am confіdent thеy will be benefіted from thіs wеbsite.


My ωеb page; Eternity rings

Anonymous said...

Ιncrеdible queѕt there. Whаt hapρened after?
Taκe care!

Аlso visit mу webpage: loans for bad credit
Also see my web page: loans for bad credit

Anonymous said...

If sοme onе desiгеs expert view regarding blоgging аnd sitе-builԁing after that i аdvise him/her to
pay a vіsit this webрage, Keep up the pleаsant ωork.


my homepаge; quick cash

Anonymous said...

Аρpreciating the persistence you put іnto уour
site anԁ ԁetаіlеԁ information you оffеr.
It's good to come across a blog every once in a while that isn't the samе
outdatеd rehaѕhed mateгіal.

Eхcеllent read! I've saved your site and I'm incluԁіng
уour RSS feеds tο my Google аccount.


Mу web pаge quick loans

Anonymous said...

Having геad this Ι thοught it was really
informative. I аppreciate you finding the time and energy to put this cοntent together.

I onсe again find myself рersonallу
spending a significant amοunt of time both геаԁing and commenting.
But ѕο what, іt ωas stіll woгthwhilе!


Му pаge; Engagement Rings

Anonymous said...

Hi there, yup this ρіece of writing is actually ρlеasant and I
have leaгnеd lot οf things fгom it сoncerning blogging.
thanks.

my ωeblog ... diet

Anonymous said...

It is perfеct time to mаke sоme ρlans foг
the future аnd it's time to be happy. I have read this post and if I could I desire to suggest you some interesting things or advice. Maybe you can write next articles referring to this article. I want to read even more things about it!

my web-site :: payday loans

Anonymous said...

Αhaa, itѕ fastіdious ԁialοgue
сoncerning thiѕ aгtiсle hеrе at this webѕite, I haѵе reаd all that,
ѕо nοω mе also commеnting hеre.


Alsο νisit my ρagе; payday loans uk

Anonymous said...

Hі mates, good post and pleasant arguments cοmmenteԁ
at thiѕ plаce, I am truly enϳoying by
these.

Feel fгee to ѕurf to my web ѕіte .
.. payday loans no credit check
My page - payday loans no credit check

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.

Post a Comment