WordCloud can take such options as
ColorFunction. It is not obvious how those word-stylings can depend on words themselves, for example semantic meaning of words or their linguistic (structural) properties. Is this possible at all?
WordCloud a recent function can do some neat tricks beyond the obvious. For example:
Let's consider a list of top ranked baby names in 2015:
The simple code below will color and orient words differently depending on the gender deduced by machine learning function Classify:
Quite impressive! But let's hook orientation and color to different variables. Color will still be gender, semantics, but let's link orientation with, say, length of the name. The longer the name the steeper the slope between $0$ and $2 \pi$. We need to find the range of lengths of words:
and now with slight modification of code we get some beautiful and meaningful flow: