I saw that in new version of Mathematica there is an interesting function: DeleteStopwords
that deletes stopwords from a list of words, but this function is only for the English language. But I'm Italian and my "stopwords" are different from English ones. So I'm wondering if there is a method to create a personal stopwords, and delete a text from it.
This is my code
Clear["Global`*"]
mytext = Import["https://gallery.mailchimp.com/66b77b8f219a30e5da628b18b/files/ps.txt"];
WordCloud[mytext]
As you can see there are a lot of word that are stopwords.
Another ideas is to cut all words with length less than three. Any ideas? Thanks.
TextWords
to get a list of words from your text, andComplement[yourwordlist, stopwordlist]
to get a cleaned list to feed toWordCloud
. Unfortunately I'm on a tablet at the moment and can't actually do it myself... $\endgroup$ – MarcoB Oct 31 '15 at 15:27