Jaume Ortolà i Font wrote:

> Hi,
>
> I have made some changes in MorfologikSpeller and in BaseTagger so words
> written in mixed case are considered spelling errors and are not tagged.
>
> Mixed case words are considered valid only if they appear exactly that way
> in the speller dictionary (for the spelling rule) or in the tagger
> dictionary (for tagging).
>
> Examples:
>
> Correct words: word, Word, WORD, pH, PhD, McDonald.
> Incorrect words: wOrd, WoRd, WORd, Ph, PHd, MCDonald.
>
> This makes sense for me. But we are using different spelling rules, and
> different combinations of speller/tagger dictionaries, so perhaps it doesn't
> fit for some language. In that case, we can make this feature
> language-dependent.
>
> Regards,
> Jaume Ortolà

In Breton at least, mixed case words can happen.

Explanation for the curious: in Breton (as in other
Celtic languages), the first letter of word changes in
some circumstances. For example the word "ki" (=dog)
must be written "ki", "gi" or "c'hi"  depending on
several rules. It is called a mutation. For proper
names, changing the first letter could make them
unrecognizable, so instead of mutating for example
"Dominique" into "Zominique", it is allowed to prepend
the mutated letter and write instead: "zDominique".

The wikipedia page http://en.wikipedia.org/wiki/Breton_mutations
gives this example "Itron vMaria"  (=the virgin Mary).

I hope that your change does not break that. Just checking...

$ svn up
Updating '.':
At revision 9897.

$ echo "Itron vMaria." | \
   java -jar 
languagetool/languagetool-standalone/target/LanguageTool-2.2-SNAPSHOT/LanguageTool-2.2-SNAPSHOT/languagetool-commandline.jar
 -l br -v
Expected text language: Breton
Working on STDIN...
578 rules activated for language Breton
<S> Itron[itron/N f s]  vMaria[Maria/Z f s ant M:1:1a:1b:4:].[</S>]<P/>
Disambiguator log:

Time: 265ms for 1 sentences (3.8 sentences/sec)

It looks OK: mixed case "vMaria" is still properly tagged
as proper name (Z), feminine (f), singular (s) of person's
name (ant), mutated "M:1:1a:1b:4:".

Regards
Dominique

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to