- Refactoring to facilitate iterative construction of the corpus (multiple
.addData()
instead of a one-timebuildCorpus()
), and export/import of corpus internal data.
- Add an optionnal
prng
parameter at generation to use a specific Pseudo Random Number Generator
- Dependencies update
- Refactoring with breaking changes
- The constructor and generator take two different options objects
- Most of generator options are gone, except
filter
andmaxTries
- Tests have been rewritten with jest, in TypeScript
- Code rewritten in TypeScript. You can now
import MarkovGenerator from 'markov-strings'
- New
filter()
method, thanks @flpvsk
- Dependencies update
- Updated README. Version bump for npm
- Fixed an infinite loop bug
- Performance improvement
- Updated README example
- Removed a useless line
- New feature: the generator now accepts arrays of objects, and tells the user which objects were used to build a sentence
- Fixed all unit tests
- Added a changelog