Text Cleaning Tools
Overview
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
- 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
Documentation
- 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
Repository
- 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
Forks over time
Releases over time
Issues over time
PRs over time
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.
Dependencies
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.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.9.7Latest2026-03-05 · current release · diff ↗ ·
removed 4 exports
filter_NA, filter_element, filter_empty_row, filter_rowadded 8 exports
%LIKE%, %SLIKE%, %like%, %slike%, as_ordinal, fix_mdyyyy, replace_misspelling, replace_non_ascii2 - RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.9.3
- 0.9.22018-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.32018-04-24 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.7.22018-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.32018-01-14 · diff ↗ ·
added 4 exports
fgsub, replace_internet_slang, replace_kern, replace_word_elongation - 0.5.12017-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
- RR 3.4.0 released · 2017-04-21
- 0.3.1
- 0.3.02017-01-22 · diff ↗ ·
added 5 exports
add_missing_endmark, replace_emoticon, replace_grade, replace_html, replace_rating - 0.2.02017-01-10
- RR 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.
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.