What word occurs most often in the Gettysburg Address?
Run the code to get the text of the Gettysburg Address. Try getting other texts, like "AliceInWonderland" or "ToBeOrNotToBe":
The Wolfram Language has a wealth of built-in examples that are handy for experimenting and testing. This gives a list of the kinds of examples that are available:
Give the name of a category to see the examples of that type:
Give the specific name to get an example:
Split the text into individual lowercase words:
Note: run the code in the previous step first.
This splits the Gettysburg Address text into words:
Make all of the words lowercase so that, for example, “The” and “the” both appear as “the” in the list:
Find the most common word:
Note: run the code in the previous step first.
Commonest gives the most common element in a list. “That” is the most common word in the Gettysburg Address:
Find the most common significant word:
A “stopword” is a commonly used word like “that” or “the” that doesn’t reveal much about the content of a text.
Use DeleteStopwords to remove insignificant words from a text:
Find the most common significant word:
Find the three most common significant words. Try other numbers of words: