Skip to content
corpustools needs quanteda, which CRAN will archive unless its check problems are fixed by Oct 22.

corpustools

0.5.2Package record

Managing, Querying and Analyzing Tokenized Text

1packages dependsuggested by 1
8.8Kdownloads / year
0.0%test coverage
11/13flavors OK

Overview

About

Provides text analysis in R, focusing on the use of a tokenized text format. In this format, the positions of tokens are maintained, and each token can be annotated (e.g., part-of-speech tags, dependency relations). Prominent features include advanced Lucene-like querying for specific tokens or contexts (e.g., documents, sentences), similarity statistics for words and documents, exporting to DTM for compatibility with many text analysis packages, and the possibility to reconstruct original text from tokens to facilitate interpretation.

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage:
  ‘tCorpus-cash-annotate_rsyntax.Rd’ ‘tCorpus-cash-code_dictionary.Rd’
  ‘tCorpus-cash-code_features.Rd’ ‘tCorpus-cash-context.Rd’
  ‘tCorpus-cash-deduplicate.Rd’ ‘tCorpus-cash-delete_columns.Rd’
  ‘tCorpus-cash-feats_to_columns.Rd’ ‘tCorpus-cash-feature_subset.Rd’
  ‘tCorpus-cash-fold_rsyntax.Rd’ ‘tCorpus-cash-get.Rd’
  ‘tCorpus-cash-lda_fit.Rd’ ‘tCorpus-cash-merge.Rd’
  ‘tCorpus-cash-preprocess.Rd’ ‘tCorpus-cash-replace_dictionary.Rd’
  ‘tCorpus-cash-search_recode.Rd’ ‘tCorpus-cash-set.Rd’
  ‘tCorpus-cash-set_levels.Rd’ ‘tCorpus-cash-set_name.Rd’
  ‘tCorpus-cash-subset.Rd’ ‘tCorpus-cash-subset_query.Rd’
  ‘tCorpus-cash-udpipe_clauses.Rd’ ‘tCorpus-cash-udpipe_quotes.Rd’
\arguments should not be documented without \usage.

CRAN check page ↗

Slowest check: 5.5 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-04-10
  • ERROR13 OK, 1 ERROR2026-04-09
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.5.2
READMEYes · 207 wordsVignettesYes · 1 · dynamicNEWSYes · 33% structured · does not mention 0.5.2Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
104
Examples that run
80%65 run in a plain check (5 of them under a condition) · 12 only when donttest examples are enabled (R CMD check --as-cran) · 4 never run
Exported functions with examples
96%
Documented parameters
99%
Return-value docs
71%
Help pages citing references
0%

Downloads

8.8K
CRAN downloads in the past year
Rank #5,624 · ~24/day · ~737/mo
Daily download trend is not available in this view yet.
62430 days
1.4K90 days
8.8K1 year
Compare downloads with other packages →
Also on403 r2u6 autocran

Repository

32Stars
11Forks
0Open issues
0Open PRs
0Releases
185Commits
4Commit identities
185 commits · Last activity 2025-07-10 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
3
Median days to close, 50 most recently updated closed PRs
4

Stars over time

2025-02-03 · 312026-07-07 · 32
PracticesBeta

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

Checks run against github.com/kasperwelbers/corpustools on 2026-10-11.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

Installing corpustools adds 39 packages (24 with compiled code, 42 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, igraph 4.8 MB.

Depends (1)
R >= 3.5.0
LinkingTo (2)
Enhances (0)
none
Dependencies facing archival

CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.

Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer since 0.3 (2017)
Releases (14)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.5.2Latest
    record
    2025-07-07 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.5.1
    record
    2023-05-08 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.4.10
    record
    2022-05-11 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.9
    record
    2022-01-23 · diff ↗ ·
    added 2 exports
    export_span_annotations, untokenize
  • 0.4.8
    record
    2021-06-25 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.4.7
    record
    2021-02-28 · diff ↗
  • 0.4.6
    record
    2021-02-03 · diff ↗
  • 0.4.5
    record
    2021-01-13 · diff ↗
  • 0.4.4
    record
    2021-01-07 · diff ↗ ·
    added 10 exports
    agg_label, aggregate_rsyntax, fold_rsyntax, tc_plot_tree, transform_rsyntax, udpipe_clause_tqueries, udpipe_quote_tqueries, udpipe_simplify, udpipe_spanquote_tqueries, udpipe_tcorpus
  • R
    R 4.0.0 released · 2020-04-24
Show 8 earlier eventsHide 8 earlier events
  • 0.4.2
    record
    2020-01-23 · diff ↗ ·
    added 2 exports
    agg_tcorpus, count_tcorpus
  • 0.4.1
    record
    2019-11-20 · diff ↗ ·
    removed 4 exports
    compare_documents_dtm, list_resources, resources_path, set_resources_path
    added 19 exports
    browse_hits, browse_texts, compare_corpus, compare_documents, compare_subset, feature_associations, feature_stats, get_dfm, get_dtm, get_kwic, melt_quanteda_dict, search_contexts, search_dictionary, search_features, semnet, semnet_window, show_udpipe_models, subset_query, top_features
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.3.3
    record
    2018-04-20 · diff ↗ ·
    added 4 exports
    compare_documents_dtm, list_resources, resources_path, set_resources_path
  • 0.3.1
    record
    2017-12-13 · diff ↗
  • 0.3
    record
    2017-10-03
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-10-03
Total releases
14 / 9 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
292 KB / 4 files
Download size
718 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("corpustools")
Welbers, K., & van Atteveldt, W. (2025). corpustools: Managing, Querying and Analyzing Tokenized Text (Version 0.5.2) [Computer software]. https://doi.org/10.32614/CRAN.package.corpustools

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for corpustools version 0.5.2 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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