SWI-Prolog Did You Know Did you know? You can train markov chains with BIMS Search Documentation:
Grammar rule nonblank//1