Babbitt

Plaintext for Sinclair Lewis' "Babbitt"

(123390 words/700746 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

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

View the data:

In[2]:=
TextCases[ResourceData["Babbitt"], "Paragraph"][[25]]
Out[2]=

Visualization

Create a bar graph of proper nouns:

In[3]:=
BarChart[TakeLargest[
   Counts[TextCases[ResourceData["Babbitt"], "ProperNoun"]], 20] // 
  Reverse, BarOrigin -> Left, ChartLabels -> Automatic]
Out[3]=

Compare word lengths:

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

Wolfram Research, "Babbitt" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.66901.data

Source Metadata

Data Downloads