With all the word clouds I do for various hashtags, I've developed opinions on t...
Paco Hope @paco@infosec.exchange
With all the word clouds I do for various hashtags, I've developed opinions on the word cloud library I use. I forked it and added a totally new plural normalisation. I called my fork LexicoNimbus. I may end up attempting to contribute it back up stream. We'll see.
Normalising plurals means not including both cats and cat in the wordcloud. If I'm normalising plurals, then ['cat', 'cats', 'cat'] effectively becomes ['cat', 'cat', 'cat']. But I'm using a Python library that understands (English) singulars and plurals. So it also will turn ['mouse', 'mice', 'mice'] into ['mouse', 'mouse', 'mouse'].
There are a couple interesting edge cases. Like 'United States' should remain a bigram with the plural States in it, even if the individual word states is being normalised to state everywhere else. Also, I don't want to introduce a singular form if it never appeared in the original. E.g., ['mice', 'mice', 'mice'] will remain ['mice', 'mice', 'mice']. I won't introduce the word mouse if it never appeared in the original.
Tomorrow's statistics run will be the first to use this new word cloud approach.