Large language models are rapidly changing what is feasible in economic history, especially for researchers who lack advanced data-science training.
Large language models are rapidly changing what is feasible in economic history, especially for researchers who lack advanced data-science training. Tools that can interpret and generate text are now making it far easier to work with sources that have long been labor-intensive to digitize and analyze—handwritten account books, archival documents, images, and even audio recordings. In a new practitioner-focused guide, economist Andreas Ferrara lays out how these systems can be used responsibly and effectively, with a strong emphasis on moving from an initial research question to usable data and reproducible code.
Ferrara’s central aim is practical: to orient economists who are new to large language models and generative AI, and to demystify the decisions that arise when these tools are introduced into a research pipeline. The guide begins by describing four common ways researchers can access and use LLMs. The most familiar is the standard chat interface. Beyond that, Ferrara highlights assistants built directly into coding editors, “agentic” systems that can carry out multi-step coding tasks with limited supervision, and direct interaction through an application programming interface (API), which allows model calls to be embedded into scripts and automated workflows.
From there, the guide proceeds in the order practitioners typically encounter choices. First is a threshold question: is an LLM actually the right instrument for the task? Even if it is, a second constraint may be decisive—whether the underlying data can legally or ethically be sent to an external model. Only after those issues are settled does Ferrara turn to selection among models and the mechanics of effective prompting. He also addresses operational considerations that often determine whether a project succeeds in practice: context-window limits that cap how much information a model can consider at once, strategies for working within those limits, and methods for monitoring and controlling costs.
A substantial portion of the guide is devoted to standards economists care about once LLMs begin producing measurements used in statistical work. Ferrara discusses how to validate model outputs, ensure results can be reproduced, and document procedures so others can audit and re-run them. He also tackles how to identify and fix errors when LLM-generated variables are used in regression settings—an area where silent mistakes can distort inference if outputs are not carefully checked.
To show what is already possible, Ferrara surveys recent research demonstrating that LLM-based workflows can extract information from historical sources at scale, connect records across datasets, harmonize inconsistent formats, and classify text and images into analytically useful categories. He then provides four worked examples, each accompanied by replication materials. In these demonstrations, LLMs are used to categorize emotional content in paintings; to link census records even when individuals’ names are missing; to quantify newspaper attention and sentiment surrounding the 1882 Chinese Exclusion Act; and to assess emotional delivery in Franklin D. Roosevelt’s wartime radio speeches.
To help applied researchers translate guidance into practice, the guide condenses its recommended workflow into tables and checklists, including advice on building replication packages that meet modern expectations for transparency. Ferrara notes discussions and comments from a group of colleagues and collaborators, and makes replication files for all four examples publicly available at https://doi.org/10.3886/E249897V2. As with many NBER-affiliated outputs, the guide includes the standard disclaimer that the views are the author’s and not necessarily those of the National Bureau of Economic Research, which also circulates research updates through several free publications and online content.