Skip to content

Instantly share code, notes, and snippets.

@yedi
Created December 22, 2013 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yedi/8080527 to your computer and use it in GitHub Desktop.
Save yedi/8080527 to your computer and use it in GitHub Desktop.
it finds rhymes
rhyme-finder.core=> (def rs (rhyme-streams (get-poem "poems/lose_yourself.txt") 2 6 36 2))
#'rhyme-finder.core/rs
rhyme-finder.core=> (pprint (rhyme-combos rs))
{("ow" "ah") (("opens" "won't come" "mobile" "moment")),
("iy" "iy")
(("sweaty knees" "knees weak" "spaghetti he's" "he keeps")),
("aa" "aa") (("palms are" "arms are" "drop bombs")),
("iy" "ow" "ih" "ow") (("he knows his whole" "these ropes it don't")),
("ow" "ae" "ah" "iy" "ow")
(("goes gravity oh"
"goes rabbit he choked"
"so mad but he won't"
"knows that but he's broke"
"so stagnant he knows")),
("aa" "aa" "eh") (("palms are sweaty" "arms are heavy")),
("eh" "iy" "iy") (("sweaty knees" "spaghetti he's")),
("ah" "ow") (("the whole" "up over" "mobile home" "and hope")),
("ow" "iy" "ow" "ae" "ah")
(("choked he's so mad but"
"dope he knows that but"
"broke he's so stagnant")),
("ah" "iy" "ow" "eh" "ow")
(("reality oh there goes" "gravity oh there goes")),
("ae" "ah")
(("reality"
"gravity"
"rabbit"
"mad but"
"that but"
"stagnant"
"lab again"
"rhapsody")),
("aa" "eh") (("are sweaty" "are heavy")),
("ow" "iy" "ow" "ae")
(("choked he's so mad"
"no he won't have"
"dope he knows that"
"broke he's so stagnant")),
("ah" "iy" "ow" "eh") (("reality oh there" "gravity oh there")),
("eh" "ow") (("there goes" "there goes")),
("ow" "ae" "ah" "iy")
(("goes gravity"
"goes rabbit he"
"so mad but he"
"knows that but he's"
"so stagnant he"
"whole rhapsody")),
("iy" "ow" "ih")
(("he's choking"
"everybody's joking"
"he won't give"
"he knows his"
"these ropes it")),
("iy" "ow" "eh" "ow" "ae")
(("reality oh there goes gravity" "gravity oh there goes rabbit")),
("ah" "er") (("the surface" "the words")),
("eh" "ow" "ae" "ah" "iy")
(("there goes gravity" "there goes rabbit he")),
("ae" "ah" "iy" "ow" "eh") (("reality oh there" "gravity oh there")),
("aa" "ah")
(("vomit" "mom's spaghetti" "on the" "calm and" "bombs but")),
("ow" "iy") (("choked he's" "no he" "dope he" "broke he's")),
("eh" "ow" "ae" "ah") (("there goes gravity" "there goes rabbit")),
("ih" "ow")
(("his whole"
"it don't"
"his mobile"
"this whole"
"this moment"
"it don't")),
("ow" "ae" "ah")
(("goes gravity"
"goes rabbit"
"so mad but"
"knows that but"
"so stagnant"
"whole rhapsody")),
("iy" "ow" "eh") (("reality oh there" "gravity oh there")),
("ah" "iy")
(("surface he"
"but he"
"what he"
"reality"
"gravity"
"rabbit he"
"but he"
"but he's"
"stagnant he"
"rhapsody")),
("iy" "ow" "ae")
(("he's so mad"
"he won't have"
"he knows that"
"he's so stagnant"
"he goes back")),
("aa" "eh" "iy") (("are sweaty" "are heavy")),
("ae" "ah" "iy")
(("reality"
"gravity"
"rabbit he"
"mad but he"
"that but he's"
"stagnant he"
"rhapsody")),
("ow" "eh" "ow") (("oh there goes" "oh there goes")),
("aw" "iy" "ow") (("loud he opens" "out he's choking")),
("aa" "aa" "eh" "iy") (("palms are sweaty" "arms are heavy")),
("eh" "iy") (("sweaty" "heavy" "already" "spaghetti" "ready")),
("ih" "aw" "ah") (("his mouth but" "joking now the")),
("ow" "aw") (("wrote down" "whole crowd" "so loud")),
("ow" "eh" "ow" "ae" "ah")
(("oh there goes gravity" "oh there goes rabbit")),
("ah" "aw") (("come out" "run out")),
("ow" "ih" "ow")
(("knows his whole"
"ropes it don't"
"yo this whole"
"hope it don't")),
("iy" "ow" "ih" "aw") (("he's choking how" "everybody's joking now")),
("iy" "aa") (("weak arms" "already mom's" "keeps on" "everybody's")),
("iy" "ow" "iy" "ow")
(("he choked he's so"
"easy no he won't"
"he's dope he knows"
"he's broke he's so")),
("aw" "ah") (("down the" "mouth but" "now the")),
("ah" "iy" "ow" "iy")
(("rabbit he choked he's" "but he's broke he's")),
("iy" "ow" "iy" "ow" "ae")
(("he choked he's so mad"
"easy no he won't have"
"he's dope he knows that"
"he's broke he's so stagnant")),
("ah" "eh" "iy") (("spaghetti" "and ready")),
("ow" "ih" "ow" "ae")
(("yo this whole rhapsody" "hope it don't pass")),
("ae" "ah" "iy" "ow" "iy")
(("rabbit he choked he's" "that but he's broke he's")),
("iy" "ow" "ae" "ah" "iy")
(("he's so mad but he"
"he knows that but he's"
"he's so stagnant he")),
("aa" "ah" "eh" "iy") (("mom's spaghetti" "calm and ready")),
("ah" "iy" "ow" "iy" "ow")
(("rabbit he choked he's so" "but he's broke he's so")),
("iy" "ow" "iy")
(("he choked he's" "easy no he" "he's dope he" "he's broke he's")),
("ih" "aw") (("his mouth" "choking how" "joking now")),
("ow" "eh" "ow" "ae")
(("oh there goes gravity" "oh there goes rabbit")),
("ow" "ih")
(("choking"
"joking"
"won't give"
"knows his"
"ropes it"
"yo this"
"hope it")),
("iy" "ow")
(("he wrote"
"he opens"
"he's choking"
"everybody's joking"
"reality oh"
"gravity oh"
"he choked"
"he's so"
"he won't"
"easy no"
"he won't"
"he knows"
"these ropes"
"he's dope"
"he knows"
"he's broke"
"he's so"
"he knows"
"he goes")),
("ah" "aa") (("vomit on" "but on")),
("ih" "ow" "ae") (("this whole rhapsody" "it don't pass")),
("er" "ah") (("nervous" "surface")),
("aa" "ah" "eh") (("mom's spaghetti" "calm and ready")),
("aw" "iy") (("loud he" "out he's")),
("iy" "ow" "ae" "ah")
(("he's so mad but" "he knows that but" "he's so stagnant")),
("ae" "ah" "iy" "ow")
(("reality oh"
"gravity oh"
"rabbit he choked"
"mad but he won't"
"that but he's broke"
"stagnant he knows")),
("ow" "eh") (("oh there" "oh there")),
("ih" "ow" "ah") (("his mobile" "this moment")),
("ah" "eh") (("spaghetti" "and ready")),
("ow" "ae")
(("goes gravity"
"goes rabbit"
"so mad"
"won't have"
"don't matter"
"knows that"
"so stagnant"
"goes back"
"home that's"
"whole rhapsody"
"go capture"
"don't pass")),
("ah" "iy" "ow")
(("reality oh"
"gravity oh"
"rabbit he choked"
"but he won't"
"but he's broke"
"stagnant he knows")),
("iy" "ow" "eh" "ow")
(("reality oh there goes" "gravity oh there goes")),
("ow" "ih" "aw") (("choking how" "joking now")),
("eh" "ow" "ae") (("there goes gravity" "there goes rabbit")),
("ae" "uw") (("back to" "back to")),
("ow" "iy" "ow")
(("choked he's so" "no he won't" "dope he knows" "broke he's so"))}
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment