# Open-Ended Survey Analysis: Turning Verbatims Into Codes You Can Count and Themes You Can Defend

How to analyse open-ended survey answers: build a coding frame, check coder agreement with Cohen's kappa, run thematic analysis and test AI-assisted coding.

Published 2026-08-25 · Updated 2026-10-12
Canonical: https://hercules.works/blogs/open-ended-survey-analysis-india

To analyse open-ended survey answers, read a sample, draft a coding frame with a definition and an example for every code, and have two people code the same subset. Cohen's kappa tells you whether their agreement beats chance; refine any code where it is low. Then code the full set, report each code's share of respondents, and quote real answers. Thematic analysis in Braun and Clarke's reflexive style suits exploratory work where you want meaning rather than counts. Hercules Works lists coded open-ended answers among its analysis outputs.

## A Verbatim Is Data Only After Someone Decides What It Means

Open-ended questions catch reasons your answer list did not anticipate. The price is analysis: hundreds of answers in mixed languages, spellings and lengths, which someone has to turn into categories without bending them.

We start with the two main traditions, then work through a coding frame for an Indian food product, a Cohen's kappa calculation you can check by hand, sentiment by code, what published tests say about AI-assisted coding, and how to report the result.

## Counting Codes or Interpreting Themes: Know Which You Are Doing

