Hi,

W dniu 2014-05-04 07:06, Dominique Pellé pisze:
> Hi
>
> I've added a new pattern rule checker
> (commit commit e26967dc4663283574a8d536308c13ad188b44a0)
> and it finds this issue:
>
> The Catalan rule: FORCA2:6, token [1], contains "força
>                      " that contains token separators, so can't possibly
> be matched.
> The Catalan rule: FORCA2:7, token [1], contains "força
>                      " that contains token separators, so can't possibly
> be matched.
>
> The problem is detected in
>   
> languagetool-language-modules/ca/target/classes/org/languagetool/resource/ca/disambiguation.xml
> which looks like this:
>
> <rule>
>      <pattern>
>          <marker>
>              <token postag="_GN_FS">força<exception postag="_GV_"/>
>              </token>
>          </marker>
>      </pattern>
>      <disambig action="filter" postag="N.*|_GN_.*"></disambig>
> </rule>
>
> It means that the newline and spaces after
> the <exception…/> are slurped into the
> value of the token which is unexpected
> to me.
>
> Removing the spaces and newline after the
> exception, as follows, silences the error, but I
> wonder whether spaces and newline should not
> have been removed automatically after the exception:

Yes, they should. I need to add the same code as I used in the grammar 
rule pattern loader.

Regards,
Marcin

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to