# markov-ultra

> My modified markov chain algorithm to generate pseudorandom sentences from a learned database

Latest version **1.0.6** (published 2016-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install markov-ultra
pnpm add markov-ultra
yarn add markov-ultra
bun add markov-ultra
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2016-07-10 |
| First published | 2016-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | SwadicalRag |
| Maintainers | swadicalrag |

## Links

- npm: https://www.npmjs.com/package/markov-ultra
- Repository: https://github.com/SwadicalRag/node-markov-ultra
- Homepage: https://github.com/SwadicalRag/node-markov-ultra#readme
- Issues: https://github.com/SwadicalRag/node-markov-ultra/issues
- npm.io page: https://npm.io/package/markov-ultra

## Dependencies (2)

- [random-js](https://npm.io/package/random-js.md) ^1.0.8
- [non-memory-map](https://npm.io/package/non-memory-map.md) ^1.0.3

## Recent versions

- 1.0.6 (latest) — 2016-07-10
- 1.0.5 — 2016-07-10
- 1.0.4 — 2016-07-09
- 1.0.3 — 2016-07-09
- 1.0.2 — 2016-07-09
- 1.0.1 — 2016-07-09
- 1.0.0 — 2016-07-09

## README

# node-markov-ultra
my modified markov chain algorithm to generate pseudorandom sentences from a learned database

## Installing
```
npm install markov-ultra --save
```

## Example usage
```typescript
import MarkovChain from "markov-ultra";

let markov = new MarkovChain(__dirname + "/test");
markov.learn("This is a meme");
markov.learn("memes are great");
markov.learn("banana loves meme");
markov.learn("we love you banana");
markov.learn("Oh, It's more like a skype call style system");
markov.learn("no i mean you can have the name actually be different per message without changing it");
markov.learn("wang is banana is wang");

for(let i=0;i < 100;i++) {
    let sentence = markov.generate();
    console.log(sentence);
}
```

it gets better the larger your dataset is.

---
_Source: https://npm.io/package/markov-ultra · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
