On 08/16/2014 06:07 PM, Daniel Naber wrote: > On 2014-08-11 01:47, Andriy Rysin wrote: > >> I was writing a rule were I had to catch a phrase with last word being >> noun, but only if that noun is not part of adverb chunk (with another >> word following). The best way to do that seems to use adverb chunk in >> exception but looks like this is not supported. > Sorry for the late reply. If by chunks you mean phrases (and not chunks > in the sense that the Language class has getChunker() implemented): the > reason that they are not supported is probably that adding support might > be difficult. The matching algorithm is already complicated. > > Note that you can use <antipattern> to specify patterns that prevent > matching. These match on the whole sentence, though, not at a specific > token. > No, I actually mean chunker (if I understand the concept correctly), I have some adverb chunks defined in multiwords and it would be nice to be abel to use them in exceptions and not just in tokens. E.g. «показати тією мірою» have <adv> chunk marker on тією and </adv> on мірою (besides their POS tags) so I would like to be able to use those. And I would like to stick to localized scope so using antipattern is not the best approach here.
Thanks Andriy ------------------------------------------------------------------------------ _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel