Simple Markov Chains using Elixir
As a toy project to learn Elixir, I ported a Markov Chain written in Ruby to Elixir.
It generates funny tweets, like:
iex(1)> ExChain.create_filtered_sentence
{:ok, "I'm not a Food Social Network?", 0.4668037713169559, 4}
iex(2)> ExChain.create_filtered_sentence
{:ok, "I am in churros.", 0.30839889769910056, 2}
Suggestions are welcome.
The source code and instructions on how to use it are on github.com/eljojo/ex_chain
Read next How to config environment variables with Elixir and Exrm