catalog / Marketing / TextBlob — Simple NLP for Marketing Copy
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.

Instalações186k
⟳ upstream 0.7.0 · updated 13y ago
Repositório fonte
! Grade B · 88/100 · ReviewSecurity assessment
No compromise signals8capabilities surfaced1known CVE10of 20 OWASP controls clear
External endpoints declaredExternal endpoints declaredExternal endpoints declaredExternal endpoints declared
scanned 2mo agoosv · gitleaks · opengrep · picklescan + heuristicsfull breakdown in the Security tab ↓

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) and sentiment.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.

More from @ai-supply

View profile →
Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
1.0M
Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
892k
Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
811k
Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
784k