Question about grammar rules: I'd like to write a rule that makes sure
the gender and case of the adjective and noun match. But the same word
may represent different gender/case for both adjective and (to a less
degree) noun. Ukrainian has 7 cases and 3 genders so it'll take a lot of
lines to cover all rules doing it manually.
So what I am looking is a compact way to say in a rule "a set of
dictionary tags for token1 does (not) overlap with set of tags for token2".
E.g.
token1:
word_form1 base1 adj:fem:case1
word_form1 base1 adj:masc:case2
token2:
word_form2 base2 noun:masc:case2
word_form2 base2 noun:plural:case3
I want to be able to quickly check that there's an overlap for some
particular part of the tag (in this case "masc:case2") between the tokens.
Something like this:
<token postag_regexp="yes" postag="adj:(.*:case.)"/>
<token postag_overlap_with="1" postag="noun:$1"/>
Thanks
Andriy
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel