This question is related to the TextPositioning property, which you can read about it here.

In this situation where you have mixed content and it's unclear whether it would be better to use BY_WORDS or BY_LINE, we would recommend using the BY_WORDS strategy, as it would still allow you to group words into paragraphs without losing the words' boundaries.