I was just thinking it would be great if I could determine the word frequency of some text held in an attribute.
I bet there is a python function to do that or a number of different transformers could be put together to figure it out. Alas, I'm a simple lizard with limited time and knowledge...
Maybe someone can whip something up for me? Oh! Oh! and maybe add it to the FME Hub for all to enjoy? That would be great!
This would be really easy to implement with just two standard FME Transformers.
Use an AttributeSplitter to get every word in your text as a list. After that you can use a ListHistogrammer to get the actual statistic.
https://www.sussex.ac.uk/webteam/gateway/file.php?name=essay---what-is-a-word.pdf&site=1
I vote for this one and at the same time this WordCloud idea :
https://knowledge.safe.com/idea/51622/wordcloud-transformer.html
FME Hub transformer UniqueValueLogger may be of assistance here too... Lots of great idea on how to implement!
...and/or something to read a text file/Word document for the number of times a word or phrase (or sentence) repeats. Having put together a lengthy python script for this in the past it would be great!
I can't put it on the hub, but anyone is welcome to develop this custom transformer with my blessing.