Behind the sensational success of "Hamilton" are some of the most densely packed, complex rhyming lyrics in the history of musicals. How exactly do they work?

Let's start with the first verse of the musical's opening number. Our algorithm breaks words into their component sounds and then groups similar-sounding syllables into rhyme families, which are color-coded.