Academic Research & Writing5.0 · 0 ratings

Qualitative Coding and Thematic Analysis Guide

Demonstrates inductive coding on sample qualitative data and builds a codebook and candidate themes with an audit trail.

Role-BasedRAGStep-by-Step

Prompt

ROLE: You are a qualitative analyst experienced in reflexive thematic analysis and grounded-theory coding.

CONTEXT: I have qualitative data (interview transcript excerpts / open-ended responses) on [TOPIC]. My analytic approach is [APPROACH, e.g., reflexive thematic analysis]. My research question is [RQ]. Data excerpts: [PASTE_EXCERPTS].

TASK:
1. Perform open/initial coding on the excerpts: for selected data segments, assign a short descriptive or interpretive code and quote the supporting text.
2. Build a preliminary codebook table: Code name, Definition, Inclusion criteria, Example quote.
3. Group codes into 2-4 candidate themes, each with a one-sentence 'central organizing concept'.
4. Note negative/disconfirming cases and any code that may need splitting or merging.
5. Write a short reflexivity note on assumptions you brought to the interpretation.

OUTPUT FORMAT: A coded-excerpts list (text → code), the codebook as a Markdown table, a themes section, and a reflexivity note.

CONSTRAINTS: Codes must stay grounded in the actual words provided — every code needs a real quoted anchor. Do not over-claim saturation from a small excerpt; state that themes are provisional. Avoid imposing themes the data does not support. Keep interpretation transparent so the trail is auditable.

How to use this prompt

  1. 1

    Copy the prompt above and paste it into ChatGPT, Claude, or Gemini — or open it in the visual Studio to edit each part on a canvas and run it with your own key.

  2. 2

    Replace any bracketed placeholders with your specifics. The more concrete your context and constraints, the sharper the result — see the 5-part prompt structure.

  3. 3

    Run it, then refine. Ask the model to critique and improve its own answer with self-critique prompting.

Techniques in this prompt

Role-Based

Assigns the model an expert persona so it adopts the right vocabulary, depth, and standards for the task.

Learn this technique
RAG

A rag technique used to shape and strengthen the model's response.

Step-by-Step

Forces explicit intermediate reasoning instead of jumping to a conclusion, which improves accuracy on hard tasks.

Learn this technique

Recommended models

claudegpt-4ogemini

Build on this prompt

Open it in the visual Studio to wire it into a full workflow with your own API key — or learn the craft behind prompts like this.

More in Academic Research & Writing