ngram
3.2.3Fast n-Gram 'Tokenization'
Overview
An n-gram is a sequence of n "words" taken, in order, from a body of text. This is a collection of utilities for creating, displaying, summarizing, and "babbling" n-grams. The 'tokenization' and "babbling" are handled by very efficient C code, which can even be built as its own standalone library. The babbler is a simple Markov chain. The package also offers a vignette with complete example 'workflows' and information about the utilities offered in the package.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-06-0811 OK · 1 NOTE · 0 WARNING · 0 ERROR · 1 FAILURE
- ERROR2026-06-0711 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 92%
- Documented parameters
- 85%
- Return-value docs
- 69%
- References docs
- 0%
Downloads
Repository
Stars over time
Repository practices
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/wrathematics/ngram on 2026-08-16.
Dependencies
Code & Tests
People & History
11 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 3.2.3Latest
- RR 4.3.0 released · 2023-04-21
- 3.2.22022-10-31 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 3.2.12022-03-14 · diff ↗
- 3.2.02021-10-31 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 3.0.42017-11-21 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 3.0.32017-03-24 · diff ↗
Package metadata
- First published
- 2014-06-23
- Total releases
- 11 / 12 yrs
- License
- BSD 2-clause License + file LICENSE
- Minimum R
- ≥ 3.0.0
- Download size
- 242 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ngram")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-16, which the citation names so these numbers can be found later. More on citing and the projects behind them.