Re:Show HN: Python package and CLI to generate stylistic wor...
by dwyerm on Friday November 08, 2019 @01:56PM
(#21485458)
You might look through the source code for Wordcram[1]. It is built under Processing, and is relatively easy to understand, I think.
Re:Show HN: Python package and CLI to generate stylistic wor...
by y42 on Saturday November 09, 2019 @04:58AM
(#21490625)
I once wrote a pretty simply and straight forward algorithm to create a WordCloud in VBA for PowerPoint:
https://www.nickyreinert.de/wordcloud-in-powerpoint/
It does not cover white-space with words, as Wordle et al will do. Also it's in German. But I guess the code itself is quite clear.
Re:Show HN: Python package and CLI to generate stylistic wor...
by lgas on Saturday November 09, 2019 @01:05AM
(#21489920)
This stackoverflow answer from the creator of Wordle links to a free chapter from a book that describes the way Wordle does it: https://stackoverflow.com/questions/342687/algorithm-to-impl...
Re:Show HN: Python package and CLI to generate stylistic wor...
by danso on Friday November 08, 2019 @05:10PM
(#21487409)
The library used by the submitted package seems to be well-documented: https://github.com/amueller/word_cloud
A while ago I tried to write some wordcloud code, but couldn't quite figure out how to do the layout. Does anyone know where one might find a good writeup of the algorithm that tends to be used for this?