FIX: opt for setsockopt was used unitialized.
FIX: invalid word length calculation.

Generic parser used incorrect formula for word's length calculation.
This became obvious when a sentence with multiple words was run through
it.
FIX: missing EOF event trigger.
Ignore empty words.

This happens when a long sequence of word delimiters is present in a sentence.
Simply ignoring words of length equal to zero appears to be good-enough solution,
hopefully not shortsighted.