Haikuifier (Or at least Haiku Identifier)
You should be more helpful to the user, both when the entered sentence can't be made into a haiku (too short or too long) and when not finding the word in the dictionary. At least tell which word was not found in the dictionary.
Also when thefreedictionary.com is not reachable (for whatever reasons), your code will insult the user by telling him he can't spell.
You dictionary lookup fails for some words:

&quot;sparrow's&quot;, or any possessive form (raises SyntaxError)
&quot;banging&quot;, or any gerund form. (gives the syllables of the infinitive instead)
Any punctuation (also raises SyntaxError)

I tested your program with this haiku from wikipedia:

Snow in my shoe
Abandoned
Sparrow's nest
— Jack Kerouac, collected in Book of Haikus, 2003

And this:

Whitecaps on the bay:
A broken signboard banging
In the April wind.
— Richard Wright, collected in Haiku: This Other World, 1998

The first raises a SyntaxError and the second puts In on the end of the second line because of the gerund counting as one less syllable.
What your code also does not catch is that thefreedictionary puts a flood mechanism into place after some time. I found this out by testing my own script. In this case the fifth request in a row returns with HTTP code 403 (Access forbidden).

How I would write it:
import requests
import sys
import re


def get_num_syllables(value):
    if value.endswith(&quot;ing&quot;):
        return get_num_syllables(value[:-3]) + 1
    try:
        res = requests.get(&quot;http://www.thefreedictionary.com/&quot; + value)
    except requests.exceptions.ConnectionError as e:
        print(&quot;Can't connect to dictionary website: http://www.thefreedictionary.com/&quot; + value)
        sys.exit(1)
    if res.status_code != 200:
        raise requests.exceptions.ConnectionError(&quot;Can't connect to dictionary website: http://www.thefreedictionary.com/{}, HTTP code {}&quot;.format(value, res.status_code))
    value_re = re.compile(value)
    for word in res.text.split():
        if &quot;&lt;h2&gt;&quot; not in word:
            continue
        word = word[word.find(&quot;&lt;h2&gt;&quot;) + 4:word.find(&quot;&lt;/h2&gt;&quot;)].lower()
        if '·' in word:
            match = re.match(word.replace('·', ''), value)
            if not match:
                continue
            return word.count('·') + 1
    not_founds = (&quot;Word not found in the Dictionary and Encyclopedia.&quot;,
                 &quot;is not available in the general English dictionary&quot;)
    if any(not_found in res.text for not_found in not_founds):
        raise SyntaxError(&quot;Can't find word in dictionary: {}&quot;.format(value))
    return 1


def get_num_syllables_all(words):
    syllables = {}
    for word in words:
        word = word.lower()
        if word in syllables:
            continue
        syllables[word] = get_num_syllables(word)
    return syllables


def haiku(words, haiku_form):
    # words = &quot;Whitecaps on the bay A broken signboard banging In the April wind&quot;.split()
    num_syllables = get_num_syllables_all(words)

    lines = [[] for _ in range(len(haiku_form))]
    count, line = 0, 0
    for word in words:
        count += num_syllables[word.lower()]
        if count &gt; haiku_form[line]:
            raise SyntaxError(&quot;Not possible to split word at syllable boundary: {}, {}&quot;.format(word, syllables))
        lines[line].append(word)
        if count == haiku_form[line]:
            line += 1
            count = 0

    # validate the haiku
    for i, line in enumerate(haiku_form):
        sum_line = sum(num_syllables[word] for word in lines[i])
        if sum_line &gt; line:
            raise SyntaxError(&quot;Too many syllables in line {}. Got {}, want {}&quot;.format(i, sum_line, line))
        elif sum_line &lt; line:
            raise SyntaxError(&quot;Not enough syllables in line {}. Got {}, want {}&quot;.format(i, sum_line, line))
    return &quot;\n&quot;.join(&quot; &quot;.join(line) for line in lines)

if __name__ == '__main__':
    haiku_form = (5, 7, 5)
    words = input(&quot;Please enter the words to use: &quot;).strip().split()
    try:
        print(haiku(words, haiku_form))
    except SyntaxError as e:
        print(e)