I've seen this discussion about a Wordle-like algorithm. It's really great and interessant but the proposed open-source libraries, just like Wordle, are kind of limited.
For instance, how do I do something like the picture below given a shape and words with some "weight". I mean of course programmatically so using snippets or libraries.