Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Glorious Leader's Quote Generator

Demo

Disclaimer

The purpose of this application is satire and it is not my intention to promote North Korea regime. If anything, the point is to show how easy is to automatically generate slogans that kind-of make sense and to ridicule such unsophisticated propaganda.

Also, it was is cool project to play around with some new technologies.

Why?

A couple years back, me and my friend read the following article about North Korean Goverment releasing a bunch of weird propaganda slogans. After some poking around the internet, we managed to find a text file containg them. So we came up with an idea of using them as an input for automatic text generator that would generate new slogans based on existing ones.

How?

Slogans are generated by Markov Chain fed with data from data/training-data.txt file and then persisted to a database.

Generation and persistance processes are independent and communicate with each other through RabbitMQ queue. Main process is spawning workers using cluster to run parallel generation and persistance.

The Web application is an Express app that reads existing slogans from the database and displayes them with a soup of social-media tags for nicer sharing.

Where

Currently, the application is hosted as a free-tier Heroku app with Postgres and RabbitMQ plugins. Generation worker is disabled so it does not consume resources while idling. Database contains around 10 000 pre-generated quotes.

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published