markov-ja-ts
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

日本語対応マルコフ連鎖ライブラリ

const text = fs.readFileSync(__dirname + '/sample.txt', 'utf8');
const markov = new MarkovChain(text);
expect(markov.text).toBe(text);
const res = await markov.generate(10);
console.log(res); // 生成された文章が出力されます。

Readme

Keywords

none

Package Sidebar

Install

npm i markov-ja-ts

Weekly Downloads

3

Version

0.2.1

License

MIT

Unpacked Size

27.3 kB

Total Files

18

Last publish

Collaborators

  • hikae