DeleteStopwords

DeleteStopwords[list]

deletes stopwords from a list of words.

DeleteStopwords["string"]

deletes stopwords from a string.

DeleteStopwords[{"string1","string2",}]

deletes stopwords from a list of strings.

Details

  • DeleteStopwords uses a standard, built-in list of stopwords.
  • DeleteStopwords["string"] removes stopwords from the string, leaving whatever spaces or punctuation were around them.
  • In DeleteStopwords[{"string1","string2",}], any of the string1 that consist of single stopwords are removed from the list.

Examples

Basic Examples  (1)

Remove stopwords from a list:

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

Remove stopwords from a string:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=

Remove stopwords from a list of strings:

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

See Also

StringDelete  TextWords  WordData  Complement  WordCounts  WordCloud

Introduced in 2015
(10.1)