Virginia Braun and Victoria Clarke set out their approach in a 2006 paper, "Using thematic analysis in psychology" ([*Qualitative Research in Psychology* 3(2)](https://doi.org/10.1191/1478088706qp063oa)). Their site now separates "three clusters" of approaches: "coding reliability TA, codebook TA, and reflexive TA" ([thematicanalysis.net](https://www.thematicanalysis.net/understanding-ta/)).

The split matters for survey work. Coding-reliability approaches, in Braun and Clarke's words, "recommend the use of a coding frame precisely because this enables the calculation of inter-coder reliability scores". Reflexive TA does not: "This is why we don't advocate the use of a coding frame, or the calculation of inter-coder reliability scores" ([thematicanalysis.net FAQs](https://www.thematicanalysis.net/faqs/)).

| You need | Approach | Output |
|---|---|---|
| "What share of lapsed buyers mention price?" | Coding frame, two coders, kappa | Percentages by code, comparable across waves |
| "What does convenience mean to these mothers?" | Reflexive thematic analysis | A small set of themes, each with an argued interpretation |
| A fast read of a few hundred comments | Codebook approach, one coder, spot checks | Draft codes to test in the next survey |

If the result feeds a decision that needs numbers, you want the first row. The rest of this page follows it, and comes back to themes at the end.

## Build the Coding Frame: A Worked Example

Question: "What, if anything, would you change about the atta you buy now?" Before writing any code, read a random sample of answers spread across cities and languages. Then write each code with a definition, an inclusion rule, and an example. The answers below are made up for illustration.

| Code | Definition | Include | Example answer |
|---|---|---|---|
| P1 Price | Cost, value, price rises | Mentions of "costly", "mehenga", pack price | "Price thoda kam hona chahiye" |
| Q1 Softness of rotis | Texture of the cooked roti | Hard, dry, not fluffy | "Roti soft nahi banti" |
| Q2 Purity and adulteration | Belief that it is mixed or impure | Maida mixed, chalky, "not pure chakki" | "Lagta hai maida mila hai" |
| K1 Packaging | Pack strength, zip lock, sizes | Torn bags, wants smaller packs | "Zip lock should be there" |
| A1 Availability | Cannot find it in store or online | Out of stock, not in my kirana | "Local shop mein nahi milta" |
| N1 Nothing to change | Explicitly satisfied | "Nothing", "all good" | "Kuch nahi, sab theek hai" |
| X Other | Clear answer, no code fits | Review often; a growing Other means a code is missing | |
| Z Unusable | Blank, gibberish, off-topic | | "asdf" |

Four rules keep the frame usable. Allow more than one code per answer, because "costly and rotis get hard" is two complaints. Keep one code for explicit satisfaction separate from blanks. Group codes into nets (all Q codes form "Quality") so you can report at two levels. And write the frame in English with examples in the languages respondents used, so a second coder can apply it.

## Check Agreement Between Coders With Cohen's Kappa

Percentage agreement flatters coders, because two people tagging at random will still agree some of the time. Cohen's kappa removes that chance agreement: κ = (Pr(a) − Pr(e)) ÷ (1 − Pr(e)), where Pr(a) is observed agreement and Pr(e) is the agreement expected by chance ([McHugh, *Biochemia Medica*, 2012](https://pmc.ncbi.nlm.nih.gov/articles/PMC3900052/)).

Worked example. Two coders independently code 200 answers for P1 Price (present or absent).

| | Coder B: Price | Coder B: No price | Total |
|---|---|---|---|
| **Coder A: Price** | 60 | 10 | 70 |
| **Coder A: No price** | 14 | 116 | 130 |
| **Total** | 74 | 126 | 200 |

1. Observed agreement: (60 + 116) ÷ 200 = 0.88.
2. Chance agreement: (70 ÷ 200 × 74 ÷ 200) + (130 ÷ 200 × 126 ÷ 200) = 0.1295 + 0.4095 = 0.539.
3. Kappa: (0.88 − 0.539) ÷ (1 − 0.539) = 0.341 ÷ 0.461 = 0.74.

How good is 0.74? McHugh quotes the bands she attributes to Cohen, in which 0.61 to 0.80 counts as "substantial", and argues they are too lenient for health research. Her stricter table calls 0.60 to 0.79 "moderate" and says that in that setting "any kappa below 0.60 indicates inadequate agreement". Set your own target before coding starts. Compute kappa per code, not once for the whole frame: a frame can agree well on Price and poorly on Purity, and the weak code is the one to redefine.

## Sentiment: Score It by Code, Not by Comment

One answer often carries mixed feelings: "Taste is good but price badh gaya". A single positive or negative score for the whole comment hides both. Score sentiment inside each code instead, so you can say that Price mentions are mostly negative while Taste mentions are mostly positive. This is usually called aspect-based sentiment.

Be careful with word lists. A dictionary that does not contain a Hindi word such as "ghatiya" (shoddy) will read "service ekdum ghatiya" as neutral. Check a sample of machine-scored comments by hand before you report sentiment shares.

## AI-Assisted Coding: A Method to Validate, Not to Trust Blindly

Large language models can now assign codes to open-ended answers from a frame you supply. Published tests suggest results vary. Leah von der Heyde and colleagues compared several models on German answers about why people take part in surveys, checked against human expert coding. They report that "overall performance differs greatly between LLMs, and only a fine-tuned LLM achieves satisfactory levels of predictive performance", and that uneven accuracy across categories "results in different categorical distributions when not using fine-tuning" ([von der Heyde et al., 2025](https://arxiv.org/abs/2506.14634)).

That last point is the one to watch. A model can be right most of the time and still shift the share of one code enough to change a conclusion. Pew Research Center says it uses AI for tasks including "coding open-ended survey responses into categories", that "humans oversee every aspect of our work", and that it will describe meaningful AI use in the methodology section ([Pew Research Center](https://www.pewresearch.org/decoded/2024/08/27/how-pew-research-center-is-and-is-not-using-large-language-models-in-our-work/)).

If you use AI-assisted coding, treat the model as a third coder. Hand-code a random subset, compute kappa between the model and your human coder for every code, and compare code shares from the two. Report that you used it.

## Report the Codes So Readers Can Trust Them

**State the base.** Is 22% "of all respondents" or "of those who wrote an answer"? The two can differ a lot when many people leave the box blank.

**Explain why columns exceed 100%.** With multiple codes per answer, they will.

**Show the net and the detail.** "Quality, 31%" is a headline; "rotis not soft, 19%" is what the product team can act on.

**Quote real answers, unedited.** Pick quotes that represent the code, not the most colourful one, and translate them alongside the original.

For exploratory questions where you want to understand meaning rather than count it, a reflexive thematic analysis can sit next to the coded counts. Our [qualitative research guide](/blogs/qualitative-research-india/) covers how that work is done.

## Running This Study on Hercules

"Coded open-ended answers" appear on our [panel methodology](/panel-methodology) page as one output of our analysis engine, next to cross-tabs and significance tests. It does not publish the coding method, so ask how codes are defined and how they were checked. Because clients get "individual answers without identity data", drawing your own subset for the kappa check above is possible.

A 300-response study with two open questions comes to 300 × ₹150 = ₹45,000 on Plus ([pricing](/pricing)). Since the Free plan includes 30 responses, spend them on a first batch of verbatims and draft the coding frame from those before the main fieldwork.

## Frequently asked questions

### How do you analyse open-ended survey responses?

Read a random sample, write a coding frame with definitions and examples, have two coders code the same subset, check agreement with Cohen's kappa, refine weak codes, then code everything and report shares of respondents per code with representative quotes.

### What is a coding frame?

A list of codes, each with a definition, rules for what it includes and an example answer. It lets different people code the same way and lets you compare results across waves.

### What is a good Cohen's kappa for survey coding?

There is no single standard. The common bands call 0.61 to 0.80 substantial; McHugh argues for stricter bands in health research. Set a target before coding and check each code separately.

### Is thematic analysis the same as coding?

Not quite. Coding labels pieces of text; thematic analysis builds broader patterns of meaning from those codes. In Braun and Clarke's reflexive approach, themes are interpreted by the researcher and inter-coder reliability is not used.

### Can AI code open-ended survey answers?

It can assign codes, but published comparisons show accuracy varies by model and by category. Validate it against a human-coded sample with kappa per code before relying on the shares.

### How do I handle answers in Hinglish or regional languages?

Write examples in those languages into the coding frame, use coders who read them, and show quotes in the original with a translation. Check any automated tool on a hand-coded sample in each language you report.
