The Charterhouse of Parma

Plaintext for Stendhal's "The Charterhouse of Parma"

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Charterhouse of Parma"]
Out[1]=

View the data:

In[2]:=
RandomChoice[
 TextCases[ResourceData["The Charterhouse of Parma"], "Paragraph"]]
Out[2]=

Visualization

Show the distribution of word lengths:

In[3]:=
With[{words = TextWords[ResourceData["The Charterhouse of Parma"]]},
 Histogram[(StringLength /@ words), PlotRange -> Full]]
Out[3]=

Show the distribution of sentence lengths:

In[4]:=
With[{sentences = 
   TextSentences[ResourceData["The Charterhouse of Parma"]]},
 Histogram[(Length /@ (TextWords /@ sentences)), PlotRange -> Full]]
Out[4]=

Source Metadata