textclean is a collection of functions for cleaning and normalising textual data. It helps prepare documents containing inconsistent spelling, informal expressions, unwanted characters and other features that may interfere with automated text analysis.
Many of its functions originated in the qdap package and were subsequently redesigned to provide a more consistent approach to text processing. The package includes operations for replacing unsuitable text with more analysis-friendly expressions, removing unwanted content and identifying potential problems within textual data.
textclean is useful when preparing social media posts, survey responses, customer reviews and other sources of unstructured text. It can be applied before tokenisation, sentiment analysis, classification or other statistical processing.
This is free and open source software.
Key Features
- Expands contractions into their constituent words.
- Replaces emoticons and emoji with descriptive text or alternative representations.
- Provides functions for processing hashtags and social media usernames.
- Replaces or removes URLs and email addresses.
- Normalises HTML tags and character entities.
- Handles common internet slang and informal expressions.
- Provides functions for replacing dates, times, numbers and monetary expressions.
- Processes common symbols, ratings and ordinal numbers.
- Supports correction of selected spelling patterns and elongated words.
- Provides whitespace replacement and normalisation operations.
- Supports multiple simultaneous substitutions through mgsub().
- Offers functions for selecting or removing rows according to textual patterns.
- Includes tools for inspecting text and identifying potential cleaning problems.
- Provides functions for handling missing text and empty records.
- Allows cleaning operations to be combined into reusable preprocessing workflows.
Website: github.com/trinker/textclean
Support:
Developer: Tyler Rinker
License: GNU General Public License v2.0
textclean is written in R. Learn R with our recommended free books and free tutorials.
Related Software
| R Natural Language Processing Tools | |
|---|---|
| tidytext | Text mining using dplyr, ggplot2, and other tidy tools |
| quanteda | R package for Quantitative Analysis of Textual Data |
| text2vec | Framework with API for text analysis and natural language processing |
| tm | Text Mining Infrastructure in R |
| srtringi | Fast and portable character string processing in R |
| Stringr | String manipulation in R |
| UDPipe | Tokenization, Tagging, Lemmatization and Dependency Parsing |
| tokenizers | Convert natural language text into tokens |
| spacyr | R wrapper around the Python spaCy package |
| Word Vectors | Build and explore embedding models |
| syuzhet | Extraction of sentiment and sentiment-based plot arcs from text |
| textTinyR | Text processing for small or big data |
| textrecipes | Prepares text features for machine learning with tidymodels |
| stm | Fits structural topic models to analyse document collections |
| sentimentr | Dictionary based sentiment analysis |
| word2vec | Trains word embedding models and explores semantic relationships |
| textclean | Collection of tools to clean and normalize text |
| TALL | Explore, model, and visualize textual data |
| corpustools | Various tools for analyzing text corpora |
| wordvector | Trains and explores word and document vector representations |
| topicmodels | Interface to LDA and CTM models |
| text | Analyzing natural language with transformers-based large language models |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.