Sub topic 7
Position and Sentiment Within an Answer
Assume you understand basic SEO terms such as rankings, keywords, and backlinks. You should also be comfortable reading simple percentages and recognizing that an AI answer can change between runs.
A brand mention is only the starting point. Two answers can mention the same brands, but one may present your brand as the leading recommendation while the other places it at the end as a weak alternative. Position and sentiment add this context to the mention count.
Measuring position
Position records where a brand appears in the answer. The simplest method is mention order:
- Find the first mention of each tracked brand.
- Assign position 1 to the first brand mentioned, position 2 to the second, and so on.
- Record a missing value when the brand does not appear.
For example:
| Answer | Brand order |
|---|---|
| “Acme is a strong choice. Globex is another option.” | Acme: 1, Globex: 2 |
| “Consider Globex for price. Acme may fit larger teams.” | Globex: 1, Acme: 2 |
| “Several tools exist, including Initech.” | Initech: 1 |
Mention order is useful, but it is not a search ranking. AI answers may use paragraphs, bullets, headings, or comparison tables. A brand in a heading or recommendation sentence may receive more attention than a brand in a passing example.
You can record additional position fields:
- first mention position
- number of mentions
- answer section, such as heading, introduction, list, or conclusion
- recommendation order in a numbered list
- whether the answer gives the brand a direct action or qualification
A practical position metric is the first-place rate:
first_place_rate = runs where the brand is mentioned first / runs where any tracked brand is mentioned
Use the denominator carefully. If no brand appears, that run should not count as a first-place result.
Measuring sentiment and recommendation strength
Sentiment describes the attitude expressed about a brand. In AI visibility work, simple positive, neutral, and negative labels are often too broad. Record the actual claim when possible.
For example, an answer might say:
- Positive: “Acme is easy to set up and offers strong support.”
- Neutral: “Acme supports integrations with common tools.”
- Negative: “Acme lacks an offline mode.”
- Mixed: “Acme is affordable, but advanced reporting costs extra.”
Also record the aspect, or product characteristic, being discussed. A brand can have positive sentiment about price and negative sentiment about support. One overall label hides this difference.
A recommendation-strength field can complement sentiment:
- recommended: the answer explicitly suggests the brand
- qualified recommendation: the answer suggests it for a specific use case
- mentioned: the answer names it without advice
- caution: the answer highlights a limitation
- rejected: the answer says it is unsuitable
These labels require human review or a consistent classifier. Do not treat every appearance in a positive sentence as a recommendation.
from collections import Counter
observations = [
{"brand": "Acme", "position": 1, "sentiment": "positive"},
{"brand": "Acme", "position": 2, "sentiment": "mixed"},
{"brand": "Globex", "position": 1, "sentiment": "positive"},
{"brand": "Globex", "position": 2, "sentiment": "neutral"},
]
for brand in sorted({item["brand"] for item in observations}):
rows = [item for item in observations if item["brand"] == brand]
average_position = sum(item["position"] for item in rows) / len(rows)
sentiment_counts = Counter(item["sentiment"] for item in rows)
print(brand, round(average_position, 2), dict(sentiment_counts))The average position in this example is descriptive, not a universal score. A brand with an average position of 1.2 is not automatically better than one with 1.5. The answers may cover different intents, audiences, or product categories.
Common errors
Do not infer sentiment from position alone. A first-mentioned brand may be introduced as a poor fit. Do not infer sentiment from the existence of a citation. An answer can cite a page while criticizing the product.
Do not combine unlike prompts into one position score without grouping them. “Best CRM for a small team” and “CRM with advanced compliance controls” may produce different recommendation orders for valid reasons. Report results by intent, audience, or topic when those groups matter.
The same answer can also contain mixed sentiment. Store sentiment at the mention or aspect level when precision matters, then summarize it later.
Exercise
An answer mentions Acme first but says, “Acme is expensive and may not suit small teams.” How should you record it?
Show answer
Record Acme as position 1, with negative or mixed sentiment depending on the surrounding claims. Do not mark it as a positive recommendation merely because it appears first.