Classical k-gram Language Models
Overview
Training and evaluating k-gram language models in R, supporting several probability smoothing techniques, perplexity computations, random text generation and more.
- Added Suggests dependency from tibble (#32).
From NEWS.md in the release
Install
Health
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespace in Imports field not imported from: ‘RcppProgress’ All declared Imports should be used.
- NOTE11 OK, 2 NOTENow
- NOTE10 OK, 4 NOTE2026-04-22
- ERROR9 OK, 4 NOTE, 1 ERROR2026-04-18
- NOTE7 OK, 7 NOTE2026-04-10
- ERROR6 OK, 7 NOTE, 1 ERROR2026-04-09
- NOTE10 OK, 4 NOTE2026-03-10
Documentation
- Help pages
- 17 (1 internal)includes a package overview page
- Examples that run
- 88%14 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 12% with a bibliography file
- kgrams HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 49
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Issues over time
11 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/vgherard/kgrams on 2026-10-21.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2024-11-14 · The repository has a site deploy workflow
pkgdown site last built 2024-11-14
Show all practicesHide 3 practices
Dependencies
Installing kgrams adds 5 packages (3 with compiled code, 4.0 MB of source tarballs). Heaviest: Rcpp 1.8 MB, rbibutils 1.1 MB, rlang 766 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.2.1Latest
- RR 4.4.0 released · 2024-04-24
- 0.2.02023-10-06 · diff ↗
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2023-04-18
- 0.1.52023-04-18 · diff ↗
- archivedRemoved from CRAN2023-02-20policy violation On Internet access
- RR 4.2.0 released · 2022-04-22
- 0.1.22021-11-16 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.1.02021-02-15
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-02-15
- Total releases
- 5 / 5 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 67 KB / 2 files
- Download size
- 177 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("kgrams")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.