For this example I wanted to play with the Part of Speech (PoS) functionality found in RiTa.js. The idea is to create a sentence, by lining up different PoS and then generating words based on these with the help of RiTa.js.
To see examples of PoS, I made it so that you can add a sentence and process it, to see the PoS.
Below that there is 8 buttons representing 8 POS, which I chose based on research about PoS. When a button is clicked it is added as a color below. The colors/PoS can then be rearranged if needed, and the Go button will produce a text using the POS to generate random words.