This was made as part of the multimedia component of HZ9101: Introduction to Creative Writing, where the relationship between poetry and the poetical science (computer science†) was explored.
Its workings are rather elementary: the programme only ensures that the number of syllables are appropriate for the type of poem using a syllable counter, and matches the end rhymes with the rhyming database RhymeBrain.
†Ada Lovelace, considered to be “the first computer programmer”, referred to her approach to the subject as the “poetical science”