Word Frequency over Time
Version 11 introduces WordFrequencyData to collect information on word frequencies from published texts, in multiple languages. Use this new function to track trends in the usage of words over time.
Compare the use of the names of two video formats between the years 1960 and 2000.
In[1]:=
![Click for copyable input](assets.en/word-frequency-over-time/In_75.png)
videoFormats = {"VHS", "BETAMAX"};
freqvideoFormats =
WordFrequencyData[videoFormats, "TimeSeries", {1960, 2000},
IgnoreCase -> True];
In[2]:=
![Click for copyable input](assets.en/word-frequency-over-time/In_76.png)
DateListPlot[freqvideoFormats, Filling -> Axis]
Out[2]=
![](assets.en/word-frequency-over-time/O_53.png)
Compare the use of the names of these transportation methods over two centuries.
In[3]:=
![Click for copyable input](assets.en/word-frequency-over-time/In_77.png)
transports = {"bus", "bicycle", "car", "train", "plane"};
freqtransports =
WordFrequencyData[transports, "TimeSeries", {1800, 2000},
IgnoreCase -> True];
In[4]:=
![Click for copyable input](assets.en/word-frequency-over-time/In_78.png)
DateListPlot[freqtransports, Filling -> Axis]
Out[4]=
![](assets.en/word-frequency-over-time/O_54.png)
Discover when the pen became mightier than the sword.
In[5]:=
![Click for copyable input](assets.en/word-frequency-over-time/In_79.png)
DateListPlot[
WordFrequencyData[{"sword", "pen"}, "TimeSeries", {1700, 2000},
IgnoreCase -> True], Filling -> Axis]
Out[5]=
![](assets.en/word-frequency-over-time/O_55.png)
Reduce the time window to find out when the sword began to make a comeback.
In[6]:=
![Click for copyable input](assets.en/word-frequency-over-time/In_80.png)
DateListPlot[
WordFrequencyData[{"sword", "pen"}, "TimeSeries", {1950, 2000},
IgnoreCase -> True], Filling -> Axis]
Out[6]=
![](assets.en/word-frequency-over-time/O_56.png)