Building a codebook for open-text course feedback
How MacQueen et al. (1998), Hruschka et al. (2004) and DeCuir-Gunby et al. (2011) build and test a codebook, applied to coding student comments in course evaluations.
Koji Education Team
Product
The short answer: A codebook is the written set of rules a team uses to decide which comments get which code. MacQueen, McLellan, Kay and Milstein (1998), working on team-based qualitative analysis at the US Centers for Disease Control and Prevention, set out a structure that is still widely used: for each code, a name, a brief definition, a full definition, guidance on when to use it, guidance on when not to use it, and examples. Hruschka and colleagues (2004) later showed that coders who start out disagreeing can reach strong agreement, with kappa around 0.8 for most codes, by revising the codebook and recoding in rounds. For open-text course feedback, a codebook built this way makes theme counts comparable across modules, coders and years, and makes it possible to check them.
Most universities collect thousands of open-text comments every term. "What should be improved?" and "What worked well?" are in almost every course evaluation. The comments are often read by one person, summarised in a few lines, and filed. When several people code them, or when the same coding is repeated next year, the result depends heavily on whether everyone means the same thing by "workload", "feedback" or "organisation". This article sets out what the research says about building a codebook for that job, why it matters for quality assurance, where the method has limits, and how to put it into practice.
What the research says
The anchor study: MacQueen, McLellan, Kay and Milstein (1998)
Kathleen MacQueen and colleagues published "Codebook development for team-based qualitative analysis" in Cultural Anthropology Methods (volume 10, issue 2, pages 31 to 36). The paper came out of team-based qualitative work at the CDC, where several coders worked on the same body of interview text. It set out three things: how a structured codebook gives a stable frame for analysing text, how specific features of the codebook can raise agreement between coders, and why team-based coding is valuable in its own right.
The core of the paper is the structure of a codebook entry. Each code has six parts:
- Code. A short label or mnemonic used when coding.
- Brief definition. A one-line statement of what the code means.
- Full definition. A fuller account of the concept the code captures.
- When to use. Inclusion criteria: what in the text should get this code.
- When not to use. Exclusion criteria: what looks similar but should not get this code, and which other code it belongs to instead.
- Example. Text from the data that shows the code in use.

