Analyze Qualitative Data with Structured Coding

Develop and, when source texts are supplied, apply a qualitative coding and thematic analysis framework for the stated evaluation questions. Ask for the material and question if neither is given.

Keep proposed codebooks distinct from completed analysis. Start with a source inventory, unit of coding, consent or quote limits, and analytic stance. From questions and any theory of change, propose a modest deductive codebook with code ID, definition, inclusion and exclusion rule, and boundary example; add inductive codes from actual text during familiarization. Do not invent participant quotes or force 15 to 20 codes. Show a documented process for reading, first-cycle coding, memoing, revising codes, comparing cases, developing candidate themes, checking contradictory material, defining themes, and reporting with traceable excerpts. Provide a matrix template by case or respondent group only if metadata and privacy permit. Coding agreement statistics are optional and require multiple coders, a stable codebook, and a suitable coding approach; never impose a universal kappa threshold. Do not claim saturation from a predetermined count. Include reflexivity, versioning, access controls, and how quantitative findings may be integrated when supplied. If only a description exists, return a draft codebook and analysis protocol, not results.

Choose This Prompt When
Pick this to code supplied qualitative material against a theory of change and keep an audit trail of code changes. For a concise synthesis across interviews, choose Analyze Interview Transcripts.
Loading saved answers...

Worked Example

Illustration only. The setting and figures are invented to show the pattern.

Scenario: An evaluation of a farmer cooperative program has twenty de-identified interview transcripts and focus group notes. The team has a theory of change and two evaluation questions.

What You Give the AI: The two evaluation questions, the theory of change, the transcripts with respondent type and district only, a note that direct quotes need cooperative approval, and a request for a codebook and themes.

What the AI Might Return: A source inventory and a codebook with code ID, definition, inclusion rule, exclusion rule and boundary example, for example CODE-04 market access with a boundary case on transport costs. Inductive codes proposed during familiarization are listed apart. Then the coding and theming steps, a case matrix by respondent group, three candidate themes with contradicting excerpts, and a reflexivity and version log.

When to Choose This Prompt

  • You have qualitative material and an evaluation question, and you need a codebook and a thematic analysis that someone else can follow.
  • You want deductive codes from the theory of change combined with codes that emerge from the text.
  • You need an audit trail covering code changes, excerpt links, reflexivity and access to the data.

When Not to Choose It

Checking the Output

  • Open a few codes and read the definition against their inclusion and exclusion rules. A second coder should be able to apply them the same way.
  • Match every quote in the output to a line in your transcripts. Quotes you cannot find are inventions.
  • Check that each theme rests on excerpts from more than one source and shows the contradicting material.
  • Compare the case matrix with your metadata. Columns you did not supply should not appear.
  • Read the privacy handling against your quote permissions. Direct identifiers and unapproved quotes should be absent.
  • If you supplied only a description, confirm the output is labeled a draft protocol and carries no results.

Common Problems and Fixes

  • The codebook is long, with a code for every passing topic. Fix: Ask for a modest set tied to the questions and a rule for when to add an inductive code.
  • Themes read as findings but cite no excerpts. Fix: Request source-linked excerpts for every theme, or a label that says the theme is provisional.
  • Coding agreement statistics are demanded with a threshold. Fix: Agreement figures only apply with several coders and a stable codebook. Ask to drop them for a single coder.
  • The AI claims saturation. Fix: Remove the claim and ask what the material shows and where more data would be needed.

Adapting It to Your Context

  • Single analyst: A lone analyst can swap intercoder checks for memoing and a decision log, so request those.
  • Mixed methods: Supply the quantitative findings and ask how they connect to the themes.
  • Participants at risk: State consent limits and ask for access controls and identifier handling to be spelled out.
  • No theory of change: Say that and request an inductive-led codebook with a clear process.

Next Step

How to Code Qualitative Interview Data with ChatGPT

Did this page help?