Is there a way to specify penalty only to the last word of a paragraph?
\righthyphenmin=3 sets, for instance, 3 letters as a minimum at the beginning of a line. On the other hand,
\finalhyphendemerits=500000 avoids a hyphen at the next to last line, no matter how long this might be. Instead of this penalty, I would prefer to avoid only ending lines with, say, less than 5 characters.