Bugs item #3585215, was opened at 2012-11-07 10:25
Message generated for change (Tracker Item Submitted) made by dominikoeo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=655717&aid=3585215&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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dominique Pelle (dominikoeo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong case in suggestions when using --api option

Initial Comment:
The following comand gives 2 correction suggestions ("vBrest" or "Vrest"):

$ echo "Mont a reas da Brest." | java -jar 
~/sb/languagetool/dist/LanguageTool.jar -l br 
Expected text language: Breton
Working on STDIN...
1.) Line 1, column 16, Rule ID: KEMM_DA_ANV_DIVOUTIN[3]
Message: Ur c’hemmadur dre vlotaat a zlefe bezañ goude ar ger «da» gant an anv 
divoutin. Ha fellout a rae deoc’h skrivañ 'vBrest' pe 'Vrest'?
Suggestion: VBrest; Vrest
Mont a reas da Brest. 
               ^^^^^  
Time: 69ms for 1 sentences (14.5 sentences/sec)

Good so far.  The case (uppercase in the second letter) may look strange but 
that's a correct spelling in Breton.

However, if I used the same sentence and same options but only add the --api 
flag, then the suggestions becomes incorrect (wrong case):

$ echo "Mont a reas da Brest." | java -jar 
~/sb/languagetool/dist/LanguageTool.jar -l br --api
<?xml version="1.0" encoding="UTF-8"?>
<matches software="LanguageTool" version="2.0-dev" buildDate="2012-11-07">
<error fromy="0" fromx="15" toy="0" tox="20" ruleId="KEMM_DA_ANV_DIVOUTIN" 
subId="3"  msg="Ur c’hemmadur dre vlotaat a zlefe bezañ goude ar ger «da» gant 
an anv divoutin. Ha fellout a rae deoc’h skrivañ 'vBrest' pe 'Vrest'?" 
replacements="VBrest#Vrest" context="Mont a reas da Brest. " contextoffset="15" 
offset="15" errorlength="5" category="Kemmadur"/>
</matches>
<!--
Time: 100ms for 1 sentences (10.0 sentences/sec)
-->

Notice that wth command line option --api, LanguageTool suggests:   
replacements="VBrest#Vrest"

This is incorrect, I would expect to get:    replacements="vBrest#Vrest".  

Yet notice that the suggestions are still correct in the message: 
msg="[...snip...] 'vBrest' pe 'Vrest'?"


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

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to