Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textillating (output: Extremely Great Expectations) #96

robincamille opened this issue Nov 30, 2018 · 1 comment

Textillating (output: Extremely Great Expectations) #96

robincamille opened this issue Nov 30, 2018 · 1 comment


Copy link

@robincamille robincamille commented Nov 30, 2018

Ever wished the novel you were reading was way more exciting? Try Textillating it!

The user inputs a .txt file (like a novel), and my script outputs a modified version of the file wherein most adjectives have been replaced by their most extreme synonyms. In other words, the affect has been amped up.

This project uses the VADER sentiment analysis tools and WordNet from NLTK (Natural Language Tool Kit). The SentimentIntensityAnalyzer quantifies how affective a word is. Then the script checks for any synonyms from WordNet that have more extreme scores. So large might be replaced by great, and terrible might be replaced by abhorrent. If there are no viable synonyms, an intensifying adverb is added to modify the adjective.

I chose a book I never finished, Great Expectations, as my example. Is the output readable? Kind of! Does it have more extreme language and way more exclamation points? Definitely!!!!!!!!!

See my repo for the code and longer explanation with examples.

View the output for Great Expectations.

(Caveat for literary types who are offended that some might consider Dickens and the like boring: I'm a librarian who's made peace with her own reading preferences and feels very relieved not to have to read all 1000 classic novels in the Western canon. Unless they've been Textillated, of course.)

@hugovk hugovk added the completed label Dec 1, 2018

This comment has been minimized.

Copy link

@hugovk hugovk commented Dec 1, 2018

I like all the extra exclamation marks!!!!!

There is already lodged in my hands a sum of money amply EMPHATICALLY SUFFICIENT for your WORTHY education and maintenance! You will please consider me your DEFENDER! Oh!!!!!!!!!!!!!


@hugovk hugovk added the preview label Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.