I don't want a sentence to start at the end of a line with just one word, especially a very short word, like "It", "As", "The", etc. It interrupts the flow of reading and just looks ugly.
Edit: After reading some comments, I added an example of what it looks like in MS Word, just to clarify:
(Quote from Wikipedia)
Is there a way to have this automated for the whole document? I wrote a 100 page paper and I'd rather not do it manually for each case, if there was another way.
I learned that this is to be avoided, but I even find this all over scientific papers, like the random one I show below. There is obviously still space at the end of the paragraph, so the "In" could easily be placed in the next line. (Not to discredit this paper, which I haven't even read!)
Edit: If this concept is new to you, I don't want to make you insecure about your writing style! It might just be my personal aesthetic preference, really. Also note that I first learned to avoid this writing German, not English.
Thank you!
\s+([a-zA-Z][a-z]?)\s+
to ` \1~` every one or two letter word will be followed by tilde if it was followed by spacepre_linebreak_filter
filter.