Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

maciej-makowski/glorious-leader-new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glorious Leader's Quote Generator

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published