Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 982 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 982 Bytes

Text Generator 🔗

Generates a random yet syntactically plausible-ish and meaningful-ish text using Markov chains and a bit of luck. Sometimes outputs “wise thoughts”™

Try Yourself! 👨‍💻

Open the app in the browser and upload a .txt file with the source text for word predictions. The more words this text contains, the better. More than 100k is perfect.

Or try in the console:

echo 'have idea have ikea!' > sample.txt
python3 -m cli --word-count=50 --sample-size=3 sample.txt

How it works 🛠

The generator uses Markov chains to randomly choose a word based on previously generated words. Read more about Markov chains, how text generation works, and how to create one of these generators: