Introduction to Text Analysis with R.
summary
Step‑by‑step R workflow: collects text via APIs (Twitter, YouTube, Gutenberg, Google Ngrams) and scraping, cleans with regex and stopword lists, tokenizes and stems (SnowballC), builds quanteda and tidytext pipelines, visualizes word frequencies and wordclouds, computes TF‑IDF and runs LDA topic models (use set.seed for reproducible topics). Demonstrates named‑entity and POS tagging via spacyr, shows a gender‑by‑name classifier at ~99.5% precision, and cites large studies (5.4B‑tweet incel mapping; 50M tweets showing a small drop in Islamophobic speech after Mohamed Salah). Some packages require language checks or extra installs; methods otherwise reproduce.
AI-written summary · about
