The Phantom of the Opera

Plaintext for Gaston Leroux's "The Phantom of the Opera"

(84654 words/473402 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Phantom of the Opera"]
Out[1]=

View the data:

In[2]:=
TextCases[ResourceData["The Phantom of the Opera"], "Paragraph"][[50]]
Out[2]=

Visualization

Show the most frequently used adjectives:

In[3]:=
BarChart[TakeLargest[
   Counts[TextCases[ResourceData["The Phantom of the Opera"], 
     "Adjective"]], 20] // Reverse, BarOrigin -> Left, 
 ChartLabels -> Automatic]
Out[3]=

Generate a WordCloud:

In[4]:=
WordCloud[DeleteStopwords[ResourceData["The Phantom of the Opera"]]]
Out[4]=

Wolfram Research, "The Phantom of the Opera" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.59500.data

Source Metadata

Data Downloads