LLMs for Social Scientists

A Working Draft

Author

Yunus Emre Tapan

Published

July 17, 2026

Preface

🚧 This is a working draft. I am writing this book in the open. Chapters appear here as they become readable, not when they are perfect; each one carries a status badge, and the roadmap shows what is drafted, what I have taught before, and what is still to come. If something is unclear, wrong, or missing β€” tell me in the comments at the bottom of any chapter. That is the point of drafting in public.

Social scientists have always studied things we cannot fully see β€” institutions, norms, beliefs. Now we work alongside a new kind of opaque object: large language models. We use them to code text, summarize interviews, and simulate respondents, usually without knowing what happens between our prompt and their answer.

This book is my attempt to change that, one layer at a time. It grew out of teaching β€” the BLISS workshops at Northeastern, the AIDE summer bootcamp, and a SICSS-Istanbul lecture on what I call the anthropology of machines β€” and it keeps the spirit of those rooms: everything by hand first, everything connected to a real research task, and honest about what we do and do not know.

The arc of the book

The book moves through four ways of relating to a language model:

  1. Use β€” the plumbing. Running open models with Hugging Face, calling frontier models through APIs, and scaling from one prompt to ten thousand documents (LLMs in Action).
  2. Steer β€” getting better answers without touching a single weight: prompting informed by the evidence rather than folklore, and context engineering β€” RAG, GraphRAG, and research tools you can put in front of colleagues (Steering LLMs).
  3. Read β€” mechanistic interpretability: opening the model and observing what happens inside, from the logit lens to sparse autoencoders. This is where social-scientific instincts β€” coding, interpretation, validity β€” turn out to matter most (Reading LLMs).
  4. Change β€” fine-tuning and adapting models for your own research programs (Changing LLMs).

Before all that, Foundations builds the conceptual floor β€” neural networks, embeddings, transformers, attention β€” by hand, on paper, with numbers small enough to trust. And a Python refresher gets you set up if you are coming back to code after a while.

Who this is for

Graduate students and researchers in the social sciences who want to use language models seriously: not just prompt them, but understand them well enough to defend a method section. Basic Python helps; no machine learning background is assumed. Every technique in this book is taught against real research tasks β€” classifying documents, annotating text at scale, building corpora, interrogating what a model represents.

How to read this draft

  • Status badges. Every chapter opens with its status: outline β†’ drafted β†’ taught β†’ revised. Drafted chapters are real but unpolished; taught chapters have survived contact with a classroom.
  • Comments. Each page has a discussion thread at the bottom (via GitHub). You can also open an issue or suggest an edit with the links in the sidebar.
  • Code. Code is shown, not executed, in the rendered book; companion notebooks are linked from chapters as they are released. Code is MIT-licensed; the text is CC BY-NC 4.0.

About the author

Yunus Emre Tapan is a PhD student in Political Science at Northeastern University, studying social networks and political narratives with computational methods. He is the founder of BLISS β€” the Boston LLMs Initiative for Social Sciences β€” and has taught LLM methods at the AIDE summer bootcamp and SICSS-Istanbul.

Citing this draft

Tapan, Y. E. (2026). LLMs for Social Scientists (working draft). https://yemretapan.com/llms4socialscientists

Acknowledgments

This book owes its existence to the communities I taught it in first: the BLISS community at Northeastern, supported by the NULab for Digital Humanities and Computational Social Science; the AIDE summer bootcamp; and SICSS-Istanbul.