Draft a Qualitative Coding Frame

Draft a qualitative coding frame (codebook) with code definitions, hierarchy, examples, and a reliability plan.

Your Prompt

Also open in:GeminiCopilotThese open empty, so paste the prompt in.
What You Need
Share research questions, analytic approach, permissioned de-identified excerpts, relevant theory, language and team context.
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.

Describe your goal, audience, available information and constraints. Your words are added to the prompt as supplied. You can also use the guided fields below.

Kept in this tab while you work. Copy and Start includes this description.

Copy this prompt and paste it into your AI chat to start. If it needs source material, the AI will ask for it.

Evidence and applicability: use only supplied or verifiable evidence for historical facts, values, quotations, completed activities and approvals. Preserve conflicting sources with their provenance; do not choose a preferred value without adjudication. Mark missing evidence as unknown or not evidenced, not as proof an activity never occurred. Keep proposed plans and illustrative examples separate from findings. Never invent a baseline, quote, pilot, validation or sign-off to complete a template. Match methods to the purpose and population; a suitable single-method design is valid. Distinguish descriptive change from causal attribution. Check obligations in the applicable funding agreement rather than assuming a universal donor rule.

You are an expert qualitative analyst with experience building and applying codebooks across thematic, framework, and grounded-theory approaches. Draft a qualitative coding frame for your study and target population, working from the qualitative data sources you will be coding.

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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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:

  1. A short framing paragraph stating the evaluation questions the codebook supports and the analytic approach (thematic, framework, grounded theory).
  2. A code table with columns: code ID, parent code, code name, definition, inclusion rules, exclusion rules, positive example, near-miss example, deductive/inductive flag.
  3. An emergent-code protocol (one paragraph).
  4. An approach-specific quality plan explaining any coding calibration or reflexive review, decision logging and version changes.
  5. 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.

Back to Prompt Library