The Life and Opinions of Tristram Shandy, Gentleman

Plaintext for Laurence Sterne's "The Life and Opinions of Tristram Shandy, Gentleman"

(186353 words/1030379 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Life and Opinions of Tristram Shandy, Gentleman"]
Out[1]=

View the data:

In[2]:=
TextCases[
  ResourceData["The Life and Opinions of Tristram Shandy, Gentleman"],
   "Paragraph"][[25]]
Out[2]=

Visualization

Show the most frequently used verbs:

In[3]:=
BarChart[TakeLargest[
   Counts[TextCases[
     ResourceData[
      "The Life and Opinions of Tristram Shandy, Gentleman"], 
     "Verb"]], 20] // Reverse, BarOrigin -> Left, 
 ChartLabels -> Automatic]
Out[3]=

Show the distribution of sentence lengths:

In[4]:=
With[{sentences = 
   TextSentences[
    ResourceData[
     "The Life and Opinions of Tristram Shandy, Gentleman"]]},
 Histogram[(Length /@ (TextWords /@ sentences)), PlotRange -> Full]]
Out[4]=

Wolfram Research, "The Life and Opinions of Tristram Shandy, Gentleman" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.13379.data

Source Metadata

Data Downloads