Prufrock

The Love Song of J. Alfred Prufrock, by T. S. Eliot

(1090 words/5980 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["Prufrock"]
Out[1]=

View the data:

In[2]:=
TextCases[ResourceData["Prufrock"], "Paragraph"][[20]]
Out[2]=

Visualization

Generate a word cloud:

In[3]:=
WordCloud[DeleteStopwords[ResourceData["Prufrock"]]]
Out[3]=

Show the most frequently used verbs:

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

Compare word lengths:

In[5]:=
With[{words = TextWords[ResourceData["Prufrock"]]},
 Histogram[(StringLength /@ words), PlotRange -> Full]]
Out[5]=

Wolfram Research, "Prufrock" from the Wolfram Data Repository. (2015) https://doi.org/10.24097/wolfram.09543.data

Source Metadata

Data Downloads