Draft a Qualitative Coding Frame
Draft an approach-appropriate qualitative coding frame, using provisional notes and reflexive memos when a fixed codebook does not fit.
Use the following structure for codebook-based analysis. If the stated approach does not use a fixed codebook, explain the mismatch and adapt the output into provisional coding notes and reflexive memos rather than imposing a coding-reliability design:
- Code definition clarity. For each code, write a clear operational definition suited to the chosen codebook approach; do not promise identical interpretations by independent coders. Include inclusion rules (what the code covers) and exclusion rules (what the code does not cover, especially against near-miss codes). Use operational language, not theoretical jargon alone.
- Hierarchy structure. Organize codes in a parent-child hierarchy where it adds value. Distinguish related codes and document when overlapping or multiple coding is allowed; mutually exclusive codes are needed only when the analytic purpose requires them. Set depth appropriate to the data volume.
- Exemplar coverage. Use permissioned, de-identified source excerpts as anchor or near-miss examples where available, explaining boundaries. Otherwise label examples invented for instruction as illustrative; never present them as participant quotations or study findings.
- Inductive-deductive balance. Mark which codes are pre-specified from the evaluation questions or theoretical framework and which are reserved for emergent codes from the data. Build in a clear process for adding emergent codes during analysis.
- Reliability plan. Choose quality procedures consistent with the analytic approach. For a coding-reliability approach, justify any double-coding share, agreement metric and decision rule rather than imposing universal cutoffs. For reflexive approaches, use reflexive memos, analytic dialogue and transparent decisions rather than requiring agreement statistics or a fixed codebook. Do not label a fixed coding frame as a universal requirement of thematic analysis.
Output Format:
Produce:
- A short framing paragraph stating the evaluation questions the codebook supports and the analytic approach (thematic, framework, grounded theory).
- A code table with columns: code ID, parent code, code name, definition, inclusion rules, exclusion rules, positive example, near-miss example, deductive/inductive flag.
- An emergent-code protocol (one paragraph).
- An approach-specific quality plan explaining any coding calibration or reflexive review, decision logging and version changes.
- A note on software (e.g., NVivo, Dedoose, Atlas.ti, MAXQDA, Excel) and how codes will be exported and version-controlled.
Inputs and boundaries: Request the research questions, analytic approach, permissioned de-identified transcript excerpts or field notes, relevant theory or prior framework, language and team context. Source names or transcript counts alone cannot support inductive codes or source quotations. Without text, provide a provisional deductive structure and mark inductive content pending. Do not infer participant prevalence from code counts; clarify whether any counts refer to passages, people or sources and what coverage they represent.
- Choose This Prompt When
- Use this to draft a codebook before or during analysis. Choose Analyze Qualitative Data with Structured Coding to apply a structured approach to supplied material, or Review an Analysis Plan to assess the wider design.
On this page
Worked Example
Illustration only. The setting and figures are invented to show the pattern.
Scenario: An evaluation of a maternal health program has interviews with 24 women and a team of three analysts who need a shared codebook before they start. The approach is framework analysis.
What You Give the AI: Two evaluation questions, the stated framework approach, six de-identified excerpts with permission to use them, a short theory of access to care, and the note that interviews were in two languages.
What the AI Might Return: A framing paragraph, then a code table. One row: ID "B2", parent "Barriers", name "Cost of transport", definition "mentions money or arrangements needed to reach a facility", exclusion "general poverty talk with no link to travel", flag "deductive". The near-miss example is labeled as invented for instruction. An emergent-code paragraph says new codes are logged with date and reason.
When to Choose This Prompt
- You are building a codebook before coding begins or refining one during analysis.
- Several people will code and need definitions with boundaries they can share.
- You want a plan for adding emergent codes and tracking changes in the frame.
When Not to Choose It
- You want a structured approach applied to material you have supplied. Analyze Qualitative Data with Structured Coding
- You want codes applied to your excerpts now, with no codebook needed first. Code Qualitative Data
- You want the wider analysis design assessed. Review an Analysis Plan
Checking the Output
- Take two codes the AI calls near neighbors and test whether the inclusion and exclusion rules separate them.
- Compare deductive codes with your evaluation questions and theory. Each should trace to one of them.
- Check that examples taken from your excerpts are identified as such and that any invented ones are labeled.
- Read the quality plan against your analytic approach. A reflexive approach should not come with agreement targets.
- Look at the hierarchy depth against the amount of data you actually have.
- Confirm the emergent-code protocol says who may add a code and how the change is recorded.
Common Problems and Fixes
- The AI imposes a fixed codebook on a reflexive approach. Fix: State your approach and ask for provisional coding notes and reflexive memos, and drop the frozen frame.
- Definitions are theoretical and coders cannot apply them. Fix: Request operational wording with an example of text that fits and text that does not.
- Invented quotes look like participant words. Fix: Have every illustration say whether it comes from your excerpts or was written for instruction.
- A universal agreement threshold is given. Fix: Request quality steps that fit your approach and the number of coders you have.
Adapting It to Your Context
- Data in more than one language: Say which and ask for a rule on coding in the source language or after translation.
- One analyst only: State it and ask for a plan using memos and a later review, since double coding is not possible.
- Evaluation questions still shifting: Ask for a lean first-level frame with room to branch.
- Software with its own export format: Name it and ask for the table columns to match its import.