Markov chain generator in Clojure
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
input
src/markov_cloj
test/markov_text
.gitignore
LICENSE
README.md
markov-tumblr.plist
project.clj

README.md

Markov-chain generator in Clojure. You can use it as a library or from the command line. It also can post said text to tumblr.

It is the brains behind Scrumdiddlyumptious Clojure.

Comand-Line Usage

# to generate text based on some training material
lein with-profile markov run input-1.txt input-2.txt

# to generate a chain to be used later
lein with-profile markov run input-1.txt input-2.txt output.edn

# to generate text based on an existing chain
lein with-profile markov run output.edn

# to post a formatted message to tumblr
lein with-profile tumblr run input.edn

Schedule Execution

sudo cp markov-tumblr.plist ~/Library/LaunchAgents
sudo chmod 600 ~/Library/LaunchAgents/markov-tumblr.plist
sudo chown root ~/Library/LaunchAgents/markov-tumblr.plist
sudo launchctl load -w ~/Library/LaunchAgents/markov-tumblr.plist