WordFrequencyData

WordFrequencyData[word]

gives the frequency of word in typical published English text.

WordFrequencyData[{word1,word2,}]]

gives an association of frequencies of the wordi.

WordFrequencyData[word,"TimeSeries"]

gives a time series for the frequency of word in typical published English text.

WordFrequencyData[word,"TimeSeries",datespec]

gives a time series for dates specified by datespec.

WordFrequencyData[word,"prop"]

gives property prop of the word frequency.

Details and Options

  • WordFrequencyData[word1|word2|] gives the total frequencies of all the wordi.
  • WordFrequencyData[word,"Total",datespec] gives the total frequency of word for the dates specified by datespec.
  • By default, WordFrequencyData uses the Google Books English n-gram public dataset.
  • Possible options include:
  • IgnoreCaseFalsewhether to ignore case in word
    Language"English"what language of source corpus to use
  • In WordFrequencyData[word,"prop"], possible properties include:
  • "Total"give total frequencies over a date range
    "TimeSeries"give a time series of frequencies
    "CaseVariants"give results for all variants of upper and lower case
    "PartsOfSpeechVariants"give results for all variants of parts of speech
    {prop1,prop2,}give results for combinations of properties
  • Possible date specifications include:
  • Alluse all available dates for the specified source corpus
    DateObject[]use DateObject
    yearuse specific year
    {yearmin,yearmax}use year range between yearmin and yearmax
    {{d1,d2,}}use explicit dates {d1,d2,}

Examples

open allclose all

Basic Examples  (4)

Get the frequency of the word "dog" in typical English:

In[1]:=
Click for copyable input
Out[1]=

Get the typical frequencies of several words:

In[1]:=
Click for copyable input
Out[1]=

Compute the ratio between the words "war" and "peace" in published text:

In[1]:=
Click for copyable input
Out[1]=

Plot the historical time series for the frequency of the word "economy":

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Generalizations & Extensions  (1)

Options  (6)

Properties & Relations  (14)

Possible Issues  (1)

Neat Examples  (11)

See Also

WordFrequency  WordCloud  PartOfSpeech  DictionaryWordQ  WordData  WordDefinition  LanguageData

Introduced in 2016
(10.4)