No description
Find a file
2024-01-06 11:05:53 +01:00
src/computersandblues/frantisek_kafka Change namespace 2024-01-06 11:05:53 +01:00
.gitignore Gregor, aren't you well? 2019-01-14 11:30:28 +01:00
bb.edn Make it usable from babashka 2024-01-06 11:04:30 +01:00
CHANGELOG.md Gregor, aren't you well? 2019-01-14 11:30:28 +01:00
LICENSE.txt Gregor, aren't you well? 2019-01-14 11:30:28 +01:00
README.md Change namespace 2024-01-06 11:05:53 +01:00
screenshot.png Add screenshot 2019-01-14 12:21:39 +01:00

František Kafka

František Kafka is a bot that generates text using Markov chains. It is online at https://botsin.space/@frantisek where it's creating an inifinite version of Franz Kafka's Metamorphosis.

Screenshot of bot

Installation

You need your input text in plain text; Project Gutenberg is a good source for that. Make sure to remove all parts of the text that are not to be used as the bot's corpus. You will also need an access token, so register your app at a mastodon instance of choice to get one.

Building an running the Clojure code requires babashka, version 1.3 is tested and should work.

Usage

$ bb -m computersandblues.frantisek-kafka.samsa --interval=5 --order=3 resources/kafka-en.txt

Options

$ bb -m computersandblues.frantisek-kafka.samsa --help
František Kafka is a Markov chain bot that infinitely generates text
from one or more text files. botsin.space/@frantisek hosts a live
version of it that generates an infinite version of Franz Kafka's Metamorphosis.

Usage: frantisek [options] [corpus...]

Options:
  -o, --order ORDER        2      Order of the Markov chain. Defaults to 2.
  -i, --interval INTERVAL  21600  Interval between toots in seconds.
  -h, --help