Using a Markov chain to generate readable nonsense with 20 lines of Python
Lobsters·22 points·carlana·almost 3 years ago·benhoyt.com
Describes a simple Markov chain algorithm to generate reasonable-sounding but utterly nonsensical text, and presents some example outputs as well as a Python implementation.
Read the full article at benhoyt.com →
Related stories
- Hacker News · 2 points · about 14 hours ago
- Lobsters · 10 points · 6 months ago
- Ars Technica · 0 points · 11 days ago
- Lobsters · 22 points · about 10 years ago
- yieldfrom 1.0.0: A backport of the `yield from` semantic from Python 3.x to Python 2.7pypi.python.orgLobsters · 11 points · over 9 years ago
- Jev in 25 Lines of Pythonnobodywho.aiHacker News · 674 points · 8 days ago