Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

WordFrequencyData

WordFrequencyData[word]
gives the frequency of word in typical published English text.

WordFrequencyData[{word1,word2,}]]
gives an association of frequencies of the .

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 OptionsDetails and Options

  • WordFrequencyData[word1|word2|] gives the total frequencies of all the .
  • 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 and
    {{d1,d2,}}use explicit dates

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Get the frequency of the word 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 and in published text:

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

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

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2016
(10.4)