Skip to Main Content
Go to Penn Libraries homepage   Go to Guides homepage
Banner: RDDS; Research Data & Digital Scholarship displayed between 3D mesh surfaces

Text Analysis

A guide to text mining tools and methods

Google N-gram Viewer

Google Ngram Viewer is a tool that allows you to explore language usage trends over time by searching through a vast collection of books, documents, and other textual sources. Explore this interactive plot generated by N-gram Viewer that shows the trend of terms over time.

Getting Started

We have outlined the following steps to help you get started with Google Ngram Viewer:

  1. To begin with, go to the Google Ngram Viewer website (
  2. Then, enter your search terms in the search box. Please note that Google Ngram Viewer can also support operators and wildcards for advanced searches.  

        3. Click "Search," and you will be able to see a graph that shows the frequency of the terms you entered over the specified time frame.


Google Ngram Viewer Interface

If you would like to refine your search, you can click on the leftmost button under the search box to restrict the time range of your search. Then, simply enter the start and end year and click apply. 

You can also adjust the smoothing level of the plot. Click the rightmost button under the search box and select the desired smoothing level. The smoothing level will automatically adjust the scale of the y-axis, and you can select a level that makes your plot more legible and easier to analyze.

An important feature of Google Ngram Viewer is that it supports you to explore the context surrounding a particular word or phrase. For example, to find the most frequent words that follow "University of," simply enter "University of *" into the search box. Then, the Ngram Viewer will display a list of the most frequent university names that follow "University of" based on the selected corpus and time frame.



Advanced Features

The Google Ngram Viewer includes several advanced features that can help you analyze language trends more deeply. For example, you can use the "Part-of-Speech" option to search for specific types of words, such as verbs or adjectives. The "Case-insensitive" option allows you to search for words regardless of capitalization, and the "Compare" option lets you compare the frequency of multiple search terms. You can refer to the information guide for more detail.


Exporting Data

Once you find a graph you want to use, you can export the ngram data to Google Books Ngram Viewer Exports to run your own experiments. This can be useful if you want to use the data in a report or presentation.

Penn Libraries Home Franklin Home
(215) 898-7555