# LLM Response Coding: Worked Study · AIScholar

> Define a rubric, assess judge agreement and review open-ended model responses with human checks.

Canonical: https://aischolar.cc/examples/llm-judge-coding

Example study · Measurement methods

# Code open-ended LLM responses with human checks

Define a rubric, compare judge outputs and review disagreements before treating labels as outcomes.

Stage 1 · Hypothesis

## The study behind the coding problem

The substantive study is simple: do models give differently _hedged_ answers to contested empirical questions than to settled ones? The hard part is not collecting 1,000 free-text responses — it is turning them into inspectable data. This walkthrough treats the coding pipeline as the main event.

| ID | Prediction |
| --- | --- |
| H1 (substantive) | Responses to contested questions will show more hedging than responses to settled questions. |
| H2 (measurement) | An LLM judge can code hedging with near-human reliability (agreement with human gold standard ≥ .80). |

Stage 2–4 · Design through Execution

## A deliberately simple collection design

| Design element | Choice |
| --- | --- |
| Factor: question\_status | contested (10 questions) vs. settled (10 questions), realized as question snippets |
| Subject models | 2 OpenRouter models |
| Replications | 25 per question × model |
| Expected output | Freeform text — the whole point is to code it afterwards |
| Trial count | 20 questions × 2 models × 25 replications = 1,000 trials |

Design, prompts, and [execution](https://aischolar.cc/features/experiment-execution) follow the standard path (see the [factorial walkthrough](https://aischolar.cc/examples/persona-task-factorial) for that machinery in detail); everything below is Stage 6.

Stage 6 · Coding

## Step 1 — A rubric with anchors, not vibes

The [coding scheme](https://aischolar.cc/features/response-coding) defines two variables. Every rubric point gets a concrete anchor — the single biggest driver of judge reliability:

Schemes are **versioned**: when the rubric changes after calibration (it will), hedging\_v2 is a new version, and every coded response records which version produced it.

Stage 6 · Coding

## Step 2 — Calibrate against a human gold standard

Before trusting the judge on 1,000 responses, the researcher hand-codes a stratified sample of 60 in the human-review interface. The judge codes the same 60 blind. The calibration loop:

| Step | What happens |
| --- | --- |
| 1\. Blind double-coding | Human and judge code the same 60-response sample independently. |
| 2\. Disagreement review | Every disagreement is inspected side-by-side; most cluster on rubric ambiguities (is "generally" one hedge or two?). |
| 3\. Rubric revision | Anchors are tightened into hedging\_v2; the judge re-codes the sample. |
| 4\. Acceptance gate | Proceed only when weighted agreement clears the pre-set bar (e.g. quadratic-weighted κ ≥ .80). |

The **judge-prompt sensitivity check** runs here too: paraphrases of the rubric are applied to the sample, and if codes swing with rubric wording, the rubric — not the responses — is the problem.

Stage 6 · Coding

## Step 3 — Multi-judge coding at full scale

The full pass codes all 1,000 responses with the primary judge, plus a second judge model on a 20% overlap sample. Judges run on your OpenRouter key or an authorized project sponsor's key, with the same orchestration, cost estimation, and retry machinery as experiment execution.

| Comparison | Statistic | Value |
| --- | --- | --- |
| Judge 1 vs. human gold standard (n=60) | Quadratic-weighted κ | .83 |
| Judge 1 vs. Judge 2 (20% overlap) | Krippendorff's α (ordinal) | .79 |
| Judge 1 vs. Judge 2, boolean variable | Cohen's κ | .88 |

### These numbers are illustrative

Numbers like these would justify using judge codes for analysis while reporting the human-anchored agreement in the paper. If the overlap α had come out at .55, the right move is back to Step 2 — not a footnote. These values show the output shape, not findings from a real run.

Stage 7–8 · Analysis & Write-Up

## Analysis on codes, methods section on the pipeline

With defensible codes, the substantive test is routine — an ordinal mixed model of hedging on question status with question as a random effect, run in the [analysis stage](https://aischolar.cc/features/analysis). The [write-up assistant](https://aischolar.cc/features/write-up) drafts the measurement subsection from the coding metadata itself: scheme versions, judge models and parameters, sample sizes, and agreement statistics — a transparent account of the coding choices and checks.

## Apply coding checks to a substantive study

Define observable labels that fit the research question, compare automated codes with reviewed examples, and inspect disagreements before interpreting the resulting data. The [prompt-sensitivity walkthrough](https://aischolar.cc/examples/prompt-sensitivity) illustrates a complementary check on prompt wording.

Judge calls, like subject-model calls, use your OpenRouter key or an authorized project sponsor's key and can incur separate, variable provider charges. Estimate costs and pilot the rubric before coding at scale. Review the costs before running a larger study.

Stage ✓ · Honest limits

## What this method can and cannot claim

Judge codes are model outputs, with their own sensitivities — that is why calibration is against a _human_ gold standard, and why agreement is reported rather than assumed. High agreement on this rubric and sample does not transfer automatically to other constructs; recalibrate per scheme. And a judge sharing a provider with a subject model is a correlated-error risk worth avoiding when you choose judge models. For the full measurement-quality toolkit, see the [response-coding feature page](https://aischolar.cc/features/response-coding).

-   LLM-as-a-judge
-   Krippendorff's α
-   Human review

## More example studies

-   [

    ### Analyzing an existing dataset

    A bring-your-own-data study: upload existing responses, code them with a judge, and analyze without re-running trials.

    ](https://aischolar.cc/examples/byod-dataset-analysis)
-   [

    ### AI safety & alignment: authorization

    A study idea comparing how models judge authorized testing, unclear permission and unauthorized access.

    ](https://aischolar.cc/examples/ai-safety-alignment)
-   [

    ### Framing effects across models

    A matched-pair framing study with decoupling-gap analysis, comparing gain vs. loss framing across three subject models.

    ](https://aischolar.cc/examples/framing-effects)

[See all example studies](https://aischolar.cc/examples)

## Explore a study of your own.

These walkthroughs illustrate methods, not ready-to-run templates. Plan and review your own design before collecting responses.

[Start your first study](https://aischolar.cc/sign-in)
