@edensaesthetic I'm programming in the definition. So a line is in iambic pentameter if it can be said in five iambs, i.e. five pairs of syllables with the stress falling on the second of each pair. I'm using CMU's pronunciation dictionary to look up the possible pronunciations of each word, and then seeing if there's a way to say the line that fits the pattern.