War and Peace

Plaintext for Leo Tolstoy's "War and Peace"

(564088 words/3202357 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["War and Peace"]
Out[1]=

View the data:

In[2]:=
TextCases[ResourceData["War and Peace"], "Paragraph"][[10]]
Out[2]=

Visualization

Create a word cloud:

In[3]:=
WordCloud[DeleteStopwords[ResourceData["War and Peace"]]]
Out[3]=

Show the distribution of sentence lengths:

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

Wolfram Research, "War and Peace" from the Wolfram Data Repository (2017)   https://doi.org/10.24097/wolfram.70836.data

Data Resource History

Source Metadata

Data Downloads

Publisher Information