Of Human Bondage

Plaintext for W. Somerset Maugham's "Of Human Bondage"

(259593 words/1410584 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["Of Human Bondage"]
Out[1]=

View the data:

In[2]:=
TextCases[ResourceData["Of Human Bondage"], "Paragraph"][[5]]
Out[2]=

Visualization

Show the popularity of countries in the text:

In[3]:=
BarChart[TakeLargest[
   Counts[Interpreter["Country"][
     ToLowerCase /@ TextCases[ResourceData["Of Human Bondage"], "Country"]]], 10] //
   Reverse, BarOrigin -> Left, ChartLabels -> Automatic]
Out[3]=

Show the distribution of sentence lengths:

In[4]:=
With[{sentences = TextSentences[ResourceData["Of Human Bondage"]]},
 Histogram[(Length /@ (TextWords /@ sentences)), PlotRange -> Full]]
Out[4]=

Wolfram Research, "Of Human Bondage" from the Wolfram Data Repository (2016)   https://doi.org/10.24097/wolfram.06650.data

Data Resource History

Source Metadata

Data Downloads

Publisher Information