The Red and the Black

Plaintext for Stendhal's "The Red and the Black"

(171811 words/1008342 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Red and the Black"]
Out[1]=

View the data:

In[2]:=
TextCases[ResourceData["The Red and the Black"], "Paragraph"][[150]]
Out[2]=

Visualization

Compare word lengths:

In[3]:=
With[{words = TextWords[ResourceData["The Red and the Black"]]},
 Histogram[(StringLength /@ words), PlotRange -> Full]]
Out[3]=

Compare sentence lengths:

In[4]:=
With[{sentences = 
   TextSentences[ResourceData["The Red and the Black"]]},
 Histogram[(Length /@ (TextWords /@ sentences)), PlotRange -> Full]]
Out[4]=

Wolfram Research, "The Red and the Black" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.17927.data

Source Metadata

Data Downloads