A minimal implementation in about 30 lines of Python inspired by this: https://github.com/susam/mvs
See also a recent discussion about it here: https://news.ycombinator.com/item?id=46257607
With Perl, once you install cpanminus:
cpanm -n local::lib
cpanm -n Hailo
~/perl5/bin/hailo -E Scored -t corpus.txt -b brain.brn
~/perl5/bin/hailo -E Scored -b brain.brnsort of reminds me of zippy the pinhead
Presumed reference: https://en.wikipedia.org/wiki/Zippy_the_Pinhead