Green Mansions: A Romance of the Tropical Forest

Plaintext for W. H. Hudson's "Green Mansions"

(89544 words/483017 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["Green Mansions: A Romance of the Tropical Forest"]
Out[1]=

View the data:

In[2]:=
RandomChoice[
 TextCases[
  ResourceData["Green Mansions: A Romance of the Tropical Forest"], 
  "Paragraph"]]
Out[2]=

Visualization

Show the distribution of sentence lengths:

In[3]:=
With[{sentences = 
   TextSentences[
    ResourceData["Green Mansions: A Romance of the Tropical Forest"]]},
 Histogram[(Length /@ (TextWords /@ sentences)), PlotRange -> Full]]
Out[3]=

Show the most frequently used verbs:

In[4]:=
BarChart[TakeLargest[
   Counts[TextCases[
     ResourceData["Green Mansions: A Romance of the Tropical Forest"],
      "Verb"]], 20] // Reverse, BarOrigin -> Left, 
 ChartLabels -> Automatic]
Out[4]=

Wolfram Research, "Green Mansions: A Romance of the Tropical Forest" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.21763.data

Source Metadata

Data Downloads