Summary: A Word Cloud that abstractly summarises the content of your site.
https://github.com/merefield/discourse-word-cloud Word Cloud Plugin
Install: Follow the plugin installation guide.
Represents the posts of your community as a Word Cloud summary. The words are animated and if clicked will perform a simple word search.
Get to it by hitting
Word Cloud on the Hamburger menu or navigating to
yoursite.com/word_cloud - NB you have to be logged in as a registered user to see it and it’s only on desktop.
To refresh data, Trigger the job:
Otherwise this runs every hour.
Interested in the data?
My intention was just to paint a picture.
If you want to see the data, just go to
Settings … so … many … settings:
- Restrict to specific Categories:
- Word Cloud Ignore List (300 words by default, using a list I found here ):
NB Word stats are updated every hour now (which is probably still excessive, but for the time being makes it easier to checkout changes in Production as we go through a lot of initial code evolution).
NB#2 I’ve not yet considered other languages here beyond English (it’s certainly not tested). The current word manipulation may not work well in some languages. Suggestions & PR’s welcome.
If you select no Category (default) you get a scan of all forum Posts (PMs and all). If you add just one Category, word stats are restricted to that etc.
- Currently doesn’t support Safari (I’ll be working on fixing that at some point)
- It may not support other languages. I’ve only tested English. PR Welcome.
- The menu item has localisation support, but if no-one has yet PR’d your localisation yet, please consider doing so or otherwise it will remain a key code …
- It’s not responsive to layout. This is the main reason mobile is not currently supported. This is tricky with D3 and expensive computationally.
If you like this you might also like my:
OMG I was literally just thinking about this. Magic Thanksgiving psychic powers!
What about an option to make the tag cloud based on tags rather than post text?
Hmmm. I installed the TC and enabled it in my theme, but it doesn’t seem to be doing anything on https://ask.fedoraproject.org/tags…
It’s FYI desktop/tablet only.
Yeah, I’m using Firefox… same in Chrome?
Looks like you have a set of script permissions violations in your console. You need to give your site the right to run these scripts. Look at
content security policy script src.
See: Mitigate XSS Attacks with Content Security Policy
Awesome, thanks for the quick tech support.
It understads only alphabets a…z and just drops out like scandinavian åäö.
And the hamburger menu link is funny [fi.word.cloud.hamburg…
That’s possible. I’ve only tested English. I made this clear in the original topic. PR welcome.
Yes you did. I missed it. Well, I unistall it then (and I have no idea what is PR because I don’t use git )
You will need to PR. There’s localisation support for the menu item, but users will need to PR additional languages.
You can now modify the Word Cloud dimensions. This will help to include more words.
I recommend leaving width and increasing the height if you so wish:
FEATURE: add ability to change Word Cloud size · merefield/discourse-word-cloud@376ee26 (github.com)
Is word cloud the same one for all, or one for each?
You see we have locker mechanism, to set users only have some regions but not all categaries, when searching, it also suits only for that one account’s available posts.
Same for all. To tailor the output would require a lot more server resources so I haven’t gone down that road. Also it needs a sufficiently large dataset to make sense so creating one for small sets of words might not lead to very interesting results.
The word cloud is so abstract I’m not sure it matters if some categories are locked. However on some communities it could be an issue depending on the content. The search results from clicking a word will only return Topics to which you have access of course.
You can always exclude sensitive Categories.
PRs always considered.