markov_dart 0.1.0

markov_dart

A dart library for creating markov chains inspired by otac0n/markov.

Usage

A simple usage example:

import 'package:markov_dart/markov_dart.dart';

main() {
  var _chain = new MarkovChain<String>(1);

  var items = [
    ["This", "is", "a", "simple", "markov", "chain"],
    ["This", "is", "some", "simple", "magic"],
    ["This", "is", "a", "wild", "ride"]
  ];

  _chain.add(items[0]);
  _chain.add(items[1]);
  _chain.add(items[2]);

  print(_chain.chain(["This"]));

  // generated examples:
  // (is, some, simple, markov, chain)
  // (is, a, simple, magic)
  // (is, a, wild, ride)
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.1.0

  • Initial version

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  markov_dart: "^0.1.0"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:markov_dart/markov_dart.dart';
Version Uploaded Documentation Archive
0.1.0 Apr 20, 2017 Go to the documentation of markov_dart 0.1.0 Download markov_dart 0.1.0 archive

About

A dart library for creating markov chains inspired by otac0n/markov.

Author

Email rinukkusu@auen.land rinukkusu

Homepage

github.com/rinukkusu/markov-dart

Documentation

www.dartdocs.org/documentation/markov_dart/0.1.0/

Source code (hyperlinked)

www.crossdart.info/p/markov_dart/0.1.0/

Uploader

rinukkusu@srsfckn.biz

Share