Build a codebook another analyst can apply to the same posts
A codebook is the difference between a finding and an opinion. Here is how to write categories, examples and decision rules that survive a second reviewer.
Two analysts read the same hundred posts. One counts twelve complaints about delivery, the other counts nineteen. Neither is lying; they applied different rules quietly. A codebook exists to make those rules loud.
The example values below are invented for teaching. Nothing here is a benchmark, and no figure comes from a DataPI customer.
Start from the decision, not the taxonomy
Write the decision the coding serves. "Decide whether the delivery FAQ needs rewording" needs four categories at most. A general-purpose taxonomy of thirty topics looks thorough and produces a chart nobody can defend.
Keep categories mutually exclusive where the decision needs a count, and allow overlap only when you will never sum them. If one post can be both "late delivery" and "wrong item", either write a combined category or declare that counts may overlap and never total them.
Give every category a boundary example
A definition is a sentence; a boundary example is the sentence plus the two posts either side of it. Include one post that clearly belongs, one that clearly does not, and one genuinely ambiguous, with the ruling written down.
Write the ruling as a testable instruction: "If the author describes an order arriving after the promised window, code Late delivery, even when they also mention packaging." Instructions like "judge intent" cannot be applied twice.
Record the second coding pass
Code twenty posts independently, compare, then discuss only the disagreements. The disagreements are the codebook bug list. Rewrite the rule that caused each one instead of quietly agreeing.
Keep the codebook version with every dataset. A codebook change mid-study invalidates comparison with earlier coding, exactly as a query change does, and the same rule applies: restate or restart.
- Version the codebook and the query together.
- Store the quoted source text for every coded post.
- Record who coded what, and when.
Report the codebook, not just the chart
Publish the category list, the denominator, the sample size and the unknown share beside the result. A reader who cannot see the rules has to trust the analyst; a reader who can see them can check the work.
When a category turns out to be useless, keep it in the codebook with a note saying so. Deleting it silently makes the next study repeat the same mistake.
- Write the decision first; it caps the number of categories.
- A category without a boundary example is a word, not a rule.
- Version the codebook beside the query and keep the disagreements.
Related pages
Related reading
- Audit a social dataset before drawing the first chartCheck what was requested, returned, missing, duplicated, and observed at different times before a tidy chart hides the gaps.
- Turn a listening dashboard into a decision queueA practical way to turn public questions and complaints into evidence an owner can act on, with a worked example and explicit limits.
- Why public posts cannot tell you an audience’s demographicsA post attributes words to an account, not a person. Age, income and gender are not in the payload, so a demographic claim built from posts is an inference wearing a measurement label.