Making Any Wikipedia Topic Dystopian
I once read a Tweet that said, “you can make any Wikipedia article dystopian by changing it to the past tense.” Dystopian Wikipedia sounded like a fun idea, so I built Dystopedia as a proof-of-concept. Try it out below or on the codesue/dystopedia Hugging Face Space.
When you search for a term, Dystopedia fetches the first sentence of the corresponding Wikipedia article using the wikipedia library. Then, it uses the default Hugging Face sentiment analyzer to determine if the term has a positive connotation. If the term is positive, Dystopedia turns any present tense verbs in the term’s description into the past tense using LemmInflect. Otherwise, Dystopedia returns the sentence as is. Dystopedia uses spaCy for general NLP tasks and Gradio for its web interface.
I don’t have any plans to keep building Dystopedia. However, I plan to learn more about controllable text generation and sophisticated techniques for morphological inflection.