Naively Programmable Module

    hx-markov-chain

    1.2.0 • Public • Published

    markov-chain Build Status npm version XO code style

    Create, update and run Markov chain models for text generation.

    Install

    $ npm install --save hx-markov-chain
    

    Usage

    const markov = require("hx-markov-chain");
    const model = markov.create();
    markov.update(model, ["a", "b", "c"]);
    markov.update(model, ["a", "c", "d"]);
    const chain = markov.run(model);

    API

    markov.create()

    markov.update(model, chain)

    markov.run(model)

    License

    MIT © Hexacta

    Install

    npm i hx-markov-chain

    DownloadsWeekly Downloads

    7

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • pomber