I want to generate a WordCloud from people’s submitted questions. DeleteStopWords is a useful start, but there are also a collection of technical terms that I want to remove from the WordCloud. Is there a way to temporarily add to the stop word list from within a notebook?
Andrew,
Why can’t you just remove the words you want to exclude before generating the WordCloud?
Basically, that is exactly what I am trying to do. However, rather than write a new function, I would like to extend the list used by DeleteStopwords[], that way the whole process is simplified. It’s OK if this isn’t possible, but I would like to understand:
- How can I find/see the contents of the list that DeleteStopwords uses
- Why I can’t update it, i.e. is there something special about that list.
To get the list of stop words used by DeleteStopwords.
WordList["Stopwords"]
I do not think there is a way to change that list. There is no need to write a new function though, you can just do this
WordCloud[Complement[DeleteStopwords[wordList], deleteWordList]]
Oh, that’s neat! Thank you, that solves my problem beautifully.