Skip to content

ngram

3.2.3

Fast n-Gram 'Tokenization'

5packages depend
33.8Kdownloads / year
42.6%test coverage
11/13checks pass

Overview

About
Maintained by Drew SchmidtFirst published 2014-06-2311 releasesCRAN page ↗GitHub ↗

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

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 2.9 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.10
42.6%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • NOTE2026-06-08
    11 OK · 1 NOTE · 0 WARNING · 0 ERROR · 1 FAILURE
  • ERROR2026-06-07
    11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 542 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
92%
Documented parameters
85%
Return-value docs
69%
References docs
0%

Downloads

33.8K
CRAN downloads in the past year
Rank #3,484 · ~93/day · ~2.8K/mo
Daily download trend is not available in this view yet.
93030 days
2.9K90 days
33.8K1 year
Compare downloads with other packages →
Also on490 r2u18 autocran55 c2d4u

Repository

Repository
73Stars
25Forks
2Open issues
1Open PRs
3Releases
329Commits
5Contributors
rngramtexttext-mining
329 commits · Last activity 2023-12-10 · +1.4% stars, 30d

Stars over time

2026-07-14 · 722026-07-26 · 73

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
Travis CI
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
0 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.0.0
Imports (1)
methods
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
5direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

11 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 3.2.3Latest
    2023-12-10 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 3.2.2
    2022-10-31 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 3.2.1
    2022-03-14 · diff ↗
  • 3.2.0
    2021-10-31 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 3.0.4
    2017-11-21 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 3.0.3
    2017-03-24 · diff ↗
Show 8 earlier events
  • 3.0.2
    2017-01-17 · diff ↗
  • 3.0.1
    2016-07-13 · diff ↗
  • 3.0.0
    2016-05-10 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 1.1
    2014-06-25 · diff ↗
  • 1.0
    2014-06-23
  • R
    R 3.1.0 released · 2014-04-10

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")
Schmidt, D., & Heckendorf, C. (2023). ngram: Fast n-Gram 'Tokenization' (Version 3.2.3) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ngram version 3.2.3 [Data set]. HJJB, LLC. Data release v2026-08-16. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy