Back to LanguageTool Homepage - Privacy - Imprint

How to apply a lexical category


(msramek) #1

Hi,

I am new in this forum. I would like to find some linguists who would create a meaningful set of grammar rules for Slovak (so that we can say that LT is supported in Slovak), but first I have to learn how to create the LT rules by myself. Since Slovak is rich in forms, I think that the following problem can occur quite often:

It is a common error in Slovak that the pronoun 'koho' (meaning 'whom') is incorrectly used instead of 'čí' ('whose'). 'koho' is in this case used without inflection and should be replaced by a proper inflected form of 'čí', which depends on a matching noun.

The rule to identify the incorrect text is:
koho

where the POS tag means: a noun (S) in any gender, number and case (the last 3 dots).
(it looks like the POS tags are language specific, aren't they?)

In the suggestion tag it is thus necessary to apply the noun category specified by the last three dots to the pronoun 'čí', so that it matches the noun. In the tutorial http://www.languagetool.org/development/ there is an example, how to do that between two verbs:
kierować

I tried:
čí \2.
which suggests all possible forms of 'čí', and
čí \2.
which does not suggest anything.

Is there a way how to do that for the pair noun,pronoun?

Thank you in advance
Milos


(Daniel Naber) #2

Am 21.06.2013 09:27, schrieb msramek [via LanguageTool User Forum]:

Hi Milos,

I am new in this forum. I would like to find some linguists who would
create a meaningful set of grammar rules for Slovak

welcome to LanguageTool! I'm looking forward to your contributions.

čí 2.
which does not suggest anything.

I think the use case for this syntax is to transfer the form of one
verb to another verb etc. It might not be powerful enough to partially
transfer the POS tags between words that belong to different parts of
speech, but I'm not totally sure.

As this is already quite an advanced question I suggest you subscribe
to our mailing list at
https://lists.sourceforge.net/lists/listinfo/languagetool-devel and ask
your question there again. Most experienced developers are on the list
and not here in the forum.

Regards
Daniel

--
http://www.danielnaber.de