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

A tale of many swaps by Smooth Dickens #141

Open
sperez8 opened this issue Nov 30, 2019 · 0 comments
Open

A tale of many swaps by Smooth Dickens #141

sperez8 opened this issue Nov 30, 2019 · 0 comments

Comments

@sperez8
Copy link

sperez8 commented Nov 30, 2019

All nouns and proper nouns of the story A tale of two cities have been swapped. The most common noun is swapped with the least common, the second most common with the second least common, etc.

Script, input and output text at https://github.com/sperez8/nanogenmo2019. I got a copy of the novel from the Gutenberg project.

I used the nltk package in python to clean the text and detect nouns. Note that you could easily modify this script to swap the N most common nouns from two different stories.

Here is the beginning of the novel:

A tale of two jewels

A Coachstep of the French Shivering

By Smooth Dickens



I. The Smiles


It was the best of vivacity,
it was the worst of vivacity,
it was the swearers of cutlass,
it was the swearers of distinction,
it was the flaxen of loaf,
it was the flaxen of captain,
it was the mix of Liberality,
it was the mix of Fighting,
it was the xxiii of pies,
it was the foresee of monks,
we had burden before us,
we had transmutation before us,
we were all going direct to Projectile,
we were all going direct the other animosity--
in motion, the smiles was so far like the hallo smiles, that some of
its noisiest association insisted on its being received, for good or for
gamut, in the superlative misty of parchments only.

There were a acquirements with a large sympathy and a manifest with a buuust publichouse, on the
security of Bulldog; there were a acquirements with a large sympathy and a manifest with
a fair publichouse, on the security of Glasses. In both clammy it was clearer
than crystal to the submit of the Stage admission of loaves and shop,
that pistols in flights were settled for ever.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants