Case Study 2: Google Ngram Viewer and the Quantitative Study of Culture

In December 2010, Google released the Ngram Viewer — a simple web tool that lets anyone plot the frequency of words and phrases in books from 1800 to the present. Behind the tool was a dataset of 500 billion words from 5 million books that Google had scanned for its Books project. The visualization was simple: a line chart of word frequency over time. But the combination of scale and accessibility produced one of the most influential text visualization tools of the 2010s, and it gave rise to a new field — culturomics — that uses the Ngram data to study the history of language, culture, and ideas.


The Situation: Google Books and Its Data

Google Books was launched in 2004 with the goal of scanning every book ever printed. Over the following decade, Google scanned millions of books from university libraries around the world, using custom optical character recognition (OCR) to convert the scanned images into searchable text. By 2010, the Books corpus contained about 5.2 million books, or roughly 4% of all books ever published.

The full text of these books was not freely available — copyright restrictions prevented general access. But the aggregated word frequency data was, and that is what the Ngram Viewer exposes. For each word (or multi-word phrase, up to 5-grams), you can see how often it appeared in books published in a given year, normalized by the total number of words in books published that year. The data goes back to 1800 for English and somewhat earlier for other languages.

Google made this dataset public in December 2010, alongside the Ngram Viewer tool. The viewer is simple: enter one or more words/phrases, a date range, and a language, and it produces a line chart of normalized frequency over time. That's it. No advanced customization, no statistical modeling, just a line chart.

But the visualization reveals extraordinary patterns. You can see the rise of "computer" starting around 1950 (from near-zero to ubiquitous), the decline of "thou" (from common in 1800 to archaic by 2000), the spike of "Hitler" during and after World War II, the rise of "feminism" in the 1970s, the persistence of "love" as a roughly constant fraction of book text. Any cultural trend that is visible in the words people write about is visible in the Ngram data.

The Visualization: Simplicity as Feature

The Ngram Viewer is deliberately simple. The chart is a line chart. The axes are time (x) and normalized frequency (y). The encoding is position — which is the strongest visual channel according to Cleveland-McGill (Chapter 2). There are no word clouds, no topic models, no fancy graphics. Just lines on axes.

This simplicity is the tool's greatest strength. A reader with no statistical training can interpret the chart immediately: "this word was common in 1850, declined, and became common again in 1990." The visualization inherits all the reader's intuitions about line charts, which are well-established. The semantic content (the word frequencies) is conveyed through the standard chart type (line chart), and the reader does not have to learn a new visualization language.

Compare this to a word cloud of the same underlying data. A word cloud could show "the most frequent words in books from 1950," but it could not show how those frequencies have changed over time. A word cloud is a snapshot; the Ngram Viewer is a time series. The questions they answer are different, and the Ngram Viewer is answering the more interesting question — "how has language changed?" — which requires time as a dimension.

The Ngram Viewer also supports multiple queries at once. You can enter several words separated by commas and see their trajectories on the same chart. This enables comparisons that would be impossible with a single-word tool: "how do the frequencies of 'liberal' and 'conservative' compare over 200 years?" The comparison itself is the insight, and the multi-line chart is the right vehicle for it.

The Science: Culturomics

Within months of the Ngram Viewer's release, a team of researchers led by Jean-Baptiste Michel and Erez Lieberman Aiden at Harvard published a paper in Science titled "Quantitative Analysis of Culture Using Millions of Digitized Books." The paper used the Ngram data to study several questions:

  • The growth of English vocabulary. The paper estimated the total size of the English lexicon based on Ngram data and found it had grown substantially over the 20th century, partly due to technical and scientific neologisms.
  • The fame of historical figures. By plotting the frequency of specific names, the researchers could show how "famous" a person had been in any given year. They found that fame generally peaks about 70-90 years after birth, then declines.
  • Language change. The paper showed how irregular verbs become regularized over time ("burnt" → "burned," "lit" → "lighted"), and quantified the rate of this regularization.
  • Censorship. By comparing German and English Ngram data, the researchers could detect the effects of Nazi censorship — the names of Jewish artists and scientists dropped out of German books during the Nazi era.

The paper coined the term culturomics — the quantitative study of culture using large corpora of text — and argued that the combination of big data and simple visualization could produce new scientific insights. Culturomics became a small but productive subfield of digital humanities and computational linguistics.

The Ngram data has since been used in hundreds of academic papers on topics ranging from the rise of individualism (tracked via the frequency of "I" vs. "we"), to the decline of religion (tracked via the frequency of "God," "Jesus," and related terms), to the spread of scientific terminology. The simplicity of the visualization is what made this possible: anyone could generate an Ngram chart and use it as evidence, even if the underlying statistical analysis was subtle.

The Limitations

The Ngram Viewer has real limitations that users sometimes miss.

Bias in the corpus. The Google Books corpus is biased toward published books, which means academic, literary, and non-fiction works are over-represented relative to spoken language or informal writing. It is also biased toward English and other major languages. Searches for words that appear mostly in speech or in formal/legal documents will underrepresent their actual usage.

OCR errors. The OCR process introduces errors, especially for older books with complex typography. Words that look similar can be conflated. The problem is worse for books from before about 1850.

Metadata errors. Some books have wrong publication dates in the metadata, which produces spurious spikes in the time series.

Normalization artifacts. The "frequency" in the Ngram Viewer is a ratio: (occurrences of word in year Y) / (total words in year Y). If the total word count per year changes (as it does — more books are published each year), the ratio changes even when the absolute count is flat. Users sometimes misinterpret the ratio.

Correlation ≠ causation. An Ngram chart showing that "democracy" rose in frequency during the 20th century does not prove that democracies rose. It proves that books with the word "democracy" became more common. The reasons for that could be the actual spread of democracies, but could also be increased academic interest, political debates, or changes in the composition of the corpus.

Limited context. The Ngram Viewer shows frequency over time but not the context in which the word appears. "Apple" in 1850 books referred mostly to the fruit; "Apple" in 2010 books refers partly to the company. The chart cannot distinguish these senses. For polysemous words (words with multiple meanings), the aggregate frequency conflates distinct concepts.

These limitations do not make the Ngram Viewer useless. They mean that users should interpret the charts as starting points for investigation rather than definitive answers. A surprising Ngram trend is worth investigating further; it is not a conclusion.

Theory Connection: The Right Chart for the Right Question

The Ngram Viewer illustrates a principle that runs through this chapter: the right visualization depends on the question. For "what words are frequent in this text?" a word cloud is convenient (though inferior to a bar chart). For "how has word frequency changed over time?" a line chart is the only serious option. The Ngram Viewer is successful because it answered the right question with the right chart.

It also illustrates the principle that simplicity beats complexity when the simple version fits the question. The Ngram Viewer could have included confidence intervals, smoothing options, statistical tests, and elaborate UI customization. Instead, it has a text box, a date range, and a plot button. The simplicity is what made it accessible to non-experts and what allowed millions of users to generate their own charts.

The combination — scale (500 billion words) plus simplicity (line chart on a basic web page) — produced something unprecedented: a tool that let anyone do quantitative cultural analysis with zero training. Within a few years, the Ngram Viewer had influenced academic research, journalism, education, and casual intellectual curiosity. It is one of the clearest examples of data visualization's power to democratize analysis.

For practitioners, the lesson is to resist the temptation to add features. When you are building a visualization tool (or even a single chart), ask what minimum set of features answers the core question. Anything beyond that minimum is a cost — it takes development time, it confuses users, and it distracts from the main insight. The Ngram Viewer has almost no features, and it is one of the most influential visualization tools ever created.

The Impact

The Ngram Viewer has been used by millions of people since 2010. It has been cited in hundreds of academic papers. It has produced a sub-field of linguistics (culturomics). It has been featured in articles in the New York Times, The Atlantic, Wired, Scientific American, and essentially every major publication that covers language or culture. It has become a standard tool in digital humanities courses, and students who have never heard of Google Books often encounter it in their coursework.

The underlying Google Books project has had its own controversies — copyright disputes, quality concerns, and the eventual decline in scanning activity after Google's 2013 legal setbacks. The Ngram data, however, remains frozen in time as a snapshot of the Google Books corpus as of the early 2010s. It is still available, still useful, and still one of the most accessible large text corpora in the world.

A final note: the Ngram Viewer's simplicity has been emulated by many subsequent tools. "Trend viewers" for Twitter, Reddit, news archives, and scientific literature have all adopted the basic pattern: enter terms, see frequency-over-time charts. None of them have had quite the same cultural impact as the original Ngram Viewer, but they all trace their design to it. The line chart of word frequency over time has become a standard template for quantitative text analysis at scale.


Discussion Questions

  1. On simplicity. The Ngram Viewer has almost no features. Why has it been more influential than more feature-rich text visualization tools?

  2. On corpus bias. The Google Books corpus is biased toward published books. Does this undermine the Ngram Viewer's usefulness, or does it matter only for specific questions?

  3. On the culturomics paper. The 2011 Science paper used the Ngram data to study fame, language change, and censorship. Which of these uses do you find most compelling? Which are most likely to be confounded by corpus bias?

  4. On multi-sense words. "Apple" in 1850 books means fruit; in 2010 books it often means the company. The Ngram Viewer cannot distinguish these. How would you design a more sophisticated version that could?

  5. On the right chart for the right question. The chapter argues that the Ngram Viewer is successful because it matched the chart type (line chart) to the question ("how has frequency changed over time?"). What other text visualization questions have you seen answered with the wrong chart type?

  6. On democratization. The Ngram Viewer lets anyone do quantitative cultural analysis. Is this entirely good, or does it risk producing superficial conclusions?


The Google Ngram Viewer is a case study in how simplicity and scale can produce something greater than the sum of their parts. A line chart of word frequency is not a novel visualization. A corpus of 500 billion words is not easy to assemble. But the combination — simple chart plus massive corpus plus accessible web interface — created a tool that changed how people think about the history of language and culture. When you build text visualizations, remember that the chart type is usually not the limiting factor. The data and the question are. Get those right, and the simplest chart will do the work.