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

Detail scrambler #16

Open
enkiv2 opened this issue Oct 12, 2017 · 2 comments
Open

Detail scrambler #16

enkiv2 opened this issue Oct 12, 2017 · 2 comments
Labels
completed For completed novels!

Comments

@enkiv2
Copy link

enkiv2 commented Oct 12, 2017

The plan: take some existing input as a stream, isolate the nouns, take their hypernyms and choose a particular hyponym at random of that hypernym, then memoize that choice so that all later substitutions are consistent.

Lots of people have used wordnet's synonyms, hypernyms, and hyponyms to mutate existing texts, but I don't recall prior entries doing exactly this.

@enkiv2
Copy link
Author

enkiv2 commented Oct 31, 2017

Source: https://github.com/enkiv2/misc/blob/master/nanogenmo-2017/detail-scrambler.py
Output: https://github.com/enkiv2/misc/blob/master/nanogenmo-2017/fate-zero-scrambled.txt

(The input here was the text of Fate Zero; I'm not sure the result is even readable to people not familiar with the franchise.)

@enkiv2
Copy link
Author

enkiv2 commented Oct 31, 2017

The output when replacement probability is 1 in 10 is a lot cleaner, while still being strange enough to be an interesting transformation: https://github.com/enkiv2/misc/blob/master/nanogenmo-2017/fate-zero-scrambled-3.txt

@hugovk hugovk added the completed For completed novels! label Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed For completed novels!
Projects
None yet
Development

No branches or pull requests

2 participants