For this it is based on the current line and not the previous. I would like to explore the idea more with longer poems (outside of the jam without the pixel limitations) where you could build one line to the next trying to have some consistency in theme. It would be fun to explore that and possibly provide more choice in switching out specific words or directing where the poem might go thematically.