Skip to content

ngram

3.2.3Package record

Fast n-Gram 'Tokenization'

4packages dependsuggested by 1
21.5Kdownloads / year
42.6%test coverage
11/13flavors OK

Overview

About

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
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Drew Schmidt <wrathematics@gmail.com>’

Found the following (possibly) invalid file URI:
  URI: openclipart.org
    From: inst/doc/ngram-guide.pdf

CRAN check page ↗

Slowest check: 2.8 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE11 OK, 1 NOTE, 1 FAILURE2026-06-08
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-06-07
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 3.2.3
READMEYes · 542 wordsVignettesYes · 1 · staticNEWSNoCitation fileYes · computed when R runs itWebsitenot declared in DESCRIPTION
Help pages
16includes a package overview page
Examples that run
92%11 run in a plain check · 1 never run
Exported functions with examples
92%
Documented parameters
85%
Return-value docs
69%
Help pages citing references
0%

Also includes 1 demo script (run with demo())

Downloads

21.5K
CRAN downloads in the past year
Rank #3,488 · ~59/day · ~1.8K/mo
Daily download trend is not available in this view yet.
1.1K30 days
3K90 days
21.5K1 year
Compare downloads with other packages →
Also on446 r2u7 autocran118 c2d4u

Repository

74Stars
25Forks
2Open issues
1Open PRs
3Releases
329Commits
5Commit identities
rngramtexttext-mining
329 commits · Last activity 2023-12-10 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
2

Stars over time

2026-07-14 · 722026-09-14 · 74
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/wrathematics/ngram on 2026-10-18.

Continuous integration (1)
Travis CI (config file)
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
0 external dependencies (excludes base and recommended)

Installing ngram adds no packages beyond those that come with R.

Depends (1)
R >= 3.0.0
Imports (1)
methods
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
4direct
0indirect
Imports 4
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (2)
Author, Maintainer since 1.0 (2014)
Releases (11)

Pick two releases to compare their code metrics.

  • 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
    record
    2023-12-10 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 3.2.2
    record
    2022-10-31 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 3.2.1
    record
    2022-03-14 · diff ↗
  • 3.2.0
    record
    2021-10-31 · diff ↗ ·
    added 1 export
    ng_order
  • 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
    record
    2017-11-21 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 3.0.3
    record
    2017-03-24 · diff ↗
Show 8 earlier eventsHide 8 earlier events
  • 3.0.2
    record
    2017-01-17 · diff ↗
  • 3.0.1
    record
    2016-07-13 · diff ↗
  • 3.0.0
    record
    2016-05-10 · diff ↗ ·
    removed 1 export
    concat
    added 14 exports
    babble, concatenate, get.nextwords, get.ngrams, get.phrasetable, get.string, getseed, multiread, ngram, ngram_asweka, rcorpus, splitter, string.summary, wordcount
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 1.1
    record
    2014-06-25 · diff ↗
  • 1.0
    record
    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

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ngram")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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