executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
textblobUse TextBlob for Python text processing: tokenization, POS tagging, noun phrases, sentiment, lexical tools, classifiers, and extensions.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this repo skill when a task names TextBlob or asks for a simple Python NLP workflow involving raw text, tokens, sentences, part-of-speech tags, noun phrases, sentiment, spelling, WordNet, word morphology, text classifiers, or TextBlob-compatible custom models.
Do not use this skill for large neural NLP training, transformer pipelines, spaCy pipeline components, annotation platforms, or LLM evaluation unless the request specifically needs TextBlob interoperability.
TextBlob installs as a Python package, but many workflows require NLTK corpus data at runtime. In the target environment, a typical setup is:
python -m pip install -U textblob
python -m textblob.download_corpora lite # default models and common basics
# Use the full command when ConllExtractor or NaiveBayesAnalyzer is needed:
python -m textblob.download_corpora
Minimal import and corpus diagnostic:
python scripts/check_textblob_setup.py --json
python scripts/check_textblob_setup.py --require-all-corpora
Read corpora and setup before debugging a
MissingCorpusError, optional numpy issue, or corpus-backed workflow.
| User request | Read |
|---|---|
Tokenize text, split sentences, tag POS, extract noun phrases, compute sentiment, parse, count words/phrases, serialize sentence records, or use Blobber with built-in models | core NLP workflows |
| Singularize/pluralize words, stem, lemmatize, correct spelling, inspect WordNet synsets/definitions, or normalize word lists | word and lexical tools |
| Train/evaluate/update Naive Bayes, Decision Tree, MaxEnt, or Positive Naive Bayes classifiers; load CSV/JSON/TSV training data; write feature extractors; register data formats | classifiers and data formats |
Implement custom tokenizers, POS taggers, NP extractors, sentiment analyzers, parsers, language/model extensions, or shared Blobber factories | custom models and extensions |
Shared references:
TextBlob(..., classifier=cl).TextBlob usage.from textblob import TextBlob, Word
blob = TextBlob("TextBlob is amazingly simple. Great fun!")
print(blob.sentiment)
print([(str(word), tag) for word, tag in blob.tags])
print(blob.noun_phrases)
print(Word("speling").correct())
Classifier example:
from textblob import TextBlob
from textblob.classifiers import NaiveBayesClassifier
train = [("I love this", "pos"), ("This is awful", "neg")]
cl = NaiveBayesClassifier(train)
blob = TextBlob("I love this API. This bug is awful.", classifier=cl)
for sentence in blob.sentences:
print(sentence, sentence.classify())
When these examples fail, first run python scripts/check_textblob_setup.py and
then follow the nearest sub-skill troubleshooting reference.