The Adventures of Tom Sawyer

Plaintext for Mark Twain's "The Adventures of Tom Sawyer"

(71500 words/393425 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Adventures of Tom Sawyer"]
Out[1]=

View the data:

In[2]:=
RandomChoice[
 TextCases[ResourceData["The Adventures of Tom Sawyer"], "Paragraph"]]
Out[2]=

Visualization

Diagram a sentence:

In[3]:=
Column[{#, TextStructure[#, "ConstituentGraph"]}] &[
 RandomChoice[
  TextSentences[ResourceData["The Adventures of Tom Sawyer"]]]]
Out[3]=

Show the most frequently used verbs:

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

Wolfram Research, "The Adventures of Tom Sawyer" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.52428.data

Source Metadata

Data Downloads