Sub topic 7
Coding Coverage Against the Message Framework
Where this chapter fits
This chapter assumes you already have a defined coverage universe, a rule for what counts as a mention, and a written set of key messages. If you don't, go back to those chapters first. Coding is the step that turns articles into data. Message pull-through is calculated from that data, so errors made here carry into every later number.
Coding means reading each coverage unit and recording, in a fixed format, which key messages it contains. The output is a table with one row per article and one column per message. Nothing is counted or averaged yet.
What you need before you start
You need four things in place:
- A list of coverage units. Each one has a stable ID, an outlet, a date, and the text or a link to it.
- A message framework. Each key message has a short name, a definition, and examples of what counts and what does not.
- A codebook. This is the written rulebook the coders follow. It contains the framework plus the coding rules described below.
- A coding sheet. This is a spreadsheet or database table with the fields you will fill in.
Deciding what a "presence" is
The core decision is how much evidence a coder needs before marking a message as present. There are three common standards.
| Standard | A message is present when... | Strength | Weakness |
|---|---|---|---|
| Verbatim | The exact wording or an approved variant appears | Easy to apply and to audit | Misses paraphrase, so it understates real pull-through |
| Paraphrase | The idea appears in different words | Reflects what readers take away | Needs judgment, so coders disagree more |
| Attributed | The idea appears and is tied to the brand or a brand spokesperson | Separates the brand's voice from other voices | Excludes messages repeated by third parties |
Pick one standard and write it into the codebook. The paraphrase standard is the usual choice, with a rule such as: "Code the message as present if a reader could restate it as the brand's position without reading the original wording." Whichever you choose, apply it to every article. Changing standards between periods makes trends meaningless.
Writing coding rules that coders can follow
A message definition alone is not enough. Add rules for the cases that come up again and again.
- Binary presence. For each message, record 1 if present and 0 if absent. Count a message once per article, however many times it is repeated. This keeps long articles from counting more than short ones.
- Whose voice. Decide whether a message counts when a critic or competitor says it, or when the journalist rejects it. A common rule: it counts only if it is presented in the brand's favor or in the brand's voice.
- Location. Decide whether text in a caption, pull quote, or sidebar counts. Most codebooks say yes if it is part of the published article.
- Quoted versus original text. Decide whether a message in a quoted press release extract counts. Usually it does, because the audience still read it.
- Partial matches. If a message has two parts, such as "secure and fast", decide whether both parts must be present. Splitting it into two messages is usually cleaner.
- Negation. "Acme is not secure" mentions the topic but contradicts the message. Code it as 0, and consider a separate field for negative framing.
A worked example
Suppose the brand Acme has three key messages: secure, fast, and affordable. The codebook defines them like this:
| Message | Counts as present | Does not count |
|---|---|---|
| secure | Acme is described as protecting data or users, in the brand's favor | A mention of a past breach with no reassurance |
| fast | Acme is described as quick to deliver, set up, or respond | Fast growth of the company |
| affordable | Acme is described as low cost or good value | A price listed with no value judgment |
A coder reads an article and finds this passage: "Acme says its new platform keeps customer data encrypted at all times, and setup takes under ten minutes." The coder records secure = 1, fast = 1, and affordable = 0.
Another article says: "Analysts note Acme's growth has been fast, though prices remain high." Here fast = 0 because the codebook excludes company growth. affordable = 0 because the article says the opposite.
Recording the codes
Store the codes in a structure that is easy to calculate from. The sketch below shows the idea in Python. It validates each coded row so that a typo or a missing value stops the process instead of silently changing a rate.
KEY_MESSAGES = ["secure", "fast", "affordable"]
coded_rows = [
{"id": 1, "outlet": "Daily News", "secure": 1, "fast": 1, "affordable": 0},
{"id": 2, "outlet": "Tech Weekly", "secure": 0, "fast": 0, "affordable": 0},
{"id": 3, "outlet": "Daily News", "secure": 1, "fast": 0, "affordable": 0},
{"id": 4, "outlet": "Market Wire", "secure": 1, "fast": 0, "affordable": 1},
]
def validate(rows, messages):
seen_ids = set()
for row in rows:
if row["id"] in seen_ids:
raise ValueError(f"Duplicate article id: {row['id']}")
seen_ids.add(row["id"])
for message in messages:
if row.get(message) not in (0, 1):
raise ValueError(
f"Article {row['id']}: '{message}' must be 0 or 1, "
f"got {row.get(message)!r}"
)
validate(coded_rows, KEY_MESSAGES)
print(f"{len(coded_rows)} rows passed validation")
# 4 rows passed validationNotice that an empty cell is not treated as 0. A blank means the coder did not finish the row, and the validation step catches it. Treating blanks as zeros is a common way to push pull-through down without anyone noticing.
Coding workflow
A reliable workflow has the same steps every time.
- Pilot. Have two coders code the same 20 to 30 articles independently. Compare results and discuss every disagreement.
- Revise. Fix unclear definitions. Add the borderline cases to the codebook.
- Repeat the pilot with fresh articles until agreement is acceptable. The next chapter covers how to measure that.
- Code the full set. Keep the codebook frozen. If you must change it, note the date and recode earlier articles affected by the change.
- Validate. Run checks for duplicates, blanks, and values outside 0 and 1.
Human coders, automated tools, and hybrids
Some monitoring platforms offer automatic message detection. The choice affects cost, speed, and accuracy.
- Keyword rules find verbatim wording quickly. They miss paraphrase and cannot detect negation, so they overstate and understate at the same time.
- Machine classifiers can handle paraphrase but make errors you must measure. Never trust the vendor's accuracy claim without testing it on your own articles.
- Human coders handle context best. They are slower and cost more, and their consistency drifts over a long project.
- Hybrid approaches let a tool pre-code articles and have a person review. For a sample, a person codes independently and you compare the two.
Whatever you use, treat the tool as another coder. Test it against a human-coded sample and record the agreement in the same way.
Common coding errors
- Counting repetition. An article that repeats "secure" four times still gets
secure = 1. - Reading the headline only. Messages often appear lower in the article. Code the full text where you can.
- Syndicated duplicates. The same wire story in ten outlets is ten coverage units under most universe definitions. Code it once and copy the codes, so the ten rows are identical.
- Coder drift. Coders slowly become stricter or looser. Re-check a sample of early articles halfway through the project.
- Outcome bias. A coder who knows the campaign goal may read messages into text. Where possible, code without seeing the target pull-through rate.
- Changing the framework mid-period. Adding a message partway through means older articles were never checked for it. Recode them or start a new baseline.
What the coded data lets you do next
A clean coded table supports the calculations in the next chapter. Because each row has an outlet and a date, you can compute pull-through for the whole set, for each message, for each outlet, and for each period, just by grouping rows. That flexibility is the reason to code at the article level and keep every field.
Exercise
Acme's codebook defines fast as "Acme is described as quick to deliver, set up, or respond." A coder reads the sentence "Acme, which doubled its headcount last year, is one of the fastest-growing firms in the sector" and marks fast = 1. Is this correct? Explain, and say what should happen to a blank cell in the fast column.
Show answer
It is incorrect. The sentence describes company growth, not speed of delivery, setup, or response, so the code should be fast = 0. The codebook definition governs, not the word "fast". A blank cell should not be read as 0. It means the row is unfinished, so validation should flag it and the coder should complete it before any rate is calculated.
Exercise
A wire story about Acme is republished by six outlets. Two coders mark secure = 1 for the version in one outlet and secure = 0 for another outlet's copy of the same text. What went wrong, and how should you prevent it?
Show answer
The same text should always receive the same codes, so the two results show an inconsistency in coding. Either one coder misread the text, or the outlets' versions differ slightly and the difference was not documented. Prevent it by coding syndicated copies once and copying the codes to every identical version, and by reviewing any version that was edited differently before applying the shared codes.