Bugs item #3555372, was opened at 2012-08-08 09:08
Message generated for change (Tracker Item Submitted) made by dominikoeo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=655717&aid=3555372&group_id=110216

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: development version
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dominique Pelle (dominikoeo)
Assigned to: Nobody/Anonymous (nobody)
Summary: LanguageTool reports error at wrong line number after <...>

Initial Comment:
LanguageTool-1.8 (and latest version of in SVN as of today 2012/08/08, svn 
r7815)
reports errors at the wrong line numbers in the following case:

$ cat sample-text.txt
Errors are detected hereeee at correct line 1.

< Errrrrors here are nottttt detected.
>
Errors in all text from now on is detected at incorrrrect line (4 instead of 5).


$ java -jar dist/LanguageTool.jar -l en-US sample-text.txt 
Expected text language: English (US)
Working on sample-text.txt...
1.) Line 1, column 21, Rule ID: MORFOLOGIK_RULE_EN_US
Message: Possible spelling mistake found
Errors are detected hereeee at correct line 1.   Errors in all text from...
                    ^^^^^^^                                             

2.) Line 4, column 47, Rule ID: MORFOLOGIK_RULE_EN_US
Message: Possible spelling mistake found
...rrors in all text from now on is detected at incorrrrect line (4 instead of 
5). 
                                                ^^^^^^^^^^^                     
   
Time: 157ms for 3 sentences (19.1 sentences/sec)


Notice the following bugs:
* spelling errors at line 2 are not detected
* spelling errors at line 5 are detected but reported at incorrect line 4 (in 
fact everything after this line will be reported at the incorrect line).

It seems triggered at the < ... > pattern in the sample_text.txt file which 
spans multiple lines.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=655717&aid=3555372&group_id=110216

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to