#101 False positive: More than one line break within one sentence


If you have following sentence then LT detects a sentence begin error ("laufend" -> "Laufend"):

"Ein Satz mit\n
laufend neuen Fehlern."

This is because it detects two consecutive line breaks as a sentence terminator. Maybe this would be an unexpected behavior.

I also tested this case with English language (same results).


  • Daniel Naber

    Daniel Naber - 2012-04-23

    Well, we consider this a feature... Is there a case (not counting broken formatting) where there are two line breaks and there's not a new sentence?

  • Andreas PAX Lück

    This depends on your implementation that links LT. If you have following two paragraphs:

    "Sehr geehrte Damen und Herren,\n
    es ist mir ein großes Vergnügen..."

    If your implementation checks the second paragraph but includes the last part of the previous paragraph to consider the entire context then it must remove all unneccessary line breaks. Otherwise, LT is confused. This would be uncomfortable.

  • Andreas PAX Lück

    • status: open --> closed-invalid
  • Andreas PAX Lück

    Ok, I realized that the issue wasn't already there if the first paragraph ends with a comma (currently LT 1.4 in use). If the comma is missing, then LT shows a grammar error alert. For instance:

    "Ein Satz mit

    laufend Fehlern." ("laufend" --> "Laufend")

    If there's a comma at the end LT detects that both paragraphs belong to the same sentence:

    "Sehr geehrte Damen und Herren,

    und so weiter." (no error)

    In my opinion, this behavior is correct. Because the first example could be a subject line (Betreffzeile), so the next paragraph must start with an uppercase letter.

    I also tested the current snapshot. The behavior seems to be the same (it's correct). We will migrate to the actual LT relase in the next time.

    Thanks for your very quick help, Daniel!

    Best regards



Log in to post a comment.