Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
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.

@ai-supply
Installs186k
⟳ upstream 0.7.0 · updated 13y ago
↗ Source repository
← More MarketingMarketing leaderboard →How we grade security →Source ↗
! 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 16d ago·osv · gitleaks · opengrep · picklescan + heuristics·full 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.

Rating rank
#1
of 13 in Marketing
Install rank
#2
of 13 in Marketing
Security score
88/100 · B
review
Security rank
#5
of 13 in Marketing
Installs
186k
cat avg 80k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Marketing leaderboard →
! Security: Review · 8888/100 · grade Bscanned 16d ago
✓ no compromise signals9 risk-surface · 3/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · med confidence (static)
⚑ filesystem⚑ shell
egress → pypi.org, tidelift.com, sphinx-doc.org, stevenloria.com, textblob.readthedocs.io, docs.renovatebot.com, www.clips.ua.ac.be, www.petrovi.de +6
30 scripts

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM03Supply Chainhigh
Vulnerable/compromised dependencies, models or archives in the artifact.
•Vulnerable dependencies — 13 known vulnerabilities in: idna@3.11, nltk@3.9.4, pytest@9.0.2, urllib3@2.6.3, uv@0.11.2 (CWE-1395)known CVE · -12 pts
⚠LLM06Excessive Agencylow
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · sloria-TextBlob-df97800/.github/workflows/build-release.ymlrisk surface
•External endpoints declared — 3 distinct host(s) · sloria-TextBlob-df97800/CHANGELOG.rstrisk surface
•External endpoints declared — 7 distinct host(s) · sloria-TextBlob-df97800/CONTRIBUTING.rstrisk surface
•External endpoints declared — 6 distinct host(s) · sloria-TextBlob-df97800/README.rstrisk surface
•External endpoints declared — 2 distinct host(s) · sloria-TextBlob-df97800/docs/_themes/kr/layout.htmlrisk surface
•External endpoints declared — 4 distinct host(s) · sloria-TextBlob-df97800/docs/advanced_usage.rstrisk surface
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · sloria-TextBlob-df97800/src/textblob/_text.py (CWE-272)risk surface
•Broad capability surface — 5 high-impact capability categories referenced — verify least-privilege · sloria-TextBlob-df97800/src/textblob/en/en-spelling.txt (CWE-272)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
◷LLM10Unbounded ConsumptionRuntime-enforced
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
✓LLM01Prompt InjectionPassed
✓LLM02Sensitive Information DisclosurePassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM05Improper Output HandlingPassed
✓LLM07System Prompt LeakagePassed
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML06AI Supply Chainhigh
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Vulnerable dependencies — 13 known vulnerabilities in: idna@3.11, nltk@3.9.4, pytest@9.0.2, urllib3@2.6.3, uv@0.11.2 (CWE-1395)known CVE · -12 pts
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
◷ML09Output IntegrityRuntime-enforced
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (7) · hygiene / uncategorized
•Unrecognized file type — '.gitignore' is not on the allowlist · sloria-TextBlob-df97800/.gitignorerisk surface
•Unrecognized file type — '.konchrc' is not on the allowlist · sloria-TextBlob-df97800/.konchrcrisk surface
•Unrecognized file type — '.?' is not on the allowlist · sloria-TextBlob-df97800/LICENSErisk surface
•Unrecognized file type — '.css_t' is not on the allowlist · sloria-TextBlob-df97800/docs/_themes/kr/static/flasky.css_trisk surface
•Unrecognized file type — '.conf' is not on the allowlist · sloria-TextBlob-df97800/docs/_themes/kr/theme.confrisk surface
•Disallowed file type — '.bat' executables are not permitted · sloria-TextBlob-df97800/docs/make.bat (CWE-434)risk surface
•Unrecognized file type — '.ini' is not on the allowlist · sloria-TextBlob-df97800/tox.inirisk surface
✔ verified source · pinned sloria-TextBlob-df97800
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/textblob-sentiment-nlp/check). Click a policy:

Consume TextBlob — Simple NLP for Marketing Copy programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/textblob-sentiment-nlp

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/textblob-sentiment-nlp/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add textblob-sentiment-nlp

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/textblob-sentiment-nlp/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "textblob-sentiment-nlp" })
OpenAPI spec →
vlatest
! Security: Review · 881mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

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
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
  • Scan a repo
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy