Leaves of Grass

Plaintext for Walt Whitman's "Leaves of Grass"

(122531 words/738054 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["Leaves of Grass"]
Out[1]=

View the data:

In[2]:=
RandomChoice[TextCases[ResourceData["Leaves of Grass"], "Paragraph"]]
Out[2]=

Visualization

Create a word cloud:

In[3]:=
WordCloud[DeleteStopwords[ResourceData["Leaves of Grass"]]]
Out[3]=

Show the most frequently used verbs:

In[4]:=
BarChart[TakeLargest[
   Counts[TextCases[ResourceData["Leaves of Grass"], "Verb"]], 20] // Reverse, BarOrigin -> Left, ChartLabels -> Automatic]
Out[4]=

Wolfram Research, "Leaves of Grass" from the Wolfram Data Repository (2016)   https://doi.org/10.24097/wolfram.57175.data

Data Resource History

Source Metadata

Data Downloads

Publisher Information