Sub topic 7
Scoring answers: mention rate, position, share of voice, accuracy
Earlier chapters produced a prompt set, a documented test protocol, and a log of repeated runs. This chapter turns that log into numbers you can compare across prompts, assistants, competitors, and dates.
This chapter assumes you have:
- A results log with one row per run, holding the prompt ID, the run number, the assistant and mode, the date, and the full answer text.
- Entity definitions for your brand and competitors, with aliases.
- Basic Python reading ability. The scripts are optional, and you can do all of this in a spreadsheet.
Score the answer, then aggregate
Score each recorded answer first. Only then combine scores into rates. Skipping the first step is a common error, because a single run is one sample and says little about the prompt.
Each answer gets a few simple labels: which entities appear, in what order, whether the brand is recommended, what sources are cited, and whether the claims about the brand are correct. The aggregate metrics are calculated from those labels.
Mention rate
Mention rate is the share of runs in which the brand appears at least once. The formula is:
mention rate = runs with a mention / total runs
If the brand appears in 2 of 3 runs of disc-01, the mention rate is 0.67 for that prompt. Report it per prompt and per prompt type. A single overall figure hides the pattern that matters. Branded prompts such as "What is Acme Analytics?" will almost always mention the brand, because the question names it. Discovery prompts are the real test, since the brand has to be volunteered.
Keep these rules in mind:
- Count a run once. Three mentions in one answer are still one mention for mention rate.
- Merge aliases into one entity. "Acme" and "Acme Analytics" are the same entity. If you treat them as two names, the entity looks like it appears twice, which distorts share of voice.
- Use whole-word matching. A plain substring search for "Acme" would also match "Acmeware". The earlier
find_brand_mentionsfunction uses word boundaries for this reason. - Exclude branded prompts when you report discovery visibility. Pooling them inflates the figure.
- Check negative mentions by hand. "Acme Analytics is not suitable for small shops" is a mention. It is not a recommendation.
Position
When an assistant lists several options, order matters. Users read the first few items and often stop. Two ways to measure it:
| Method | How to score | Weakness |
|---|---|---|
| Rank by first appearance | Sort entities by where each first appears in the text. The earliest is rank 1. | Ranks narrative text loosely, since an entity named early in an aside is not "top choice". |
| List rank | If the answer is a numbered or bulleted list, use the list item number. | Not every answer is a list, so you need a rule for the rest. |
Pick one method, write it in the protocol, and keep it constant across dates. Compute mean rank only over the runs where the brand appeared. Report it next to the mention rate, because "average rank 1.0" means little if the brand appeared in 1 run of 10.
A related label is whether the brand was recommended. Decide the definition in advance. A workable one is that the answer names the brand as a suggested choice, or as the best fit for the user's stated situation. A neutral description such as "Acme Analytics is another tool in this category" counts as a mention only.
Share of voice
Share of voice shows how much of the conversation your brand takes among the entities you track:
share of voice = brand mentions / mentions of all tracked entities
You can count each entity once per run or once per answer position. Count each entity at most once per run, to match mention rate. Then, if three tracked entities appear in a run, each contributes one mention.
The figure depends on the competitor list. If you track 3 competitors and a fourth appears often in answers, your share is overstated. Check answers for untracked brands during review, and add them to the entity file when they recur. State the entity list next to every share-of-voice number.
Citations
Where the assistant mode shows sources, record the cited URLs per run. Score:
- Brand citation rate: the share of runs that cite your own domain.
- Source types: your site, review sites, forums, news, and competitor sites. Chapter 9 covers source analysis in detail.
A cited source is not the same as a mentioned brand. An answer can cite your site without naming you, and name you without citing anything. Score the two separately.
Accuracy
Visibility with wrong facts can harm you. Score accuracy against a fact sheet that you write before reviewing any answers, so that the answers do not shape your idea of the truth.
- List the verifiable claims that matter: pricing model, main features, who the product is for, integrations, and founding details if relevant.
- For each answer that mentions the brand, extract each claim made about it.
- Label each claim as correct, incorrect, or unverifiable.
- Compute accuracy over checked claims.
| Claim in answer | Fact sheet | Label |
|---|---|---|
| "Acme Analytics has a free tier" | Free plan exists | correct |
| "Acme Analytics requires an annual contract" | Monthly billing available | incorrect |
| "Acme Analytics was founded in 2012" | Not on the fact sheet | unverifiable |
Accuracy = correct / (correct + incorrect). Leave unverifiable claims out of the denominator, but report how many there were. A high count of unverifiable claims means your fact sheet is incomplete. It may also mean the assistant is inventing details.
Accuracy needs a human reviewer, or at least a human check of any automated labels. The mention and position scores can be computed by code. Judging a claim usually cannot.
Sentiment is a coarser label: positive, neutral, or negative toward the brand. Use three values and write down an example of each, so a second reviewer would reach the same label. If two reviewers disagree often, your definitions are too loose.
A scoring script
This script scores answers for rank, mention rate, and share of voice. It treats an entity's aliases as one name. Accuracy is left out because it needs the manual review described above.
import re
def first_position(answer: str, aliases: list[str]) -> int | None:
"""Return the character index of the earliest alias match, or None."""
best = None
for alias in aliases:
match = re.search(r"\b" + re.escape(alias) + r"\b", answer, flags=re.IGNORECASE)
if match and (best is None or match.start() < best):
best = match.start()
return best
def score_answer(answer: str, entities: dict[str, list[str]]) -> dict[str, int]:
"""Return {entity: rank} for entities in the answer, rank 1 = named first."""
positions = {}
for name, aliases in entities.items():
pos = first_position(answer, aliases)
if pos is not None:
positions[name] = pos
ordered = sorted(positions, key=positions.get)
return {name: rank for rank, name in enumerate(ordered, start=1)}
def summarise(answers: list[str], entities: dict[str, list[str]]) -> dict[str, dict]:
scored = [score_answer(a, entities) for a in answers]
runs = len(scored)
total_mentions = sum(len(s) for s in scored)
summary = {}
for name in entities:
ranks = [s[name] for s in scored if name in s]
summary[name] = {
"mention_rate": len(ranks) / runs,
"mean_rank": sum(ranks) / len(ranks) if ranks else None,
"share_of_voice": len(ranks) / total_mentions if total_mentions else 0.0,
}
return summary
entities = {
"Acme Analytics": ["Acme Analytics", "Acme"],
"Example BI": ["Example BI"],
"Sample Metrics": ["Sample Metrics"],
}
answers = [
"For a small shop, consider Example BI or Acme Analytics.",
"Popular options include Sample Metrics and Example BI.",
"Acme is a good fit for small teams. Example BI is also common.",
]
for name, m in summarise(answers, entities).items():
rank = "-" if m["mean_rank"] is None else f"{m['mean_rank']:.1f}"
print(f"{name}: rate={m['mention_rate']:.2f} rank={rank} sov={m['share_of_voice']:.2f}")
# Acme Analytics: rate=0.67 rank=1.5 sov=0.33
# Example BI: rate=1.00 rank=1.7 sov=0.50
# Sample Metrics: rate=0.33 rank=1.0 sov=0.17Example BI is named in all three runs, so its mention rate is 1.00. It is first once and second twice, so its mean rank is 1.7. In this tiny sample Acme Analytics has the better rank when it appears (1.5) but is absent in one run. A reader who looked only at rank would miss that.
Common errors
- Reporting one run as a result. Always show the rate and the number of runs, such as "2 of 3" or "14 of 20".
- Mixing prompt types. A high overall mention rate caused by branded prompts says nothing about discovery.
- Changing definitions midway. If you change what counts as "recommended" or how rank is computed, earlier scores are no longer comparable. Re-score old data with the new rule, or start a new series.
- Comparing across assistants without noting the mode. A mode with web search and one without can produce very different answers. Group scores by assistant, mode, and date.
- Letting the competitor list drift. Adding a competitor changes everyone's share of voice. Record the date of any change.
- Trusting automated matching blindly. Names that are also common words, or brands with similar names, produce false matches. Spot-check a sample of answers against the scores.
- Averaging ranks over different runs. Mean rank among runs where the brand appeared is conditional on appearing, so state that.
Reporting the numbers
A good report row looks like this:
| Prompt type | Runs | Mention rate | Mean rank | Share of voice | Accuracy |
|---|---|---|---|---|---|
| Discovery | 20 | 0.35 | 2.4 | 0.18 | 0.90 |
| Comparison | 20 | 0.95 | 1.6 | 0.40 | 0.85 |
Each row names the prompt group, the run count behind it, and every metric above. Add the assistant, mode, and test date in the table caption or a header line. Without those, the figures cannot be repeated or compared later.
Exercise
In a set of 10 runs, an answer names Acme Analytics in 4 runs, Example BI in 8 runs, and Sample Metrics in 3 runs. Each entity is counted at most once per run. What are Acme Analytics' mention rate and share of voice?
Show answer
Mention rate = 4 / 10 = 0.40. Total tracked mentions = 4 + 8 + 3 = 15, so share of voice = 4 / 15 ≈ 0.27.
Exercise
Your fact sheet says Acme Analytics bills monthly. Across reviewed answers you find 12 claims about the brand: 8 correct, 2 incorrect, and 2 unverifiable. What is the accuracy, and what should you report about the unverifiable claims?
Show answer
Accuracy = 8 / (8 + 2) = 0.80. The 2 unverifiable claims are excluded from the denominator, but report their count. It may show a gap in the fact sheet or details the assistant made up.
Exercise
Why should you keep branded prompts separate when reporting mention rate for discovery visibility?
Show answer
A branded prompt names the brand, so the assistant almost always mentions it. Pooling those runs with discovery runs raises the overall mention rate and hides how often the brand is volunteered when users have not named it.