# next-after-n

> count what follows each n-gram in some list `corpus` with vanilla JS objects

Latest version **1.0.0** (published 2016-09-24) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install next-after-n
pnpm add next-after-n
yarn add next-after-n
bun add next-after-n
```

## 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.0 |
| Published | 2016-09-24 |
| First published | 2016-09-24 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | elsehow |
| Maintainers | elsehow |

## Links

- npm: https://www.npmjs.com/package/next-after-n
- npm.io page: https://npm.io/package/next-after-n

## Recent versions

- 1.0.0 (latest) — 2016-09-24

## README

# next-after-n

count what follows each n-gram in some list `corpus`
with vanilla JS objects

<!-- see [details.md](details.md). -->

<!-- (interested in contributing?) see [CONTRIBUTING.md](CONTRIBUTING.md). -->

## example

```javascript
var nextafter = require('next-after-n')

var noises = [
   'beep'
 , 'beep'
 , 'beep'
 , 'beep'
 , 'snark'
]

var nexts = nextafter(noises, 2)

// what tends to follow each 2-gram?
console.log(nexts)
// {
//    'beep,beep': {
//      beep: 2,
//      snark: 1,
//    },
// }
```

## install

```
npm i next-after-n
```

## license

BSD

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