markov-multi-order
Simple markov chain implementation supporting multiple orders of ngrams
npm i markov-multi-order
; ; markov.randomSequence'a', 3; // generate string of length 3, starting with 'a'markov.randomSequence'1', '3'; // generate string until the string '3' is reached, starting with '1'markov.randomSequence; // generate string until a natural end is reached, using a random start