W dniu 2013-04-22 04:05, Andriy Rysin pisze: > 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.
Use unification. http://wiki.languagetool.org/using-unification Lots of examples are to be found in the Polish grammar file, and in the Catalan one. Best, Marcin ------------------------------------------------------------------------------ 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 Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel