This essay has eighteen charts and figures that aren't reproduced below yet — waiting on Daniel's original image exports. Read the full piece with all charts (PDF) →
In the second book of Samuel, King David decides to count his people. The text is blunt about why: “the anger of the Lord was kindled against Israel, and he moved David against them to say, Go, number Israel and Judah.” David gives the order to Joab, the captain of the host, and Joab hesitates. “Why doth my lord the king delight in this thing?” But “the king's word prevailed against Joab, and against the captains of the host.”
The commanders spend nine months and twenty days crossing the country. They come back with the figures (eight hundred thousand men who can draw the sword in Israel, five hundred thousand in Judah) and then, in the quiet understatement of the King James Version, “David's heart smote him after that he had numbered the people.” What follows is the story we all know: God's wrath in the format of a plague. “There died of the people from Dan even to Beer-sheba seventy thousand men.”
The Bible had already warned about this. In Exodus, God tells Moses that when he takes the sum of the Israelites, “every man” must give “a ransom for his soul”, half a shekel, “that there be no plague among them, when thou numberest them.” A head count and a payment in the same verse: an early lesson that states count people in order to charge them, with a plague as the enforcement mechanism.
Besides this historical concerns about the effects of censing, I raise the question: can we track the topic of taxing accross the bible using AI? is 2 Samuel 24 a chapter about taxes? This is a good showcase to understand the natural limitations and perks of using AI for qualitative marking. Nobody mentions money. A plain word list for tax vocabulary (tax, tribute, census, publican, toll and their Spanish equivalents) finds nothing in it, because the King James says “number”, not “census”.
Let's look at this quick example: I asked nine AI coders (three language models times three ways of promping question), to rate from 0 to 100 how much that chapter talks about taxes.
| 2 Samuel 24, tax salience (0–100) | Minimal prompt | Rubric prompt | Few-shot prompt |
|---|---|---|---|
gpt-4.1-nano (smallest model) | 1 | 25 | 90 |
gpt-4.1-mini | 0 | 50 | 20 |
gpt-5-mini | 0 | 25 | 10 |
Zero to ninety. Three of the nine say the chapter does not mention taxes at all. Across all eighteen setups I tried (the same nine in English plus nine in Spanish) it is one of the ten chapters of the Bible the coders disagree about most.
I'm asking nothing exotic, a task that more and more is embedded into social scientist enthusiasm with the use of AI: they were given some text and asked to identify the existence of a concept.
The research questions
The Bible is a good laboratory for this example, partly because it is full of economics. Debts are cancelled every seventh year (Deuteronomy 15). Land returns to its original family in the jubilee (Leviticus 25). Charging interest to the poor is forbidden (Exodus 22). Honest weights and measures are mandatory (Deuteronomy 25), and wages must be paid before the sun goes down (Deuteronomy 24). To get a sense of scale, I built a crude word list for six economic themes: trade, production, labor, credit and debt, wealth and poverty, and taxes and tribute. It finds at least one of them in 68% of English chapters, and three or more in 11%. (The labor list includes “servant”, which in the King James is also how people politely refer to themselves in front of a king, so read 68% as generous.)
I used that background to run an experiment with four questions:
- How much does the answer change when only the coding changes? Same text, same regression; I vary the model, the wording of the prompt and the language.
- Which of those choices matters most?
- Does it depend on what you code, and how you slice it? Taxes, an index of economic activity, violence; and a rating versus extracting people and places.
- Does a ready-made tool fix it? I tried GABRIEL, OpenAI's toolkit for this kind of measurement.
This casestudy will revolve around a substantive question underneath that is deliberately open: what changes in the way the Bible talks about taxes when the story reaches the coming of Christ? I will say “what changes”, not “what is the effect”. Nobody has a strong prior about the answer (hopefully you do, disengaged reader), which is exactly the situation in which coding choices do the most damage.
And the short answers:
- Very much. In an earlier difference-in-differences version of this analysis (the usual design, which I dropped), eighteen codings of the same chapters gave estimates from −1.4 to +4.6 points, and one was “statistically significant”. In the design I kept, all eighteen agree that tax talk falls at the Nativity, by anything from 0.1 to 2.3 standard deviations, while a plain word list says it does not.
- It depends on the design. In the earlier version the model and the prompt mattered about equally. In the design I kept, the model accounts for more than half of the variation and the prompt for little.
- It depends on what you code. “Taxes” turns out to be three things moving in different directions. And the concept I expected to be the most fragile (violence) was the most robust.
- Not by itself. GABRIEL adds useful things (multi-run averaging, the passages behind a code, a function that finds what separates two sets of texts), but how you word the attribute still moves the answer more than the noise averaging removes.
- Not the usual way. The usual difference-in-differences failed its own check (the two groups do not move in parallel). The design I kept is better, and still imperfect.
As you can see, you can land in any region of the certainty spectrum given the model you choose to code.
The corpus, a library without a librarian
I chose the Bible for its literary merits, sure. But mostly because it is in the public domain, exists in every language, and comes divided into tidy chapters.
It is also a good stress test, because it is not one text.
Each bar is a book, in canonical order: purple for the Old Testament (39 books), orange for the New (27). They run from Psalms, with about 43,800 words, to the third letter of John, with 295. The whole thing is 1,189 chapters and about 793,000 words in the King James Version. Chapters are the unit I code, one per model call, and they run from 33 words (Psalm 117) to 2,467 (Psalm 119). A single instruction has to work on all of them.
I used two translations of the same text: the King James Version in English, and the Reina-Valera 1909 in Spanish. That lets me ask whether the language of the text changes the answer.
A quick look at the two versions. The left panel shows chapter lengths (the typical chapter has about 630 words, roughly a page and a half, in both Testaments). The middle panel puts English against Spanish for the same chapter: Spanish needs about 11% fewer words. The right panel counts distinct words: Spanish packs more variety into fewer words, because verbs and adjectives change form. The two texts tell the same story, in not quite the same words.
To get a feel for the content, I also mapped the chapters: each dot is a chapter, and chapters that use similar words sit close together.
The orange cloud at the top right is the New Testament, which separates into the Gospels and the letters. The purple Old Testament sprawls into regions of law, poetry, prophecy and genealogy. The black rings mark chapters that contain a tax-related word, and they gather in the Gospels and around Ezra, with stragglers elsewhere. Only about 6% of chapters have one. The thing I am about to ask machines to measure is, most of the time, absent.
The experiment, step by step
Here is the whole pipeline in six steps:
- Take a chapter of the Bible (one language at a time).
- Wrap it in a prompt: the instructions telling the model what to look for.
- Send it to a model (one call per chapter).
- Receive a code, a short piece of structured text, for example
{"rating": 50, "mentions": true}: “tax salience 50, yes it mentions taxes”. That is one row of a spreadsheet. - Arrange the rows and run a regression on them.
- Repeat for every combination of the choices below, and compare the 18 resulting estimates.
Step 2 is where researchers make choices they barely notice, so here is what I changed, with examples. First, the prompt:
| Prompt style | What you tell the model | Real example (shortened) | Human equivalent | What it leaves open |
|---|---|---|---|---|
| Minimal | Just the question | “How much does this text talk about taxes? Give a 0–100 rating…” | Telling an RA “code the taxes” and leaving | Everything: what counts as a tax, what a 40 means |
| Rubric | A definition, an anchored scale, a rule of evidence | “Taxation includes any tax, tribute, census/enrolment for tax purposes, tithe-as-levy, tolls, customs, forced payments to a ruler… 0 = absent, 25 = a passing mention… 100 = the central topic. Judge only what the text says.” | A codebook | Your definition, which may not be anyone else's |
| Few-shot | A few solved examples | “A chapter where a king imposes tribute on a conquered people → rating 70, mentions: true” | Training a coder on practice cases | Whether the examples are representative: models imitate them |
I did not test chain-of-thought (asking for reasoning before the score), averaging several runs, or pairwise comparison (showing two passages and asking which has more of the trait). Those are real options. You should definetly try them!
A rubric looks like rigor, and partly it is. It is also a list of decisions. I decided that tithes count only “as a levy” and that customs duties count. Borges wrote about a classification of animals attributed to a certain Chinese encyclopedia, with categories such as animals that belong to the Emperor, embalmed animals, and those that from a distance resemble flies. His point was that every classification of the universe is arbitrary and conjectural. A codebook for “taxation” (admittedly less funny) is not less arbitrary.
The other things I varied:
| Lever | Options | Why it might matter |
|---|---|---|
| Model | gpt-4.1-nano (smallest), gpt-4.1-mini, gpt-5-mini | Different models have different tendencies, such as how often they say “yes” |
| Language | English (KJV), Spanish (Reina-Valera 1909) | Same verses, but “taxed” in English and empadronada (registered) in Spanish |
| Task | A 0–100 rating, a yes/no flag, extraction of people, places and dates | Extraction feels objective; ratings feel subjective. Both turn out to be choices |
| Concept | Taxes (and its three components), an index of economic activity (6 dimensions), violence | To see whether fragility depends on what you measure |
Model × prompt × language gives 3 × 3 × 2 = 18 codings of the same text per concept.
One more coder I used: GABRIEL., an OpenAI package that gets its own section below. I ran its rate function on every chapter with the same two models as my own prompts (gpt-4.1-mini and gpt-5-mini), so it counts as two extra codings (the black diamonds in the results).
The design
To see how much these choices matter downstream, I used a regression and a question to ask it. The question cannot be “what is the effect of the coming of Christ on taxes”: the data cannot tell us that. The Nativity coincides with Roman rule (Luke 2 is a Roman census), and the texts on either side differ in author, genre and language. What I can measure is what changes in the text at that boundary.
I did not use the usual difference-in-differences (New Testament books against Old Testament books, second half of each book against the first). It rests on the two groups moving in parallel before the “treatment”, and in this text they do not, and it also needs an event, which was hard to pinpoint within each testament.
So I used a design that asks a narrower question and makes no causal claim:
- Chapters in narrative order. I kept the narrative spine: Genesis to Esther without 1–2 Chronicles (which retell Samuel and Kings), then the four Gospels and Acts. That is 488 chapters, 371 before the cutoff and 117 after. Prophets, psalms and letters are out, because where they belong in time is debatable and dating them would be one more coding decision.
- A regression discontinuity. Fit a line to the chapters just before the cutoff and another to the chapters just after, and read the jump between them at the cutoff. I used the
RegressionDiscontinuityestimator ofdiff-diff(Gerber, 2026), with its default bandwidth selection, plus fixed windows of 15, 30 and 60 chapters as a sensitivity check. Outcomes are standardized, so jumps are in standard deviations. - Placebo cutoffs instead of trusting a p-value. Neighbouring chapters are similar, so standard errors are optimistic. I computed the same jump at every other cutoff in the spine, and asked where the Nativity jump ranks. If the boundary were special, its jump would beat almost all of the others.
- A split of “taxes” into three things: state tribute (taxes, tribute, tolls, publicans), religious dues (tithes, temple payments) and census (counting or registering people).
The regression. Around the cutoff, the model fits a straight line on each side and measures the gap between them, using weighted least squares, with weights that shrink with distance from the cutoff.
Each term, in plain words: i indexes a chapter on the narrative spine. yi is the coded outcome for chapter i, standardized within each coding. xi is the running variable: the chapter's position in the story minus the position of the cutoff. Di equals 1 if the chapter comes after the Nativity and 0 otherwise. τ is the parameter of interest, the jump at the cutoff: a negative τ means tax talk falls at the Nativity. h is the bandwidth, the number of chapters near the cutoff the regression actually uses.
The headline estimates use the package's bias-corrected version of τ with robust confidence intervals. The fixed-window jumps and the placebo comparison use the plain estimate. For a placebo cutoff, I run the same regression with xi measured from a different chapter instead of the Nativity.
| The usual difference-in-differences (not used) | Regression discontinuity at the Nativity (used) | |
|---|---|---|
| Question | Does tax talk rise later in New Testament books, relative to the Old? | What changes in the text at the coming of Christ? |
| Units | 66 books, by quarter | 488 chapters in narrative order |
| Estimator | Difference-in-differences | Regression discontinuity, plus placebo cutoffs |
| Main weakness | No treatment event; parallel trends fail | Few chapters near the cutoff; Rome, genre, author and language are confounded |
| Causal claim | Implied | None |
The coding behind this design cost about $6.90 in API calls: $2.90 for the tax ratings of the 488 chapters, $3.20 for the three-way split of taxes, and $0.80 for the re-runs.
The result, eighteen readings of one boundary
The LLM codings, whatever the model, prompt or language, agree that tax talk peaks in Ezra and Nehemiah, just before the cutoff, and then falls. The word list tells a different story: a surge of tax words in the Gospels. (My guess is publicans, tribute and the temple tax; I have not checked.) The two disagree about where the tax talk is.
Same chapters, same estimator, and the answers run from −2.30 to −0.10 standard deviations. All 18 LLM codings say tax talk falls, but only one clears the 5% bar, and most intervals cross zero. The word list says +0.15 in English and +0.11 in Spanish. The black diamonds are GABRIEL's rate, run on every chapter with the same two models as my own prompts: −0.63 and −0.92, in the middle of the cloud and, like every LLM coding, below zero.
The sign is robust across LLM codings, the size varies twenty-fold. The window around the cutoff is also a choice: with fixed windows of 15, 30 and 60 chapters the jump ranges from −3.12 to +0.15, −2.38 to −0.37 and −2.11 to −0.26, and two codings change sign.
Is the Nativity an unusual boundary, though? This is what the placebo cutoffs are for.
The dot is the Nativity jump, the grey bar spans where 90% of the jumps at other cutoffs fall, and the number on the right is the rank (100% means the Nativity jump beats every other). For the LLM codings the rank runs from 63% to 100%, with a median of 90%, and the Nativity jump beats 95% of the other cutoffs in only 4 of 18 codings. For the word list the rank is 37% and 10%, and for GABRIEL 83% and 93%. Whether the Nativity is “an unusual boundary” depends on who codes the text.
The suspects, which choice matters most
Mmany knobs, Many answers. Which one is responsible? A standard tool for this is a variance decomposition, also known as an ANOVA.
We line up the 18 estimates, and if they differ (like in this case) we ask how much of that spread you could explain if you only knew which model produced each estimate. Then add the prompt, then the language. Whatever is left over goes in a final bucket. It works like asking how much of the variation in students' exam grades comes from the school, how much from the teacher, and how much is something else.
For the 0–100 rating, the model accounts for 53% of the spread, the prompt for 8%, the language for about 4%, and 36% is left over. For the yes/no flag, the shares are 57%, 6% and 1%, with 36% left over.
The grey bar is the part that no single choice explains. It holds interactions (the effect of one choice depends on the others) and noise. In this design the noise is relatively small: running the same pipeline three times moves the estimate by only 0.17 standard deviations, against 0.65 when you change the prompt, 0.47 when you change the language and 1.06 when you change the model.
“Taxes” is actually three things
When I split “taxes” into three components, they stopped moving together.
State tribute falls at the Nativity in all 18 LLM codings (−1.80 to −0.66 standard deviations, with a 30-chapter window). Tithes and temple dues mostly rise (14 of 18; −0.55 to +0.54). The census barely moves (−0.44 to +0.28). And the word list gets the opposite sign for the first two: it says state tribute rises (+0.43 in English) and tithes fall (−0.51).
A single “tax” variable was averaging components that go in different directions, which is part of why estimates built on a single “tax” variable are so unstable. My reading is that the end of the Old Testament narrative is saturated with tribute and levies under Persian rule, so the coders see a fall, while the word list picks up the tax collectors and tribute scattered through the Gospels.
Beyond AI coding, this is a common issue of aggregation hiding heterogeneity, which in this case might be particularly worrysome because we have no clue on what “definition of taxes” the agent is absorbing when doing the initial qualification.
The language, same verses, other readers
Back to translation. In Luke 2, the other famous census in the Bible, the decree says the whole world should be “taxed”. In Spanish, it is “empadronada”: registered.
The English-language coders rated that chapter anywhere from 20 to 90 for tax salience. Chapter by chapter, with the same model and prompt, agreement between English and Spanish on the tax rating is a rank correlation of only 0.35 to 0.37 for the smallest model, and 0.58 to 0.78 for the other two. Language barely moves the average estimate, which says nothing about whether individual chapters are coded alike. If your corpus mixes languages (interviews in Spanish and English, say), a difference between groups can come from the coder and not from the world.
Extraction tasks, which feel more objective, are no safer. I asked the models to list the people in each chapter. The same model, gpt-5-mini, finds 13.9 people per chapter with the one-line prompt and 7.1 with the rubric, because the rubric tells it to exclude groups (“the Israelites”), titles and pronouns. Neither answer is wrong; they measure different things. A regression on “number of characters” silently uses whichever definition your prompt implied.
The twist, violence is the easy one
Taxes turned out to be a modest topic: rare, borderline and mostly zeros. So I added two concepts: violence, via the old question of whether the Old Testament is more violent than the New, and an index of economic activity built from six dimensions (trade, production, labor, credit and debt, wealth and poverty, state levies). Economists build text indices like this routinely. Every such index is a stack of choices: which dimensions, which weights.
I had a hypothesis, and I will confess it: the more abstract and contested the concept, the more fragile the result. Taxes, concrete and word-listable, should be the safe one.
The data said the opposite.
Each row is a coding and the dot is how much more violent Old Testament chapters are than New Testament ones, in standard deviations. All 18 codings agree on the sign, and so does the word list; all 18 are significant.
The size runs from 0.35 to 0.70, a factor of two, and it follows the model. The sign of the finding is robust and its magnitude is not.
Each dot compares two of the 18 codings on whether they agree about which chapters contain the concept (1 means an identical ranking). Codings agree most on violence (median 0.76), then on the economic index (0.69), and least on taxes (0.43), where some pairs of codings barely agree (0.14).
One can conjecture that what matters is the size of the real difference relative to the disagreement among coders. The Old and New Testaments differ a lot in violence (0.35 to 0.70 standard deviations, depending on the coder), so any reasonable coder finds it. The tax difference is small, the concept is rare and borderline (is a tithe a tax?), and so the coding decides which side of zero you land on.
This is more worrisome than reassuring. The more modest the effect, the more the coder decides. The economic index shows the same thing in a different way: in the earlier difference-in-differences version, all 18 LLM codings said activity rises late in New Testament books while the word list said it falls. Building the index three different ways (equal weights, first principal component, a narrow market-only version) moved the estimate by 0.10 standard deviations on average. Coding the text three different ways moved it by 0.47.
GABRIEL, beyond rate
GABRIEL (aka. Generalized Attribute Based Ratings Information Extraction Library) is an open-source package released by OpenAI in 2026 (Asirvatham, Mokski and Shleifer, 2026). Its idea is to treat “ask the model” like any other measurement instrument: you describe an attribute the way you would brief a human coder, and the package takes care of the prompts, the retries and the logs.
| Function | What it does |
|---|---|
rate | Scores each text from 0 to 100 on an attribute (what I used on every chapter) |
rank | Shows the model pairs of texts and asks which has more of the attribute; returns relative scores |
classify | Applies one or several labels to each text |
extract | Pulls structured facts out of each text: who, what, how much |
codify | Returns the passages that match a code |
discover | Proposes the features that separate two sets of texts |
compare, bucket, debias | Differences between paired texts; a taxonomy of categories from many items; removal of a confounding signal from a measurement |
It also has cleaning tools (deidentify, merge, deduplicate) and works on images, audio and PDFs. A similar tool is LLooM (Lam et al., 2024), which induces concepts from text.
Why try more than rate? Because a number alone does not say why. The LLM codings said tax talk peaks in Ezra and Nehemiah, just before the Nativity; the word list said it peaks in the Gospels. I could have asked my own prompt to return a quote next to each rating, and that would have worked. GABRIEL packages that idea and a few others in a simpler interface.
I tried them on the 60 chapters around the Nativity (30 before, 30 after), with the same two models.
codify showed me the evidence. It is a more thorough version of asking the model for a quote: it splits long texts into chunks and makes a second pass over what is left, to catch passages it missed. Before the Nativity it highlights “toll, tribute, and custom” (Ezra 4) and “the king's tribute” (Nehemiah 5). After it, tax collectors (Matthew 5, 9, Mark 2) and the “tribute money” of Matthew 17. So the LLMs are reading tribute to Persian kings, and the word list is reading publicans. It makes mistakes too, and you can see them: after the Nativity 7 of the 8 flagged chapters were right, before it only 4 of 14 (Esther 8 was flagged for “sealed it with the king's ring”).
discover showed me a confound. I gave it 20 chapters from before the Nativity and 20 from after. It proposes features from the texts and then checks every pair against each other, which is more than a single prompt can do reliably. It found eight features that separate the two sides, and none is about taxes. The strongest are political, legal and administrative conflict (the chapter from before had more of it in 18 of the 20 pairs, and never the reverse) and the speech and teachings of Jesus (the chapter from after had more of it in 17 of the 20 pairs, and never the reverse). So the cutoff I am testing — one can conjecture based on GABRIEL — is also a boundary between two kinds of writing: administrative chronicle on one side and the sayings of Jesus on the other. Whatever jump I measure there mixes a change in tax talk with a change in genre.
rank showed me its limits. rate asks “how much, from 0 to 100?”, and it can repeat the question (n_runs=5) and average the answers to smooth out the noise. rank asks something different: “which of these two has more?”, many times, and it turns the answers into relative scores.
Each dot is a chapter, with rate across and rank up. At the top right are the chapters both agree on (Ezra 4, Nehemiah 5 and 10). The column on the left is the problem: 34 chapters have no tax content, rate gives them about zero, and rank spreads them out anyway, because most of its comparisons between them ended in a tie (“insufficient signal”). rank works for traits every text has. Taxes, here, is mostly absent.
We have seen that averaging helps fixing noise, but not definition: rewording the attribute moved the answer more than five runs could stabilise it. rank is for dense traits; for a rare concept it spends most of its comparisons on ties. codify is only as good as the model behind it, so audit what it highlights. And the package is built exclusively around OpenAI models, so you are tied with this provider.
GABRIEL does not make the choices for you: you still define the attribute and pick the model. What it does is wrap around many useful functions that otherwise you'll need to define in the prompt or the pipeline, and makes them visible and easy to examine. I would use it next to a hand-written baseline: n_runs for the noise, codify for the evidence, discover for what you did not think to ask.
This was only a first look. We are going to write another article on GABRIEL, with the functions I only listed here.
Some takeaways
None of this means LLM coding is useless. It means it is a measurement instrument, so it needs validation, but a different kind than human coding: you can repeat it, vary it and compare it at will. Eight things I would do, in rough order of importance:
- Validate against humans before you run the regression. Hand-code a random sample (a few hundred units is a reasonable start) and report agreement and error types. In this study there is no ground truth, which is exactly why I cannot tell you which of my 18 answers is “most accurate”.
- Freeze the model, the prompt and the settings before you look at results, ideally in a pre-registration. Record the model version; providers update models quietly.
- Report every reasonable version of the analysis, not just one. Run the same regression with every defensible coding (model, prompt, language) and plot all the estimates side by side. This is called a specification curve (Simonsohn, Simmons and Nelson, 2020), in the same spirit as the “many analysts” study (Silberzahn et al., 2018), in which 29 teams given one dataset reached different conclusions. Vary the analysis choices too (the bandwidth, the window, the placebo test): in my study, which choice mattered most changed when the design changed.
- Compare with a dumb baseline. A word list or a small human-coded sample. Here the word list and the LLMs disagreed on the sign of the tax jumps. Neither is ground truth, but the disagreement tells you where to look.
- Use models agreement/disagreement! This one is really important. If several models agree, your result does not hinge on one model's quirks. That is reliability, not proof, because models can share the same blind spots (here, all 18 LLM codings agreed on the sign of the tax jump, and the word list still disagreed). If they disagree, you have found something to investigate.
- Write the prompt like a codebook, with a definition, an anchored scale, and what to include and exclude. Prefer simple codes (yes/no with a decision rule) to a 0–100 “salience” that invites the model to invent a scale. And check that your concept is not plural: “taxes” was three things.
- Audit across languages, and run more than once. Keep every raw response with model name, date and settings. A single run is a single draw.
- Size your effect against the spread across codings. Large differences survived every coding here; small ones did not. And remember the coder's error is not in your standard errors. There is a growing literature on propagating it using a small human-coded sample (prediction-powered inference, Angelopoulos et al., 2023; design-based supervised learning, Egami et al., 2023).
What this study does not show: it uses one corpus; small models chosen for budget; one run per cell for the main grid; prompts written by one person; and a discontinuity design with few effective observations, in which Christ's coming cannot be separated from Rome, genre, author or language.
The explanations I offer for why taxes is fragile and why the coders and the word list disagree are hypotheses I did not test. Larger models may agree with each other more. I would be pleased to find out.
Further reading
Baumann, J., Röttger, P., Urman, A., Wendsjö, A., Plaza-del-Arco, F. M., Gruber, J. B., & Hovy, D. (2025). Large language model hacking: Quantifying the hidden risks of using LLMs for text annotation. arXiv:2509.08825. The closest paper to this article's argument: it replicates 37 annotation tasks from 21 published social science studies and shows how model and prompt choices can flip conclusions.
Silberzahn, R., Uhlmann, E. L., Martin, D. P., et al. (2018). Many analysts, one data set: Making transparent how variations in analytic choices affect results. Advances in Methods and Practices in Psychological Science, 1(3), 337–356. Twenty-nine teams, one dataset, different conclusions.
Simonsohn, U., Simmons, J. P., & Nelson, L. D. (2020). Specification curve analysis. Nature Human Behaviour, 4, 1208–1214. How to show all the defensible analyses at once.
Gilardi, F., Alizadeh, M., & Kubli, M. (2023). ChatGPT outperforms crowd workers for text-annotation tasks. Proceedings of the National Academy of Sciences, 120(30), e2305016120. The optimistic side of the debate around AI tagging.
Ziems, C., Held, W., Shaikh, O., Chen, J., Zhang, Z., & Yang, D. (2024). Can large language models transform computational social science? Computational Linguistics, 50(1), 237–291. A practical guide, with 13 models tested on 25 social science benchmarks.
Angelopoulos, A. N., Bates, S., Fannjiang, C., Jordan, M. I., & Zrnic, T. (2023). Prediction-powered inference. Science, 382(6671), 669–674. How to get valid confidence intervals when most of your labels come from a machine and a few from humans.
Egami, N., Hinck, M., Stewart, B. M., & Wei, H. (2023). Using imperfect surrogates for downstream inference: Design-based supervised learning for social science applications of large language models. Advances in Neural Information Processing Systems, 36. The same idea, written for social scientists working with LLM-coded variables.
Asirvatham, H., Mokski, E., & Shleifer, A. (2026). GPT as a measurement tool (NBER Working Paper No. 34834). Code: github.com/openai/gabriel. The paper behind GABRIEL, with applications to social media toxicity and school curricula.
Gerber, I. (2026). diff-diff: Difference-in-differences causal inference for Python [Computer software]. github.com/igerber/diff-diff. The package used here for the regression discontinuity (it also covers difference-in-differences).
Cattaneo, M. D., Idrobo, N., & Titiunik, R. (2020). A practical introduction to regression discontinuity designs: Foundations. Cambridge University Press. A short, practical book on the design used here; a free preprint is at arXiv:1911.09511.