Sentiment analysis is the use of software to judge whether a piece of text is positive, negative, neutral or mixed, and often how strongly it feels so. Businesses run it over reviews, social posts, support emails and, more and more, the answers AI assistants give about their brand. It turns thousands of comments into a trend you can read in a minute.
What is sentiment analysis? #
It is a branch of natural language processing. A program reads a sentence and returns a number or a label. “The delivery was quick and the coffee was lovely” comes back positive. “Arrived broken, no reply to my email” comes back negative. Done across 5,000 reviews, the program shows which way opinion is moving and which topics drive it.
There are 3 common levels:
- Document level. One score for a whole review or post.
- Sentence level. One score per sentence, so a mixed review splits into its good and bad parts.
- Entity or aspect level. A score for each thing named: the product, the price, the courier, the staff.
How does it work? #
There are 2 broad approaches, and many tools mix them.
Rule and word-list methods #
These use a list of words with scores and a set of rules. NLTK, a widely used Python toolkit, ships one called VADER. Its sentiment how-to shows the output: 4 numbers, for negative, neutral, positive and a combined “compound” score. In its examples:
- “VADER is smart, handsome, and funny.” scores a compound 0.8316.
- Adding an exclamation mark lifts it to 0.8439.
- Writing key words in capitals lifts it to 0.9227.
- “At least it isn’t a horrible book.” scores 0.431: the rules spot that “isn’t horrible” is mildly positive.
Rules are fast, cheap and easy to explain. They struggle with slang, sarcasm and words that change meaning by trade.
Machine learning and language models #
These learn from large amounts of labelled text. They handle context better. A large language model can also be asked in a prompt to label sentiment and give a reason. Google’s Cloud Natural Language API is one hosted example. Its documentation returns 2 values:
| Value | Range | What it tells you |
|---|---|---|
| Score | -1.0 (negative) to 1.0 (positive) | Which way the feeling leans |
| Magnitude | 0.0 upwards, no top limit | How much feeling there is in total |
Google’s page explains why both matter. A score near 0 can mean the text is calm or that it is torn. Its examples: a truly neutral text might score 0.1 with magnitude 0.0, while a mixed one might score 0.0 with magnitude 4.0. It adds that magnitude is not normalised, so longer texts tend to get bigger numbers. Its entity sentiment feature scores each mention of a named thing, then combines them.
Why does it matter for search? #
Search engines do not publish a “sentiment score” ranking factor, and Google’s reviews system page does not mention sentiment at all. It rewards reviews with insightful analysis and original research, written by people who know the subject, over thin summaries. That echoes E-E-A-T. So the value for search is indirect. Sentiment tells you what customers praise and complain about. That shows you which questions your pages must answer, which product pages need better facts, and where your review snippets are coming from.
For local SEO, reviews are public and sit beside your listing in the local pack, read by people choosing where to go. Google’s Business Profile help page Tips to get more reviews advises replying promptly, keeping replies short and specific, and personalising replies to negative reviews. Sentiment tools help you find the negative ones fast.
Why does it matter for AI answers? #
AI assistants now describe brands in their own words. If someone asks ChatGPT or Perplexity whether a shop is reliable, the answer has a tone. That tone often comes from what the system found: reviews, forum threads, news and your own pages. Tracking the sentiment of AI answers over time shows whether the picture is getting better or worse. It also shows where an AI hallucination has turned a solved problem into a lasting complaint. Clear, current facts on your own site give the assistant something better to quote. See AI visibility and share of voice.
Common mistakes #
- Trusting one number. An average of 0.1 can hide a split between delighted and furious customers. Look at magnitude or the spread before you make it a KPI.
- Ignoring trade words. “Strong” is good for coffee and bad for a smell. Word lists built for film reviews misread other trades.
- Missing sarcasm. “Great, another 2-week wait” reads as positive to a simple rule set.
- Tiny samples. 12 reviews do not make a trend. Treat small counts as stories, not statistics.
- Mixing sources. Support tickets lean negative by nature; product reviews lean positive. Compare like with like.
- Feeding in private data carelessly. Emails and tickets hold personal details. Under UK GDPR you need a lawful basis and must protect them.
A worked example #
A small shop runs sentiment over 400 reviews from one quarter, at sentence level, grouped by topic.
| Topic | Sentences | Average score | What it means |
|---|---|---|---|
| Product taste | 310 | 0.7 | Clear strength: quote it on product pages |
| Packaging | 95 | 0.4 | Fine, few strong views |
| Delivery time | 140 | -0.3 | Problem: fix it and state real times on the site |
| Customer service | 60 | 0.0, high magnitude | Split: some loved, some angry. Read them. |
These are example numbers. The action list writes itself: put delivery facts on every product page, read the 60 service sentences by hand, and reply to each negative review.
How to check it #
- Start by reading 20 reviews yourself. You will spot the themes before any tool does.
- Check how AI assistants describe you. Our free AI Answer Comparer puts answers side by side, and the AI Misquote Risk Checker flags facts that are easy to get wrong.
- Make sure the facts AI systems need are on your pages with our AI Readiness Checker, and that your review markup is honest with the Schema Markup Checker.
- The AI Consistency Checker compares what your page, schema and feeds say.
- In URSY Pro, AI sentiment tracks the tone of AI answers about you over time, and the AI fact accuracy monitor checks the facts inside them.
Questions #
Is sentiment analysis accurate? #
It is good at clear praise and clear complaints. It is weaker on sarcasm, mixed feelings and trade language. Spot-check a sample by hand.
Can I do it for free? #
Yes. Open-source toolkits such as NLTK include a word-list method. For a few dozen reviews, reading them is quicker.
Does positive sentiment help my ranking? #
Google does not say so. Use it to improve your pages and service, not as a ranking lever.
Related words #
Sources #
- Google Cloud: Natural Language API basics, checked 24 November 2026
- NLTK: Sentiment Analysis how-to, checked 24 November 2026
- Google Search Central: Google Search’s reviews system, checked 24 November 2026
- Google Business Profile Help: Tips to get more reviews, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: Sentiment analysis. URSY. Updated 26 November 2026. https://ursy.com/wiki/sentiment-analysis/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProAI sentimentWhat AI says about you: positive, neutral, negativeIn URSY Pro →