The Federalist Papers

Plaintext for Alexander Hamilton, James Madison, and John Jay's "The Federalist Papers"

(192497 words/1147614 characters)

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["The Federalist Papers"]
Out[1]=

View the data:

In[2]:=
TextCases[ResourceData["The Federalist Papers"], "Paragraph"][[10]]
Out[2]=

Visualization

Show the popularity of countries in a text:

In[3]:=
BarChart[TakeLargest[
   Counts[Interpreter["Country"][
     ToLowerCase /@ 
      TextCases[ResourceData["The Federalist Papers"], "Country"]]], 
   5] // Reverse, BarOrigin -> Left, ChartLabels -> Automatic]
Out[3]=

Show the most frequently used verbs:

In[4]:=
BarChart[TakeLargest[
   Counts[TextCases[ResourceData["The Federalist Papers"], "Verb"]], 
   20] // Reverse, BarOrigin -> Left, ChartLabels -> Automatic]
Out[4]=

Wolfram Research, "The Federalist Papers" from the Wolfram Data Repository. (2017) https://doi.org/10.24097/wolfram.55418.data

Source Metadata

Data Downloads

Publisher Information