◆SkillMarketingFree
TextBlob — Simple NLP for Marketing Copy
MIT-licensed Python NLP library with sentiment polarity/subjectivity scoring, spell correction, noun phrase extraction, and translation for copywriters.
TextBlob — Simple NLP for Marketing Copy
TextBlob is a simple, intuitive Python NLP library built for practitioners who need fast text processing without a steep learning curve. It provides sentiment analysis (polarity and subjectivity), noun phrase extraction, spell correction, word inflection, POS tagging, and language translation — all through a clean, readable API. It is widely used by marketers and content teams for quick copy quality checks, customer review mining, and A/B test copy scoring.
Key Features
sentiment.polarity(-1 to 1) andsentiment.subjectivity(0 = objective, 1 = subjective)- Noun phrase extraction for topic modeling of customer reviews
- Spell correction with
.correct() - Word inflection: pluralize, singularize, lemmatize
- Language detection and translation (via Google Translate API, optional)
- Beginner-friendly: no configuration needed
Quick Start
pip install textblob
python -m textblob.download_corpora
from textblob import TextBlob
review = TextBlob("This new ad campaign is absolutely brilliant and very creative!")
print(review.sentiment)
# Sentiment(polarity=0.75, subjectivity=0.85)
# Extract key topics from customer reviews
review2 = TextBlob("The checkout experience was confusing and the email confirmation never arrived.")
print(review2.noun_phrases)
# ['checkout experience', 'email confirmation']
npx ai-supply add textblob-sentiment-nlp
Curated mirror of the open-source TextBlob (MIT). Get it from the source.