/text-corpus-analysis:choose-approachfrom text-corpus-analysis
Decide whether a corpus analysis task should use classical NLP, a local LLM, or a cloud LLM (OpenRouter) given corpus size, task complexity, and cost tolerance. Use first, before any other skill in this plugin, especially when the corpus is large (thousands+ of documents) or when an LLM pass could get expensive.
Ships in text-corpus-analysis. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Decision helper. Picks the right execution lane for a text-analysis task.
| Lane | Strengths | Weaknesses | Cost model |
|---|---|---|---|
| Classical NLP (spaCy, scikit-learn, gensim, TextBlob, BlackLab) | Deterministic, fast, free, scales to millions of docs, strong for frequency/NER/TF-IDF/LDA | Brittle on short or noisy text; no semantic judgment | CPU time only |
| Local LLM (Ollama: llama3.1, qwen2.5, gemma2) | No per-token cost, private, good for classification/labeling on small batches | Slow on big corpora (GPU-bound), lower ceiling than frontier models | Electricity + wall-clock time |
| Cloud LLM (OpenRouter → Claude, GPT, Gemini, DeepSeek, Llama) | Best judgment, handles nuance, parallelizable | Per-token cost — dangerous on 10k+ docs without planning | $ per M tokens |
words × 1.3), compute total input tokens.Task: <restatement>
Corpus: N docs, ~M tokens total
Recommended lane: <Classical NLP | Local LLM | Cloud LLM via OpenRouter>
Recommended model (if LLM): <name> — est. $X.XX for full corpus
Cheaper fallback: <sampling strategy OR cheaper model> — est. $Y.YY
Reasoning: <2-3 sentences>
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
15 skills in this plugin
/categorize-corpusAssign each document in a corpus to one of N user-defined categories. Use when the user has a fixed taxonomy (e.g. 10-20 labels) and wants every note/document routed into exactly one (or top-k) of them. Supports zero-shot classifiers, local LLMs, and cloud LLMs with cost-aware batching./complementary-pluginsList and install plugins that complement text-corpus-analysis: transcription-pipeline. Use on "related plugins"./correlation-analysisCorrelate metadata (timestamps, tags, source, author) with content features (topics, entities, length, sentiment) to surface non-obvious patterns. Use when the user asks "does X correlate with Y in my corpus" or wants to discover relationships between when/where/who and what.text-corpus-analysis@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin text-corpus-analysis