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)

DeleteStopwords

DeleteStopwords[list]
delete stopwords from a list of words.

DeleteStopwords["string"]
delete stopwords from a string.

DeleteStopwords[{"string1","string2",}]
delete stopwords from a list of strings.

DetailsDetails

  • 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 that consist of single stopwords are removed from the list.

ExamplesExamplesopen allclose all

Basic Examples  (1)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]=
Introduced in 2015
(10.1)