Sort:  

You only detect if something has seventeen syllables. A haiku requires a seasonal word. Any sentence with seventeen syllables is not a haiku.