Thanks Yakov

I looked at this approach and there are several problems with it:
1) I need to define rules for each case/gender etc
2) if same inflection form can belong to multiple cases it's ignored
in a rule (to handle that we would need more complex rules)
3) if preposition or verb allows multiple cases it gets really complicated

I feel that the logic "if adjective is one of these cases the noun
needs to be in one of these cases" will be more compact and less
error-prone written in Java. Same goes to "if preposition requires
Dative or Genetive the adjective and/or noun needs to be in one of
those".

Andriy

2013/11/20 Yakov Reztsov <[email protected]>:
>
>
>
> Вторник, 19 ноября 2013, 16:47 -05:00 от Andriy Rysin:
>
> I am thinking to add rules to Ukrainian that would check if related
> words agree on case/gender etc. There are several primary cases for
> this:
> 1) having adjective and noun have the same case, gender etc
> 2) having noun&apos;s/adjective&apos;s gender or plural form to match that
> of the verb
>
> 3) having adjective and/or noun to be in a right case if it follows
> the preposition or a verb that requires some particular case
>
> I was thinking about 3) for a bit and it looks like it&apos;ll be too hard
>
> to implement this in grammar.xml: we have 7 cases in Ukrainian and
> some prepositions may allow several cases for following
> nouns/adjectives and some nouns don&apos;t change (currently I just mark
>
> them as such in the dictionary instead of exploding same word 7 times
> which may be more correct way to go).
>
>
>
> I implemented it for Russian in grammar.xml.
>
> And I use some prepositions for disambiguation in Russian.
>
>
> --
>
> Yakov Reztsov
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Languagetool-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to