Dark theme

N-grams


N-grams are sequences of words drawn from a text, usually analysed to see how many times a sequence of words appears. These are often indicative of authors, or give cultural information. See this site, for example to search Google's massive web and book storehouse.

Recreate this for one site. Write a program that connects to this site (source), and works out the frequency of the top ten most frequent bi-grams (that is, combinations of two words) in the poem.


Hints and one answer