Sub topic 6
Tag observations consistently
Tagging, also called coding, is the step where you attach short labels to each atomic observation so you can find, count, and group them later. This chapter assumes you have already split your interview notes into atomic observations, each with a participant, a source location, and a type (quote, behavior, or interpretation). It also assumes you know the difference between a problem and a requested solution. You need a spreadsheet or a plain-text file to follow along.
Why tags matter and where they go wrong
An observation on its own is one data point. A tag makes it findable alongside similar data points. When you later cluster observations into themes and judge evidence strength, you rely on tags to answer questions like "Who mentioned manual reporting?" Inconsistent tags give wrong answers to those questions.
The most common failures are:
- Synonym drift. You write
manual_reportingin one interview andhand_made_reportsin another. A count of either tag undercounts the real pattern. - Tags that are too broad. A tag such as
problemsorpainmatches almost everything, so it separates nothing. - Tags that are too narrow. A tag such as
p3_monday_spreadsheet_fixmatches one observation and can never show a pattern. - Solutions as tags. A tag such as
needs_dashboardrecords what a participant asked for, not the situation behind it. - Interpretation as tags. A tag such as
lazy_processrecords your judgment, not what happened.
Tag the observation, not your theory
A good tag describes something present in the observation. Ask: "If a colleague read only this observation, would they agree this label applies?" If the answer depends on your hypothesis, the tag is an interpretation and should live in a separate interpretation record.
Look at two observations from the example data:
- "I export the numbers to a spreadsheet every Monday and fix them by hand." This describes a manual activity (
manual_reporting) on a schedule (weekly_routine). - "Opened three tabs to reconcile totals before sending the report." This describes a mismatch between sources (
data_mismatch), and it is also a manual activity.
Neither tag claims a cause. The interpretation that reporting is slow because totals do not match stays in a separate record that points back to both observations.
Build a codebook
A codebook is a small list of tags, each with a definition and a rule for when to apply it. It is the main tool for consistency. Without it, your tags depend on your memory.
A minimal codebook has four columns:
| Tag | Definition | Apply when | Do not apply when |
|---|---|---|---|
| `manual_reporting` | Participant builds or fixes a report by hand | They describe or are seen doing copy, paste, retyping, or manual correction | The report is generated automatically and they only read it |
| `data_mismatch` | Numbers from two sources disagree | They mention or are seen reconciling differing totals | They mention a missing value with no second source |
| `weekly_routine` | The activity repeats on a fixed schedule | A day or frequency is stated or observed | The activity happened once |
The "do not apply when" column is the one people skip, and it prevents most drift. Write it as soon as you hit your first borderline case.
Choose a tagging approach
There are two ways to start, and most people combine them.
- Deductive tagging. You begin with tags derived from your research questions. If a question is "How do managers produce weekly reports?", you start with tags like
manual_reportingandweekly_routine. This keeps you focused but can blind you to surprises. - Inductive tagging. You read the first few interviews and create tags from what you see. This catches the unexpected but produces many overlapping tags.
A practical sequence is to read two or three interviews and tag them inductively, then stop and consolidate into a codebook. Tag the rest of the interviews against that codebook. When you meet something new, add a tag deliberately and note the date, rather than inventing a label in passing.
Rules for good tags
- Use a consistent format. Pick lowercase with underscores and stick to it.
Manual Reporting,manual-reporting, andmanual_reportingwill be treated as three tags by most tools. - Name the situation, not the feeling or the fix. Prefer
data_mismatchtoannoyingorneeds_sync. - Allow several tags per observation. The second example above carries two tags. Do not force a single choice.
- Keep about two to five tags per observation. More than that usually means the observation is not atomic and should be split.
- Aim for tags that appear across more than one participant. A tag that applies to a single observation is fine early on, but review it later. It may be a rename of an existing tag or a real outlier worth keeping.
- Separate tag types if the list grows. Some teams prefix tags by kind, such as
act_for activities,ctx_for context, andpain_for pain points. Only do this when the flat list becomes hard to scan.
Tag the evidence type separately
An observation's type (quote, behavior, interpretation) is a field, not a tag. Keep it separate. Later you will weigh behavior you saw more heavily than something a participant only said, and you can only do that if type is its own column. In the structure below, type and tags are different fields on purpose.
- id: o12
participant: P3
source_note: interview-p3.md#L41
type: quote
text: "I export the numbers to a spreadsheet every Monday and fix them by hand."
tags: [manual_reporting, weekly_routine]
- id: o13
participant: P3
source_note: interview-p3.md#L47
type: behavior
text: "Opened three tabs to reconcile totals before sending the report."
tags: [manual_reporting, data_mismatch]
- id: i4
type: interpretation
based_on: [o12, o13]
text: "Reporting may be slow because totals from different sources do not match."Count participants, not mentions
Once tags exist, the first useful thing to do with them is count. The count that matters is the number of distinct participants per tag. Counting raw mentions lets one talkative participant inflate a theme. The script below uses five observations. P3 has two observations tagged manual_reporting, but P3 counts once.
from collections import defaultdict
observations = [
{"id": "o1", "participant": "P1", "tags": ["manual_reporting"]},
{"id": "o2", "participant": "P1", "tags": ["data_mismatch"]},
{"id": "o3", "participant": "P2", "tags": ["manual_reporting", "data_mismatch"]},
{"id": "o4", "participant": "P3", "tags": ["manual_reporting"]},
{"id": "o5", "participant": "P3", "tags": ["manual_reporting"]},
]
participants_by_tag = defaultdict(set)
for obs in observations:
for tag in obs["tags"]:
participants_by_tag[tag].add(obs["participant"])
ranked = sorted(participants_by_tag.items(), key=lambda item: -len(item[1]))
for tag, people in ranked:
print(tag, len(people), sorted(people))Running it prints:
manual_reporting 3 ['P1', 'P2', 'P3']
data_mismatch 2 ['P1', 'P2']By raw mentions, manual_reporting appears four times. By participants, it appears for three of three. The participant count is the number you carry forward when you judge evidence strength.
A tag audit that catches drift
Counting also reveals problems in your tag list. Run a short audit before you cluster anything.
- List every tag with its participant count.
- Look for near-duplicates by eye: plurals, word-order swaps, abbreviations, and spelling variants.
- Merge duplicates into the codebook name and update every affected observation.
- List tags that cover nearly every participant. If one tag covers everyone, it is probably too broad to separate anything. Split it or drop it.
- List single-observation tags. Decide for each whether to merge, keep as an outlier, or delete.
from collections import defaultdict
from difflib import SequenceMatcher
observations = [
{"id": "o1", "participant": "P1", "tags": ["manual_reporting"]},
{"id": "o2", "participant": "P2", "tags": ["manual_report"]},
{"id": "o3", "participant": "P3", "tags": ["data_mismatch"]},
]
tags = sorted({t for o in observations for t in o["tags"]})
for i, a in enumerate(tags):
for b in tags[i + 1:]:
score = SequenceMatcher(None, a, b).ratio()
if score > 0.8:
print(f"possible duplicate: {a} / {b} ({score:.2f})")The script prints possible duplicate: manual_report / manual_reporting (0.97). A string match only flags candidates. You decide whether two tags mean the same thing, because data_mismatch and data_missing look alike but describe different situations.
Tagging workflow
Expect two or three passes. The loop ends when an audit finds no merges or splits to make, not when you run out of patience.
Edge cases
- An observation fits no tag. Do not force it. Mark it
untaggedand review these at the end. A cluster of untagged observations is a signal that your codebook is missing a theme. - A participant states a solution. Tag the underlying situation if one is stated. If the participant only says "I want an export button", tag it with a neutral label such as
feature_requestand look for the problem behind it in the next chapter's technique. Never tag the request as if it were the problem. - A tag changes meaning midway. If you refine a definition after tagging half the data, go back and recheck every observation with that tag. A silent definition change is worse than a visible duplicate.
- Two people tag the same notes. Have both tag the same two interviews independently, then compare. Disagreements show which definitions are vague. Fix the codebook text rather than arguing about individual cases.
- Small samples. With five participants, a tag on two participants is a weak signal. Tagging does not create evidence. It only organizes what you have.
Checklist before clustering
- Every observation has at least one tag or is explicitly marked
untagged. - Every tag has a definition and a "do not apply when" rule.
- No two tags mean the same thing.
- No tag describes a solution or a judgment about the participant.
- Type (quote, behavior, interpretation) is stored in its own field.
- Participant counts per tag are computed from distinct participants.
Exercise
A teammate tags the observation "I asked my assistant to check the invoice totals again because the two systems showed different amounts" with needs_automation, lazy_process, and data_mismatch. Which tags should you keep, and what do you do with the others?
Show answer
Keep data_mismatch, because two systems showed different amounts and that is present in the observation. Remove needs_automation because it names a solution, not something that happened. Remove lazy_process because it is a judgment about the participant. If the team believes automation would help, record that as a separate interpretation that points back to this observation. You could also add manual_reporting or a similar tag if the codebook says rechecking by hand qualifies.
Exercise
Your data has four observations tagged slow_exports and all four come from participant P2. Another tag, export_delay, has two observations from P4 and P5. What should you do before clustering, and why does the participant count matter here?
Show answer
Check whether slow_exports and export_delay mean the same thing. If they do, merge them into one codebook tag and update all six observations. The merged tag then covers three distinct participants (P2, P4, P5), not six mentions. Before merging, the first tag looked like a heavy theme but came from one person. The participant count shows the real spread, which is what you use to judge evidence strength.