You are looking at content from Sapping Attention, which was my primary blog from 2010 to 2015; I am republishing all items from there on this page, but for the foreseeable future you should be able to read them in their original form at sappingattention.blogspot.com. For current posts, see here.

Wars, Recessions, and the size of the ngrams corpus

Aug 28 2011

Hank wants me to post more, so heres a little problem Im working on. I think its a good example of how quantitative analysis can help to remind us of old problems, and possibly reveal new ones, with library collections.

My interest in texts as a historian is particularly focused on books in libraries. Used carefully, an academic library is sufficient to answer many important historical questions. (That statement might seem too obvious to utter, but its notthe three most important legs of historical research are books, newspapers, and archives, and the archival leg has been lengthening for several decades in a way that tips historians farther into irrelevance.) A fair concern about studies of word frequency is that they can ignore the particular histories of library acquisition patternsalthough I think Anita Guerrini takes that point a bit too far in her recent article on culturomics in Miller-McCune. (By the way, the Miller-McCune article on science PhDs is my favorite magazine article of the last couple of years). A corollary benefit, though, is that they help us to start understanding better just what is included in our libraries, both digital and brick.

Background: right now, I need a list of of the most common English words. (Basically to build a much larger version of the database Ive been working with; making it is teaching me quite a bit of computer science but little history right now). I mean most common expansively: earlier I found that about 200,000 words gets pretty much every word worth analyzing. There were some problems with the list I ended up producing. The obvious one, the one Im trying to fix, is that words from the early 19th century, when many fewer books were published, will be artificially depressed compared to newer ones.

But it turns out that a secular increase in words published per year isnt the only effect worth fretting about. Words in the Google Books corpus doesnt just increase steadily over time. Looking at the data series on overall growth, one period immediately jumped out at me:

(Counts is the sum of the most common words, which Im using as a slightly better proxy for corpus size). The number of words in the Google Books corpus declines substantially in the Great Depression, and then again in the 1940s during the war. I hadnt really thought about it, but this suggests that raw counts will be suppressed or increased by various world-historical events. This is getting back to one of the things I reflect on most oftenthat even the most basic bibliographic data can produce interesting evidence.

I suspect most historians reaction to this chart would be: well, of course. Wars and recessions both decrease the amount of resources being spent on bookswouldnt we be surprised if this wasnt the case?

So let me ask a question, then. Suppose I were to tell you that only one of these patterns was actually real: recessions or wars. Which one would you think it was? I would have been wrong.

Thinking about it?

Suppose you said recessions: heres a scatterplot of change in words published over the previous year against change in GDP over the previous year. Farther to the right is the greatest growth in words in the corpus (1946 is 1.3 times as large as 1945), and to the top is change in GDP year-over-year (so 1942 is 1.17 or so times larger than 1941).

I would have guessed the GDP effect was real, but it turns out theres no correlation between GDP change, and change in words in libraries, at all. (Actually a slightly negative correlation: -0.11).

The war effect, on the other hand, I would have thought was caused by the particular circumstance of paper rationing in WWII. I wouldnt think it was a general problem. But as you can see, 1861 is the worst overall year for change in number of words in the Google Books corpus. (1923 is the second worst: you should know by now what thats about). That suggest a real war effect, and indeed, the two other total wars the United States has been involved in show a similar pattern to WWII.

Now, these statistics are somewhat misleading. For one thing, I suspect the war effect is swamping the year effect a bit: a lot of the outliers are from the 1940s and the 1860s. Multiple regression might find a strong economic effect. In fact, in the 1890s, which had a major recession in 1893 and a minor war in 1898, only the economic travails appear to decrease the number of books:


So really, Im not sure whats going on here. My working hypthesis for now would be that the restrictions on international shipping that emerged in the 1860s, 1910s, and 1940s are the main factor suppressing book counts, with the shift to war production probably less important. (In both the World Wars, the decrease in books starts well before the US was drawn into hostilities). But Id have to throw British GDP figures in here to get a really good idea.

For my present purposes, I dont think its a critically important important question. But it might be for some other task. For all historians, these facts about library history are important to know; and theyre getting considerably easier to answer quickly.

Among the most frequent concerns about digitization is that it removes the element of serendipity that used to predominate. (If Google makes a new version of ngrams specifically for academics, they should put a big I feel serendipitous button next to the search function to preserve the ability to find that unexpected, field-changing piece of evidence.) But the stack-browser who relies on serendipity might be subtly pushed towards books from peacetime and prosperity: its better if he knows about it.

If you want it, heres the full timeseries, on a log-y scale. (The title should be 1700-2008, obviously).

Comments:

Thanks, Ben! Just a quick question that comes from

Hank - Aug 2, 2011

Thanks, Ben! Just a quick question that comes from a place of relative ignorance:

If someone wanted to use this sort of data as a background claim in a work about something else (If we look at the number of books being published across this period as a whole, we see a sharp decline in 1XXX, attributable perhaps to A or B), what sort of qualifications would (s)he have to make?

Youve discussed this before (I think?), but what I mean is: how well do word counts from the Google corpus stand in for number of books actually around, and/or *especially* for number of things going into print or number of things being read by folks in this period?

I know it leaves out periodicals (importantly)  which is why I like your claim about the tripartite source base for history (libraries, newspapers, archives)  but what sort of knowledge of a period *are* we getting from Google counts?