The "when not to use" part does much of the work. Most disagreements between coders are not about whether a comment is relevant but about which of two neighbouring codes it belongs to. Writing down the boundary, with an example, turns an argument into a rule. A codebook is also developed iteratively. It changes as coders meet text the definitions did not anticipate, and each change has to be recorded.
How a codebook improves agreement: Hruschka et al. (2004)
Daniel Hruschka and colleagues, also drawing on CDC work across three HIV-related studies in the United States and Zimbabwe, published "Reliability in coding open-ended data: Lessons learned from HIV behavioral research" in Field Methods (volume 16, issue 3, pages 307 to 331). They described what happens in practice when a team codes open-ended responses: agreement is often poor at first. But through rounds of codebook revision and recoding, the team reached strong intercoder reliability, with kappa around 0.8 for most codes. They also described steps that can raise poor initial agreement and reduce the number of rounds needed.
Where codes come from: DeCuir-Gunby, Marshall and McCulloch (2011)
DeCuir-Gunby, Marshall and McCulloch's "Developing and using a codebook for the analysis of interview data", in Field Methods (volume 23, issue 2, pages 136 to 155), gives step-by-step guidance using a professional development research project as the example. They distinguish codes developed in advance from theory or existing concepts (theory-driven), codes that emerge from the data (data-driven), and codes that come from the specific setting. They also cover how to train others to use the codebook and how to establish reliability. For course evaluation, this distinction matters: a faculty can start with codes from its own quality framework, such as assessment, feedback, organisation and teaching, and add codes that emerge from what students actually write.
The reliability debate: O'Connor and Joffe (2020)
Not everyone agrees that coders should be measured against each other. O'Connor and Joffe's "Intercoder reliability in qualitative research: Debates and practical guidelines", in the International Journal of Qualitative Methods (volume 19), review the arguments for and against intercoder reliability, note that some qualitative researchers see it as inappropriate or unnecessary, and offer practical guidance for teams that do assess it. Their position helps place the codebook approach. It suits work where the aim is consistent, countable categories that several people apply. It suits less well an interpretive analysis where one researcher's reading is the point, which is the approach described in this library's page on reflexive thematic analysis.
Why it matters in practice
Theme counts need stable definitions
Quality reports often say things like "28% of comments mentioned workload". That number means little unless "workload" was applied the same way to every comment. Without a written definition and exclusion rules, one coder may count "the deadlines all fell in week 10" as workload while another counts it as assessment scheduling. When different staff code different modules, the counts are not comparable at all.
Year-on-year comparison depends on it
Programme review and annual monitoring often ask whether something has improved. If the coding rules change silently each year, or the person doing the coding changes, an apparent fall in complaints about feedback might reflect a different coder rather than better feedback. A versioned codebook, where each change is dated and explained, makes the comparison defensible.
Panels and auditors can check it
A codebook is evidence. An accreditation panel or external reviewer who sees a theme summary can reasonably ask how the themes were defined. A codebook with examples answers that question and shows the analysis was systematic rather than impressionistic.
It spreads the work
In many departments, open-text coding falls to one person who knows the courses. A codebook lets the work be shared with colleagues, student representatives or research assistants, and lets a second person check a sample.
A worked example
Suppose a faculty codes "What should be improved?" across all first-year modules. An entry for one code might read:
- Code: FB-TIME
- Brief definition: Timing of feedback on assessed work.
- Full definition: Comments about how long it took to receive marks or comments on coursework, or about feedback arriving too late to use for the next assignment.
- When to use: "We got our essay back after the next one was due." "Marks took six weeks."
- When not to use: Comments about the quality or usefulness of feedback once received (use FB-QUAL). Comments about exam results release dates (use ASSESS-ADMIN).
- Example: "I still don't have feedback on the first lab report and the second is due Friday."
Two coders applying this entry will rarely disagree about the boundary between timing and quality, which is exactly where untrained coders split.
Limitations and honest caveats
- The anchor paper is a methods paper, not an experiment. MacQueen et al. describe a structure that worked in their projects; they did not compare it against alternatives in a controlled study.
- Agreement is not validity. Two coders can agree perfectly on a code that misreads what students meant. A codebook makes coding consistent; it does not make it correct.
- Context of the original work. The CDC projects coded long interviews in public health research. Course evaluation comments are usually short, sometimes a few words, which can make some distinctions impossible to apply.
- Kappa has known problems. With very common or very rare codes, kappa can be low even when coders agree on most comments. This library covers the issue in the kappa paradox and alternative agreement coefficients.
- Fixed codes can hide new issues. A codebook built from last year's themes may push new concerns into existing categories. Keeping a space for uncoded or new comments, and reviewing it, guards against this.
- Interpretive approaches reject it. Researchers working in a reflexive tradition argue that reliability measures are not meaningful for their kind of analysis. Both approaches are legitimate; they answer different questions.
How Koji incorporates this
Koji for Education runs course evaluations as short AI-moderated conversations in text or voice, combining structured questions with open discussion. Koji does not replace a faculty's own codebook or an intercoder check. Its analysis follows a similar two-stage logic and is designed to give a team a starting point it can test.
- A codebook per open question. For each open question, Koji first labels what each student said, using short descriptive labels or, sparingly, the student's own framing. It then groups related labels across all interviews into one set of themes for that question. Each theme keeps the labels that fed it, so a reviewer can see what was merged.
- Themes linked to quotes and transcripts. Every theme opens to the quotes behind it, and each quote links back to its place in the interview. This is the "example" part of a codebook entry, kept with every theme.
- Longer answers to code. Because the interviewer asks follow-up questions, students' answers usually say more than a one-line comment box. Probing instructions can tell the interviewer to ask for a specific example, which gives coders more to apply definitions to.
- Exporting for your own coding. Full conversations can be exported as a CSV file, one row per message, so a team can apply its own codebook in its usual analysis software and compare the result with Koji's themes.
- Removing personal details. A per-study privacy setting removes names, email addresses, phone numbers, postal addresses and employers from transcripts when each interview finishes, so coded text can be shared more widely.
Koji's themes are designed to speed up the first, open stage of building a codebook. They are not a validated coding scheme, and a faculty that needs comparable counts across years should still write definitions and exclusion rules and check a sample with a second coder. The same interview engine is used for product and customer research on koji.so.
A practical sequence
- Start with a short list of codes from your quality framework, and leave room for new ones.
- Have two people code the same small batch of comments independently.
- Write each code using the six parts above, paying most attention to "when not to use".
- Recode a fresh batch, compare, and revise the definitions where you disagreed.
- Repeat until agreement is stable, then code the rest.
- Version the codebook, date each change, and keep it with the report.
- Each year, review the uncoded comments for issues the codebook does not yet cover.
Related Resources
- Qualitative content analysis for open-text course feedback
- Inter-rater reliability in thematic analysis of open-text feedback
- The kappa paradox: choosing an agreement coefficient
- Reflexive thematic analysis for open-text course feedback
- Framework analysis for open-text course feedback
- Can a large language model code open-text course feedback?
References
- DeCuir-Gunby, J. T., Marshall, P. L., & McCulloch, A. W. (2011). Developing and using a codebook for the analysis of interview data. Field Methods, 23(2), 136 to 155. https://doi.org/10.1177/1525822X10388468
- Hruschka, D. J., Schwartz, D., St. John, D. C., Picone-Decaro, E., Jenkins, R. A., & Carey, J. W. (2004). Reliability in coding open-ended data: Lessons learned from HIV behavioral research. Field Methods, 16(3), 307 to 331. https://doi.org/10.1177/1525822X04266540
- MacQueen, K. M., McLellan, E., Kay, K., & Milstein, B. (1998). Codebook development for team-based qualitative analysis. Cultural Anthropology Methods, 10(2), 31 to 36. https://doi.org/10.1177/1525822X980100020301
- O'Connor, C., & Joffe, H. (2020). Intercoder reliability in qualitative research: Debates and practical guidelines. International Journal of Qualitative Methods, 19. https://doi.org/10.1177/1609406919899220
Related articles
How Reliable Is Your Coding of Open-Text Feedback? Inter-Rater Reliability and Thematic Analysis
When you turn thousands of free-text comments into themes and counts, how do you know the coding is trustworthy? O Connor and Joffe (2020) on intercoder reliability, Braun and Clarke on thematic analysis, and what rigorous qualitative QA looks like.
Can a Large Language Model Code Your Open-Text Course Feedback? What the Agreement Studies Show
Peer-reviewed evidence on how closely GPT-4-class models match human coders when categorising open-ended student comments — agreement statistics, where they fail, and how to use them responsibly in course-evaluation quality assurance.
The Framework Method for Open-Text Course Feedback: A Structured Alternative to Thematic Coding
When a quality committee — not a lone qualitative researcher — has to make sense of thousands of student comments, the Framework Method offers a transparent, auditable matrix-based approach. What Gale et al. (2013) actually proposed, and how to use it.
High Agreement, Low Kappa: Choosing an Agreement Coefficient for Coding Course Feedback
Cohen's kappa can collapse to near zero even when two coders agree on 95 percent of comments. Here is why the kappa paradox happens and when to report Gwet's AC1 or Krippendorff's alpha instead.