A haiku is a poem with three lines, with a 5/7/5 syllable count, respectively.
A haiku-w is poem with three lines, with a 5/7/5 word count, respectively.
Write a program that will return true if the input is a haiku-w, and false if not.
A valid haiku-w input must consist of 3 lines, separated by a newline.
- Line 1 must consist of 5 words, each word separated by a space.
- Line 2 must consist of 7 words, each word separated by a space.
- Line 3 must consist of 5 words, each word separated by a space.
The man in the suit is the same man from the store. He is a cool guy.
Whitecaps on the bay: A broken signboard banging In the April wind.
- This is code-golf, so the shortest answer in bytes wins.
- Standard code-golf loopholes apply. Cheating is prohibited.
- Other boolean return values, such as
0, are acceptable.
- A length-3 list of strings as an input is also acceptable.
- Valid haiku-w inputs should not have leading or trailing spaces, or multiple spaces separating words.