I think the rhyme definition is wrong. To me a rhyme has to be have the same phonemes from the coda of the last accented syllable to the end of the line.
Ironically, by not knowing how to properly handle a stress-unstress syllable pair at the end of a line, this program would completely miscue on any limericks it finds with a first line that ends in 'Nantucket'