Spin a book

spinabook-book Spin-Spam-iPhone-Book

The {Spin|Spam} a Book project is an attempt to re-live {Literature|Art|Culture|Lifestyle|Tradition} and provide new meaningful experiences through text spinning by using the tools established by spammers all over the world to spread spam to recreate and generate culture. Spinning is a method to build multiple variation of text through the use of a thesaurus by selecting random synonyms to replace the original words or phrases; transforming the original text into a unique spun version.


The first step in the spinning process is to create a spintax version of the text. Spintax is a text string formatted in a way that include all the relevant synonyms to a word inside of it, once the spintax is composed we use an algorithm to create unique variation out of it.


The {Spin|Spam} a Book project will virally spread the heritage of spin culture and literature through traditional and nontraditional platforms. While our main focus of distribution is the online publication spinabook.com, we will like to extend the project reach to real life events (spun poetry reading), reproduction of popular plays, publication of hard covers and educational component (integration into school system curriculum).


As a foreigner I find that exposure to text spinning has a very positive effect on our brains and helps me to improve my vocabulary. People who interface spun text had shown increased creativity, cultural awareness and tolerance. An attempt to explain this may be that, we are so used to using the same words in our own thoughts, that when the spinner confront us with random alternative, our immediate reaction is to doubt it, but our subconscious recognize the value in it. Once our brain gets more familiar with spinning, it is automatically looking for random alternatives, almost like shaking the dust of the words we got used to thinking with. This obviously is being seeded in our brains and has an effect both on our internal process as well as the way we respond to external stimulations.

You can see the full spinner code I used here – https://github.com/screename/Spinner

however, I must warn you – if you are going to create a text spinner using nltk like I show in the example above, you may find it to be somewhat limited in terms of results, the two options you have is either to build your own synonyms database or buy one. I choose the first obviously. The code for spinning text is very strait forward, here are some of its highlights.

The main function to spin text is simply based on regex that randomly select a word from the options between the brackets, it looks like this

In-order to create the spintax we follow these steps

1. split the text to sentences
2. loop through the sentences and tokenize it into individual words
3. loop through each token, find its stem (the root of the word) and assemble all the possible synonyms of it into the spintax

The function uses the nltk regexp_tokenize to tokenize each sentence into words, then loop through each token find its stem and the corresponding synonym

 and this is it, all you have to do now is give it a spin

You can see how it all works at my spun books library, just pick up one of your favorite titles at the spin a book project.

here is a video of one of my favorite spun titles – “Conflict Guild” (Fight Club)

Related reading

Resources I came across while working on this project:

spinabook – http://spinabook.com/

python text spinner – https://github.com/screename/Spinner

nltk – http://nltk.org/

regex spinner – http://stackoverflow.com/questions/1810861/how-to-make-article-spinner-regex

The best spinner – http://thebestspinner.com/