Wolfram Research

The Birth of Tragedy Out of the Spirit of Music

Plaintext for Friedrich Nietzsche's "The Birth of Tragedy Out of the Spirit of Music"

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Birth of Tragedy Out of the Spirit of Music"]
Out[1]=

View the data:

In[2]:=
TextCases[
  ResourceData["The Birth of Tragedy Out of the Spirit of Music"], 
  "Paragraph"][[30]]
Out[2]=

Visualization

Show the distribution of sentence lengths:

In[3]:=
With[{sentences = 
   TextSentences[
    ResourceData[
     "The Birth of Tragedy Out of the Spirit of Music"]]},
 Histogram[(Length /@ (TextWords /@ sentences)), PlotRange -> Full]]
Out[3]=

Compare word lengths between different works:

In[4]:=
PairedHistogram[
 StringLength /@ 
  TextWords[
   ResourceData["The Birth of Tragedy Out of the Spirit of Music"]], 
 StringLength /@ 
  TextWords[ResourceData["Death in Venice"]], Automatic]
Out[4]=

Wolfram Research, "The Birth of Tragedy Out of the Spirit of Music" from the Wolfram Data Repository (2016) https://doi.org/10.24097/wolfram.73282.data

Data Resource History

Source Metadata

Data Downloads

Publisher Information