Skip to content

textclean

0.9.7Package record

Text Cleaning Tools

8packages dependsuggested by 2
92.5Kdownloads / year
4.4%test coverage
13/13flavors OK

Overview

About

Tools to clean and process text. Tools are geared at checking for substrings that are not optimal for analysis and replacing or removing them (normalizing) with more analysis friendly substrings (see Sproat, Black, Chen, Kumar, Ostendorf, & Richards (2001) doi:10.1006/csla.2001.0169) or extracting them into new variables. For example, emoticons are often used in text but not always easily handled by analysis algorithms. The replace_emoticon() function replaces emoticons with word equivalents.

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-12
Show 1 earlier changeHide 1 earlier change
  • NOTE13 OK, 1 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.9.7
READMEYes · 7,697 wordsVignettesNoNEWSYes · 33% structured · does not mention 0.9.7Citation fileYes · computed when R runs itWebsitenot declared in DESCRIPTION
Help pages
48 (2 internal)includes a package overview page
Examples that run
83%35 run in a plain check · 7 never run
Exported functions with examples
98%
Documented parameters
98%
Return-value docs
95%
Help pages citing references
8%

Downloads

92.5K
CRAN downloads in the past year
Rank #1,572 · ~254/day · ~7.7K/mo
Daily download trend is not available in this view yet.
5.7K30 days
14.7K90 days
92.5K1 year
Compare downloads with other packages →
Also on709 r2u7 autocran2.3K conda_forge

Repository

259Stars
30Forks
10Open issues
4Open PRs
3Releases
237Commits
8Commit identities
rtext-cleaningdata-mungingtext-analysisemoticonsregex
237 commits · Last activity 2026-03-05 · 0% stars, 30d · Default branch at 0.9.8, ahead of CRAN 0.9.7 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
80%
Median days to close, 50 most recently updated closed issues
7
Median days to close, 50 most recently updated closed PRs
104

Stars over time

2025-10-17 · 2502026-08-08 · 259
PracticesBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/trinker/textclean on 2026-10-18.

Continuous integration (1)
Travis CI (config file)
Governance and community (1)
Code of conduct
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing textclean adds 31 packages (16 with compiled code, 30 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, syuzhet 2.9 MB.

Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
8direct
10indirect
Imports 8
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 0.2.0 (2017)
Contributor · added in 0.9.7
Contributor · added in 0.6.3
Releases (10)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.9.7Latest
    record
    2026-03-05 · current release · diff ↗ ·
    removed 4 exports
    filter_NA, filter_element, filter_empty_row, filter_row
    added 8 exports
    %LIKE%, %SLIKE%, %like%, %slike%, as_ordinal, fix_mdyyyy, replace_misspelling, replace_non_ascii2
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 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
  • 0.9.3
    record
    2018-07-23 · diff ↗ ·
    removed 1 export
    collapse
    added 1 export
    glue_collapse
  • 0.9.2
    record
    2018-06-09 · diff ↗ ·
    added 9 exports
    available_checks, is_it, replace_email, replace_from, replace_hash, replace_tag, replace_to, replace_url, which_are
  • 0.7.3
    record
    2018-04-24 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.7.2
    record
    2018-04-19 · diff ↗ ·
    added 11 exports
    collapse, drop_element_fixed, drop_element_regex, glue, keep_element_fixed, keep_element_regex, match_tokens, mgsub_regex_safe, replace_date, replace_money, replace_time
  • 0.6.3
    record
    2018-01-14 · diff ↗ ·
    added 4 exports
    fgsub, replace_internet_slang, replace_kern, replace_word_elongation
  • 0.5.1
    record
    2017-12-12 · diff ↗ ·
    added 13 exports
    drop_NA, drop_element, drop_empty_row, drop_row, keep_element, keep_row, make_plural, mgsub_fixed, mgsub_regex, replace_curly_quote, replace_emoji, replace_emoji_identifier, replace_names
Show 5 earlier eventsHide 5 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • 0.3.1
    record
    2017-02-22 · diff ↗ ·
    added 1 export
    replace_tokens
  • 0.3.0
    record
    2017-01-22 · diff ↗ ·
    added 5 exports
    add_missing_endmark, replace_emoticon, replace_grade, replace_html, replace_rating
  • 0.2.0
    record
    2017-01-10
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-01-10
Total releases
10 / 9 yrs
License
GPL-2 OSI
Minimum R
≥ 3.4.0
Bundled data
0.5 KB / 1 file
Download size
1.8 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("textclean")

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 textclean version 0.9.7 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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