Shakespeare's Sonnets

Sonnets, by William Shakespeare

(17686 words/95687 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["Shakespeare's Sonnets"]
Out[1]=

View the data:

In[2]:=
TextCases[ResourceData["Shakespeare's Sonnets"], "Paragraph"][[2]]
Out[2]=

Visualization

A word cloud:

In[3]:=
WordCloud[
 DeleteStopwords[
  TextCases[ResourceData["Shakespeare's Sonnets"], "Word"]]]
Out[3]=

Analysis

A monkey typing on a keyboard is unlikely to reproduce Shakespeare’s Sonnets:

In[4]:=
With[{monkeyStrings = 
   StringJoin /@ 
    RandomChoice[Join[CharacterRange["a", "z"], {" "}], {200, 4}]}, 
 Tally[StringContainsQ[ResourceData["Shakespeare's Sonnets"], #] & /@ 
   monkeyStrings]]
Out[4]=

Wolfram Research, "Shakespeare's Sonnets" from the Wolfram Data Repository. (2015) https://doi.org/10.24097/wolfram.14241.data

Source Metadata

Data Downloads