This p5.js sketch uses RiTa.js to analyze text.
It takes two input sentences, then it takes the parts of speech structure from the first, but the words from the second to create a new sentence.
Any parts of speech not present in the second sentence get filled in with random words.