What about adding support for finding/suggesting a different form of the
same word based on POS tags in German (see discussion from May last year
below)? That would be quite helpful for some suggestions. --Jan

Am 12.02.2013 21:34, schrieb Daniel Naber:
> GSoC 2013 has just been announced. [...] If you're not sure about your ideas, 
> feel free to discuss them here.


Am 11.05.2012 14:02, schrieb Jan Schreiber:
> Re: [Languagetool] Suggesting the infinitive of a verb in a rule
> Thanks for the response. Is the method supposed to work for German? I
> tried to do it as you described, but no use. --Jan
>
> Marcin Miłkowski schrieb:
>> W dniu 2012-05-11 09:41, Jan Schreiber pisze:
>>> Dear all,
>>>
>>> I'm currently struggling with a replacement rule. In the following
example:
>>>     <example type="incorrect">Das hat ja so<marker>kommen
>>>             gemusst</marker>.</example>
>>> I would like to suggest the infinitive of the verb "gemusst", i.e.
>>> "müssen," like so:
>>>     <message>[Do you mean]<suggestion>kommen müssen<suggestion>?
>>>
>>> The trouble is that I have a list of five or so verbs that is difficult
>>> to impossible to cover with a single regular expression:
>>>
>>> Token       Replacement
>>> -------------------
>>> gemusst     müssen
>>> gewollt     wollen
>>> gesehen     sehen
>>> ...
>>>
>>> Is there a method to do this that I'm unaware of?
>>
>> Yes, you can replace the POS tag, and the POS tag will specify the form
>> of the verb.
>>
>> It would be roughly something like this:
>>
>> <suggestion><match no="1" postag="pattern-for-original-postag"
>> postag_regexp="yes" postag_replace="pattern-for-infitive"/></suggestion>
>>
>> You simply do regular expression replacement from the original POS tag
>> to the target one.
>>
>> Regards,
>> Marcin

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to