Theme Extractor
Automatically discover hidden themes and topics in customer reviews, survey responses, and open-ended feedback using machine learning.
OVERVIEW & WHAT THIS TOOL SOLVES
Reading 500 open-ended survey responses or product reviews by hand takes days, while simple word clouds just highlight repetitive filler words ("coffee", "product", "good") that appear in every review. The Theme Extractor converts raw customer text into a TF-IDF document-term matrix and applies Non-Negative Matrix Factorization (NMF) to automatically cluster distinctive vocabulary into coherent latent topics and assign every document to its primary theme.
π― Questions It Answers
- What are the 2 to 8 recurring latent themes hidden across hundreds of customer reviews, social comments, or support tickets?
- What percentage of documents belong primarily to each discovered theme, and which top keywords define each topic?
- How does theme prevalence shift across customer segments, product tiers, or competitors?
π What Data You Need
- Text Corpus: Preset marketing text datasets (influencer comments, streaming feedback, product reviews) or uploaded CSV with a text column
- Topic Count & Stopwords: Number of themes
K(or automatic selection) and custom domain stopwords to filter out - Optional Grouping Column: Segment, brand, or rating column to compare theme shares across groups
π‘ What You'll Discover
- Theme Cards & Anchor Vocabulary: Top weighted terms, primary document counts/shares (summing to 100%), and representative quotes
- Document-Level Topic Loadings: Continuous theme weights for every row plus primary-theme classification
- Cross-Group Theme Breakdown: Comparative bar charts showing which segments over-index on specific complaints or praise
π Key Nuances & Common Traps to Watch For
- Why TF-IDF Beats Raw Word Counts: If you analyze coffee subscription reviews, the word "coffee" appears in 95% of rows. Inverse Document Frequency (IDF) down-weights ubiquitous category words so distinctive terms ("grind", "billing", "roast", "late") drive the themes.
- Bag-of-Words Ignores Word Order & Negation: NMF treats documents as unordered term vectors ("not fast" and "very fast" share "fast"). Always read the top representative verbatim quotes on each theme card before naming a topic.
- Choosing the Number of Themes (K): Too few themes merge distinct issues into broad buckets; too many themes split a single topic into redundant synonyms. Test
K = 3to6and inspect vocabulary overlap.
π Under the Hood: Model Equations & Variable Definitions
1. Term FrequencyβInverse Document Frequency (TF-IDF) Weighting
π¬ Read it in plain English: A word t gets a high weight V_{d,t} in document d when it appears frequently inside that specific review (high tf_{d,t}) but rarely across the rest of the D reviews (low document frequency df_t), normalized so long reviews don't dominate short ones.
2. Non-Negative Matrix Factorization (NMF) & Primary Theme Assignment
π¬ Read it in plain English: NMF factors the DΓM TF-IDF matrix V into two non-negative matricesβW (how strongly each document loads on each of the K themes) and H (how strongly each word defines each theme)βand assigns each document to its highest-loading theme k*(d).
DATA SOURCE
Use a Case Study
π Pre-loaded Text Datasets
Select a preset scenario to explore real-world text data with theme extraction. Each scenario includes sample reviews, comments, or survey responses.
Enter Your Data
Max 500 documents Max 5,000 chars each
Paste your text data below. Each line will be treated as a separate document (review, comment, etc.).
Upload a CSV file with a text column. The tool will auto-detect columns containing text.
Drag & Drop CSV file (.csv, .tsv, .txt, .xls, .xlsx)
Upload a CSV with a text column. The tool will auto-detect text columns.
ANALYSIS SETTINGS
Analysis Settings
Auto-detect finds the optimal number based on your data.
More words give richer theme descriptions.
Choosing the Right Number of Themes
π Auto-Detection Method
When set to "Auto-detect," the algorithm tests different theme counts (2-8) and selects the one with the best coherence score. Coherence measures how semantically similar the top words in each theme are to each other.
- High coherence: Theme words relate to a single concept (e.g., "battery, charge, power, life")
- Low coherence: Theme words are scattered (e.g., "battery, shipping, color, return")
π When to Override Auto-Detection
| Situation | Recommended Action |
|---|---|
| Themes seem too broad/general | Increase theme count (more specific topics) |
| Similar themes detected | Decrease theme count (consolidate) |
| You know the domain well | Set count based on expected categories |
| Very small dataset (<100 docs) | Use 2-4 themes to avoid overfitting |
| Large, diverse dataset (>500 docs) | Try 5-8 themes for granularity |
π‘ Iterative Approach
Topic modeling often benefits from experimentation:
- Start with auto-detect to get a baseline
- Review the themesβdo they make business sense?
- If themes overlap, reduce count; if too broad, increase count
- Compare sample comments across runs to validate
Words per Theme: Quality vs. Specificity
π What This Controls
This setting determines how many top-weighted words are shown for each discovered theme. The words are ranked by their importance to that theme (NMF weight).
π Trade-offs
| Words | Pros | Cons |
|---|---|---|
| 5 words | Clean, focused, easy to label | May miss nuances |
| 8 words (default) | Good balance of clarity and detail | β |
| 10-12 words | Richer context, better for unfamiliar domains | Can include lower-relevance terms |
π‘ Recommendation
Start with 8 words (default). Increase to 10-12 if you're exploring unfamiliar data and need more context to understand themes. Decrease to 5 for clean presentation in reports.
Sample Comments by Theme
Most representative documents for each theme (highest confidence scores).
Understanding Sample Comments & Confidence Scores
π What Are Sample Comments?
These are the most representative documents for each themeβthe ones the algorithm is most confident about assigning to that theme. They serve as concrete examples of what each theme "looks like" in your data.
π Understanding Confidence Scores
The confidence percentage reflects how strongly a document matches its assigned theme:
π‘ How to Use Samples
β οΈ When Samples Don't Match Expectations
If sample comments seem wrong for a theme: