Magic Squares of (probabilistically chosen) Words

2012-12-07

Thinking about magic squares, I had the idea of doing something roughly similar with words, but using usage patterns rather than arithmetic equations. I'm pasting below an example, using statistical data from Poe's texts:

Poe

thesamemannerasif
mostmomentinthiswe
intenseandhisheadwere
excitementwhichihaveno
greatlyhecouldnotone

The word on the top-left cell in the grid is the most frequently used in Poe's writing, "the" — unsurprisingly so, as it's the most frequently used word in the English language. Now, the word immediately to its right, "same," is there because "same" is one of the words that follows "the" most often in the texts we're looking at. The word below "the" is "most" because it also follows "the" very often. "Moment" is set to the right of "most" and below "same" because it's the word that most frequently follows both.

The same pattern is used to fill the entire 5-by-5 square. If you start at the topmost left square and then move down and/or to the right, although you won't necessarily be constructing syntactically correct phrases, the consecutive word pairs will be frequent ones in Poe's writing.

Although there are no ravens or barely sublimated necrophilia in the matrix, the texture of the matrix is rather appropriate, if not to Poe, at least to Romanticism. To convince you of that, here are the equivalent 5-by-5 matrices for Swift and Chesterton.

Swift

theworldandthenhe
sameinhismajestywould
manneralittlethatit
ofcertaintohaveis
theirownmakenomore

Chesterton

themanwhohadbeen
otherwiththatnoone
andhisitsaidsyme
thenownisicould
thereareonlythinkbe

At least compared against each other, it wouldn't be too far fetched to say that Poe's matrix is more Poe's than Chesterton's, and vice versa!

PS: Because I had a sudden attack of curiosity, here's the 5-by-5 matrix for my newest collection of short stories, Time of Punishment (pdf link).

Time of Punishment

theschoolwholeandeven
firstdanceboththenfour
chargerantsresistancetheythink
ofahundredfoundleads
punishmentnewastronautsmonthsleep

None