Skip to content
mentoor

Topic 4 of 6 · 4 min read

Coding open-ended feedback at scale

Goal: Code a set of open-ended responses with AI, hand-check a sample and report the agreement rate before using the counts.

AI can tag thousands of open-ended answers into categories fast, but you must check a sample by hand and report how often you agree with it before you use the counts. An unchecked count is a guess with a number on it.

Check yourself · 1 of 3

What is a codebook in feedback analysis?

Choose one answer

Why it matters

A survey with 2,000 free-text answers, a pile of app reviews or a month of support tickets is too much to read. Coding means giving each answer one or more labels, such as "slow loading", "price" or "login problem". A model can do this in minutes. But it can also label a sarcastic review as praise, apply a vague label to everything, or tag the same answer differently on a second run. If a manager reads "23% mention pricing" and acts on it, the label quality matters.

How to do it

  1. Write the codebook first. A short list of labels, each with a one-line definition and an example. Include "other" and "unclear".
  2. Pilot on 30 to 50 answers. Run the model, read the results, and sharpen any label that confuses it.
  3. Run the full set with the final codebook. Ask for one label per answer plus the answer id, so nothing is lost.
  4. Hand-check a sample. Draw about 50 answers at random, label them yourself without looking at the model's labels, then compare.
  5. Report the agreement rate. If you agree on 44 of 50, that is 88%. Say what you checked next to every count. Low agreement on one label means that label's number cannot be trusted.
  6. Keep the raw data. Anyone should be able to open the answers behind a count.

Before and after

Before: "AI analysis of 1,800 reviews: 31% complain about price."

No codebook, no check, no way to know if it is true.

After: "Using a 9-label codebook, AI coded 1,800 reviews. We hand-checked 60 random reviews and agreed on 51 (85%). Price complaints: 31%, with agreement on that label 92% in the sample."

What goes wrong

  • Labels overlap, such as "performance" and "slow", so counts split or double.
  • The check sample is the first 50 rows, which are all from one week or one product.
  • Sarcasm, mixed answers and short answers like "fine" are labelled with confidence.
  • Counts are shown to one decimal place, which suggests more precision than the method has.

Examples

A codebook entry

Label: billing-error. Definition: the customer says they were charged the wrong amount or twice. Example: "I was charged twice for May." Not this label: complaints that the price is too high (use price).

Reporting a check

Sample: 60 random tickets from all four weeks. Agreement with the AI: 51 of 60 (85%). Labels under 75% agreement: "other" and "onboarding". Counts for those two are shown as rough only.

Key points

  • Write a codebook with definitions and examples before the model tags anything.
  • Pilot the codebook on a small batch and fix labels that confuse the model.
  • Hand-label a random sample yourself, without seeing the model's labels, and compare.
  • Report the agreement rate next to the counts, and distrust labels with low agreement.
  • Keep the raw answers linked to every count so anyone can check them.

Common mistakes

  • Using the model's counts with no codebook and no sample check.
  • Checking the first rows instead of a random sample.
  • Letting labels overlap so one answer counts twice.
  • Showing precise percentages that the method cannot support.

Check yourself · 2 of 3

An AI coded 1,500 app reviews. What should you do before reporting the percentages?

Choose one answer

Check yourself · 3 of 3

A hand check of 60 tickets shows the AI agreed with you on 51. What is the agreement rate?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic