Scaling Models and Classifiers for Textual Data
Overview
Scaling models and classifiers for sparse matrix objects representing textual data in the form of a document-feature matrix. Includes original implementations of 'Laver', 'Benoit', and Garry's (2003) doi:10.1017/S0003055403000698, 'Wordscores' model, the Perry and 'Benoit' (2017) doi:10.48550/arXiv.1710.08963 class affinity scaling model, and the 'Slapin' and 'Proksch' (2008) doi:10.1111/j.1540-5907.2008.00338.x 'wordfish' model, as well as methods for correspondence analysis, latent semantic analysis, and fast Naive Bayes and linear 'SVMs' specially designed for sparse textual data.
- Removed
textmodel_svm()due to #72. We are working with the authors of **LibLineaR** on a fix, at which time we will restore the function to the CRAN version of the package.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-17
- WARNING12 OK, 1 WARNING2026-10-01
- OK13 OK2026-08-21
- WARNING12 OK, 1 WARNING2026-08-17
- OK13 OK2026-08-05
Show 9 earlier changesHide 9 earlier changes
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-19
- WARNING12 OK, 1 WARNING2026-06-17
- OK13 OK2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 37 (26 internal)includes a package overview page
- Examples that run
- 94%15 run in a plain check · 1 never run
- Exported functions with examples
- 63%
- Documented parameters
- 87%
- Return-value docs
- 100%
- Help pages citing references
- 32%
Downloads
Repository
- PRs merged (all time)
- 84%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/quanteda/quanteda.textmodels on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing quanteda.textmodels adds 21 packages (15 with compiled code, 27 MB of source tarballs). Heaviest: stringi 11 MB, quanteda 4.2 MB, glmnet 2.7 MB.
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
- unarchivedReturned to CRAN2025-02-11
- 0.9.10Latest
- archivedRemoved from CRAN2025-01-15issues were not corrected in time
- 0.9.92024-09-03 · diff ↗
- unarchivedReturned to CRAN2024-08-29
- 0.9.82024-08-29 · diff ↗
- archivedRemoved from CRAN2024-08-25issues were not corrected in time
- RR 4.4.0 released · 2024-04-24
- 0.9.72024-04-11 · diff ↗
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2023-03-22
- 0.9.62023-03-22 · diff ↗
- archivedRemoved from CRAN2023-03-15issues were not corrected in time
- 0.9.5-12022-10-05 · diff ↗
Show 10 earlier eventsHide 10 earlier events
Package metadata
- First published
- 2020-02-26
- Total releases
- 12 / 6 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.1.0
- Bundled data
- 2.8 MB / 4 files
- Download size
- 2.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("quanteda.textmodels")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.