I wrote a program that successfully tells me that the first quatrain in Shakespeare's Sonnet 130 is not in iambic pentameter.
Now to work outa) How to get it to tell me /why/b) How to tell it that the bard doesn't care