Recitation Poem Type Generator

This is a p5.js sketch motivated by the exercise of poetry recitation using ml5. Rather than use machine learning to generate a poem, I use ml5 to detect the sentiment of the recited poem and create a font according to that sentiment. On the P5 sketch, text displayed is that of the poem. The font will be more abstract if the sentiment analysis gives it a positive score. If the sentiment analysis is negative then the letters become wobbly and darker.

Live sketch

Demo