R Observatory
Search
install.packages("textclean")
CRAN 30-day downloads, method
6,197+19.5% up on the 30 days before, the better direction
Test coverage, method
4%of lines run by tests

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 ...

Full description

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.

Maintainer
Tyler Rinker
Licence
GPL-2
Latest release
5 Mar 2026
First release
10 Jan 2017

Compare with another package

More details
Releases
10
Needs compilation
No
Needs R
>= 3.4.0
LazyData
TRUE
RoxygenNote
7.3.3
Subjects (1) Method, Subjects
Cite

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.

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-29. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-29, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.9.7
    Time taken
    61 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.9.7
    Time taken
    51 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.9.7
    Time taken
    44 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.9.7
    Time taken
    42 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.9.7
    Time taken
    104 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.9.7
    Time taken
    20 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.9.7
    Time taken
    54 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.9.7
    Time taken
    101 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.9.7
    Time taken
    57 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.9.7
    Time taken
    58 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.9.7
    Time taken
    19 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.9.7
    Time taken
    70 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.9.7
    Time taken
    107 s
  • 13 OK

Over time

No change since 4 Aug 2026

As a list (6)
ChangedWorst statusOKNotesWarningsErrors
4 Aug 2026OK13000
1 Aug 2026Note12100
9 Jun 2026OK13000
8 Jun 2026Error12001
12 Mar 2026OK14000
10 Mar 2026Note13100

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
6,596+23.2% up on the 30 days before, the better directionIt is the sum of 4 channels: CRAN, r2u, autoCRAN and conda-forge.

CRAN rank

1,407 of 26,553

CRAN

6,197 downloads in the last 30 days

Rank
1,407 of 26,553
Change
+19.5% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

98 downloads in the last 30 days

Rank
2,350 of 30,526
Change
+145% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

7 downloads in the last 30 days

Rank
7,266 of 29,233
Change
−53.3% down on the 30 days before, the worse direction

It is in the total. Take it out

conda-forge

294 downloads in the last 30 days

Rank
2,032 of 3,828
Change
+160% up on the 30 days before, the better direction

It is in the total. Take it out

Over time

Compare downloads

Needs
9
Dependent packages
8
Suggested by
2
Needs (9)
Installing it adds
31 packages, 30.5 MB of source
Of those, need compilation
16
Optional extras (2)
Dependent packages (8)
PackageTitleDownloads in 30 days
textstemTools for Stemming and Lemmatizing Text3,657
sentimentrCalculate Text Polarity Sentiment2,036
upstartrUtilities Powering the Globe and Mail's Data Journalism Template333
SemanticDistanceCompute Semantic Distance Between Text Constituents327
easieRnmtLocal Machine-Translation with 'EasyNMT' from 'R'176
NUSSMixed N-Grams and Unigram Sequence Segmentation175
spell.replacerProbabilistic Spelling Correction in a Character Vector163
text2emotionEmotion Analysis and Emoji Mapping for Text139
Functions
110
Public exports
65
Lines of R code
3,555
Median complexity
1
Functions (110)
Size and composition

Lines by kind (5,973)

KindLinesShare
R code3,55560%
Tests801%
Documentation2,33839%

Lines by language

LanguageLinesShare
R3,63561%
Rd2,33839%

Languages are counted from file extensions.

Files
109
R functions
110
Object systems
S3: 9 methods
Complexity
Median
1
Mean
1.84
Highest
11
Median lines per function
7
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
110
Calls
63
Unconnected
41
Groups
11
Growth (10 releases)
Total lines by release
1,837 on 10 Jan 20175,973 on 5 Mar 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
4.4%
Expressions run by tests
4.6%
Test cases
4
Exports named in tests
6.2%
Coverage by file (43)
Coverage run
Lines counted
758
Lines the tests ran
33
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
4
Lines of tests
80
Test lines per line of code
0.02
Exports documented
93.8%
Arguments documented
97.6%
Return value documented
95.2%
Help pages with examples
87.5%
Examples run in checks
83.3%
Other documentation
README
Yes, 7,697 words
Release notes file
Yes
Help pages
48
Lines of documentation
2,338

2 datasets, 1 can be loaded by name

DatasetSizeColumns
DATAFictitious Classroom Dialoguealso in 2 other packages11 × 5person, sex, adult, state, code
canonical259,163 × 2canonical, word

trinker / textclean on github.com

Stars
259no change on 30 days ago
Forks
30
Open issues
10
Last commit
5 Mar 2026
Activity
Commits
237
Open pull requests
4
Tagged releases
3
Latest tagged release
0.8.0, 6 Jun 2018
In development
Default branch at 0.9.8, ahead of CRAN 0.9.7 (checked 2026-10-25)
Issues closed in
7 days (median)
Pull requests closed in
104 days (median)
Pull requests merged
80%
Created
7 Jan 2016
Licence file reads as
–
Development practices (3)
KindFound
Continuous integrationTravis CI (config file)
Governance and communityCode of conduct
Docs sourceREADME.Rmd

Method, repository practices

Across trinker

R releases
  • On CRAN
  • Release
VersionReleasedR
0.9.7 current5 Mar 20264.5.2
0.9.323 Jul 20183.5.1
0.9.29 Jun 20183.5.0
0.7.324 Apr 20183.5.0
0.7.219 Apr 20183.4.4
0.6.314 Jan 20183.4.3
0.5.112 Dec 20173.4.3
0.3.122 Feb 20173.3.2
Earlier versions (2)
VersionReleasedR
0.3.022 Jan 20173.3.2
0.2.010 Jan 20173.3.2