The Monk

Plaintext for Matthew Gregory Lewis' "The Monk"

(137023 words/793256 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Monk"]
Out[1]=

View the data:

In[2]:=
TextCases[ResourceData["The Monk"], "Paragraph"][[25]]
Out[2]=

Visualization

Show the distribution of sentence lengths:

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

Show the popularity of countries in a text:

In[4]:=
BarChart[TakeLargest[
   Counts[Interpreter["Country"][
     ToLowerCase /@ TextCases[ResourceData["The Monk"], "Country"]]], 
   6] // Reverse, BarOrigin -> Left, ChartLabels -> Automatic]
Out[4]=

Wolfram Research, "The Monk" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.05607.data

Source Metadata

Data Downloads