On this page
A codebook helps a research team apply the same labels to similar ideas across interviews. The hard part is defining codes clearly enough to guide consistent analysis without forcing every response into a premature framework. Start with a small, relevant sample, document what each code means and excludes, then revise the codebook as you encounter new evidence.
TL;DR
- Define the research question and the unit you will code before naming codes.
- Draft a manageable set of codes from a few relevant interviews, combining theory-driven concepts with ideas that emerge from the data.
- Give each code a definition, boundaries, and an example; record changes so everyone uses the current version.
- Apply the draft to more than one interview, discuss overlaps and gaps, and update the codebook before scaling up.
- If relevant interviews were captured and are accessible in Hemory, its Q&A can help retrieve context across conversations. The researcher—not Hemory—decides what to code and what a theme means.
1. Set the scope before drafting codes
Write down the question your analysis needs to answer. Then decide what counts as a coding unit: for example, a sentence, a short passage expressing one idea, or a longer answer to an interview question. Choose a unit that preserves enough context to interpret what a participant means.
Also clarify the approach. In a primarily deductive analysis, you begin with concepts from a research question or framework. In an inductive analysis, you develop codes from patterns in the material. Many projects use both: start with a few relevant concepts, but leave room for ideas that the interviews reveal.
Keep the codebook aligned with the analysis question. A label is useful when it helps interpret the material, not merely because a phrase appears often.
2. Draft candidate codes from a small sample
Choose a few interviews that are relevant to the question and offer useful variation in participants’ experiences. Read them before settling on the full set of codes. Note recurring ideas, meaningful differences, and details that could affect how an answer should be interpreted.
Turn those observations into candidate codes. Give each one a short, distinct name. Avoid creating separate codes for near-synonyms until you have a reason to treat them differently. At the same time, do not combine ideas that lead to different interpretations or research implications.
A candidate list is a working draft, not a final account of every theme in the dataset. New interviews may add a code, clarify a boundary, or show that two labels should be separated.
A practical codebook entry
For each code, record enough information for another researcher to apply it consistently:
| Field | What to write |
|---|---|
| Code name | A short label that distinguishes this idea from others. |
| Definition | What the code captures, stated in plain language. |
| Include when | The kinds of statements or situations that qualify. |
| Exclude when | Similar-looking material that belongs elsewhere or should remain uncoded under this code. |
| Example | A brief excerpt or paraphrased example that clarifies the boundary. Identify the source if you use a real excerpt. |
| Notes or status | Open questions, related codes, or whether the code is proposed, active, merged, or retired. |
A draft entry might look like this:
| Code name | Definition | Include when | Exclude when | Example |
|---|---|---|---|---|
| Workaround for access | A participant describes an alternate way to reach a resource when the usual route is unavailable. | The account explains both an access barrier and the alternate route used. | The participant describes a delay without an alternate route. | “I couldn’t get into the portal, so I asked a colleague to send the form.” |
This constructed example illustrates the format; it is not a finding from a research dataset. If an example comes from an interview, preserve enough surrounding context to avoid changing its meaning.
3. Define boundaries where codes could overlap
A code name alone rarely tells a second researcher how to use it. Make the operational definition specific enough to distinguish the code from adjacent ideas.
For example, “access problem” and “workaround” might both apply to one passage. Decide whether the passage can receive both codes, whether one code includes the other, or whether the codebook needs a clearer distinction. State the rule in the definitions rather than relying on team members to infer it.
If the same passage can legitimately receive more than one code, say so. If a code requires a condition—such as an access barrier that changes what the participant does—include that condition. Do not turn a researcher’s interpretation into a participant fact: distinguish what the person said from what the analysis infers.
4. Apply the draft and resolve disagreements
Use the draft codebook on more than one interview before applying it across the full set. This helps reveal definitions that are too broad, codes that are difficult to distinguish, and relevant material that has no suitable label.
If several people are coding, compare a shared sample and discuss differences. Ask whether the disagreement comes from an unclear definition, an ambiguous passage, different assumptions about the research question, or a reasonable difference in interpretation. Update the codebook when the rule needs clarification; do not resolve every difference by adding another code.
A codebook supports consistent decisions, but it does not make interpretation automatic. Keep unresolved cases visible and document how the team handled them. If your study requires a particular reliability procedure, follow the method specified for that project rather than treating one agreement statistic as a universal requirement.
5. Revise the codebook without losing the history
New interviews can challenge the draft. When that happens, record what changed and why. A simple change log might include the date, code affected, change made, reason, and whether previously coded material needs review.
Use status labels consistently. For example, mark a code as proposed while its definition is being tested, active once the team has agreed on how to apply it, merged when it is combined with another code, or retired when it is no longer used. If a change affects the meaning of a code, review earlier passages that may have been coded under the old definition.
Keep version history or a dated copy of the codebook. That makes it easier to distinguish the rules used during one phase of analysis from the current rules. Do not silently replace a definition if the change could alter how earlier interviews are interpreted.
Where Hemory can help with interview context
Your transcripts may already be stored in a research folder, document system, or transcript tool. If the interviews were captured and are accessible in Hemory, its built-in Q&A can answer questions about your Memory across conversations and help surface relevant transcript context. For example, you could ask for passages where participants describe how they handled an access barrier, then inspect the retrieved material as you develop or compare candidate codes.

Retrieve past commitments and draft follow-up tasks.
Use retrieved passages as material for the researcher’s review, not as a completed coding decision. A search result does not establish that every relevant example was found, and a transcript may need context to interpret a statement accurately. If an interview was never captured in Hemory or is not accessible there, use the source you do have rather than assuming Hemory can recover it. Hemory can help reduce manual searching and retelling; it does not perform thematic coding or determine what a theme means.
6. Check the codebook before using it at scale
Before coding the remaining interviews, ask:
- Does each code have a clear definition and a useful boundary?
- Can another researcher distinguish it from related codes using the written rules?
- Are examples faithful to their source and sufficiently contextualized?
- Are overlapping codes handled deliberately rather than inconsistently?
- Are proposed changes, unresolved cases, and revisions documented?
If the answers expose a problem, revise the codebook and apply the relevant change to previously coded material. If the draft is working, continue coding while remaining open to new evidence. A stable codebook is not one that never changes; it is one whose changes are explicit and applied consistently.
FAQ
How many interviews should I use to draft a codebook?
There is no universal number. Start with a small, relevant sample that gives you enough material to identify candidate ideas and differences. Add interviews if the draft is still missing important perspectives or its boundaries remain unclear.
Should I use predetermined codes or let codes emerge from interviews?
Use the approach that fits your research question and method. You can begin with concepts from a framework and still add or revise codes when the interviews raise ideas that the initial set does not cover.
Does every passage need a code?
No. Code material that is relevant to your research question under your chosen method. Do not invent a label just to categorize every sentence.
Can Hemory create or apply my thematic codes?
The supplied Hemory feature information describes transcript-based Q&A and retrieval, not thematic coding or code assignment. A researcher can use retrieved context to inform analysis, but must define and apply the codes and review the conclusions.
Next step
Draft the first version against a small set of relevant interviews, then test the definitions with another reader or coder before applying them broadly. Keep the codebook and its change history available as the shared reference. If the interviews are captured and accessible in Hemory, retrieving relevant context there can reduce the manual search involved in revisiting earlier discussions while leaving the analytical decisions with your research team.