I guess this depends on the case-specificity of the dictionary entries.
Are they, or aren't they?

hendrix should be in the dictionary as Hendrix, not hendrix, so the
suggestion should always be uppercased, it being a proper name.

DVD is a very common error (in Dutch) for dvd, so DVD should always result
in the correction dvd, or Dvd at the start of the sentence.

In Hunspell, case-specificnes is a per word feature.

Ruud


> W dniu 2014-02-02 11:11, Jaume Ortolà i Font pisze:
>> Hi,
>>
>> This has become a common request from users. The suggestions for a
>> capitalized misspelled word are expected to be also capitalized. I
>> suppose this is not true for all languages in all situations.
>>
>> So what can we do?
>>
>> 1) Capitalize always the suggestion when it is the first word of a
>> sentence. Is it right for all languages? This can be implemented
>> in MorfologikSpellerRule.
>
> This seems to be a safe idea. We may reuse the same code we use in
> PatternRules here.
>
>>
>> 2) Capitalize the suggestion when the original misspelled word is
>> capitalized and fsa.dict.speller.convert-case=true (this setting means
>> that the problem is not in the capitalization). Is it right? It can be
>> implemented in MorfologikSpeller.
>
> Yes, but only for capitalized words. For lowercase words, this may be
> wrong (someone spells "hendrrix" and instead of "Hendrix" gets "hendrix").
>
> Regards,
> Marcin
>
> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends.  Skip the complicated setup - simply import
> a virtual appliance and go from zero to informed in seconds.
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
> _______________________________________________
> Languagetool-devel mailing list
> Languagetool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>



------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to