The Red Badge of Courage

Plaintext for Stephen Crane's "The Red Badge of Courage"

(46212 words/260573 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Red Badge of Courage"]
Out[1]=

View the data:

In[2]:=
RandomChoice[
 TextCases[ResourceData["The Red Badge of Courage"], "Paragraph"]]
Out[2]=

Visualization

Create a word cloud:

In[3]:=
WordCloud[DeleteStopwords[ResourceData["The Red Badge of Courage"]]]
Out[3]=

Show the distribution of word lengths:

In[4]:=
With[{words = TextWords[ResourceData["The Red Badge of Courage"]]},
 Histogram[(StringLength /@ words), PlotRange -> Full]]
Out[4]=

Wolfram Research, "The Red Badge of Courage" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.20033.data

Source Metadata

Data Downloads