In the following text we want all instances of "BACON" to appear on the same line.
Lorem ipsum dolor sit amet, BACON BACON BACON BACON. Mauris sit amet laoreet ante.
That is, we want to disallow the insertion of a line break into "BACON [...] BACON," unless the string is so long that prohibiting a line break causes line overflow. If the string is too long, we want the BACONs to be treated as if they were just normal text. Additional commands inside of the string of bacons, such as \it and \bf should still work.
Note that \mbox will ensure that "BACON [...] BACON" will all appear on one line, but \mbox also risks line overflow.
test file:
\documentclass[twocolumn]{article}
\begin{document}
Lorem ipsum dolor sit amet, BACON BACON BACON BACON. Mauris sit amet laoreet ante.
Lorem ipsum dolor sit amet, BACON BACON BACON BACON. Mauris sit amet laoreet ante.
\end{document}

~) be a suitable solution? i.e.Lorem ipsum dolor sit amet, BACON~BACON~BACON~BACON. Mauris sit amet laoreet ante.This means it will never allow a line break between theBACONwords, but everywhere else is fine, and it'll automatically insert it if needed. – Ulysses Jan 07 '19 at 03:42BACONs is short enough that all of theBACONs usually appear all on one line. You are taking the example too literally. Sometimes there is text which we do not want broken up. Having the first half of the sentence on one line and the second half of the sentence on the next line is undesirable. We could simply put a line break at the beginning, but that's not always necessary. We want a conditional line break: ifXwill all fit on the current line, putXon the current line, else insert a line break and putXon the next line. – IdleCustard Jan 10 '19 at 16:43BACONs will stay on one line unless there are too many of them in which case some will appear on the next line. However, we don't want SOME of theBACONs on the current line and the rest of theBACONon the next line. We want ALL of the bacon on the same line. If all of the theBACONwill fit on the current line, good, put it there; else, insert a line break and put all of theBACONs on the next line. – IdleCustard Jan 10 '19 at 16:46BACONs to fit on a single line, then we want the behavior to be is as if no special commands were inserted at all. The first fewBACONs appear on the current line and the next few appear on the next line. – IdleCustard Jan 12 '19 at 01:36