Hello,

The LT wiki shows how to suggest inflected matched tokens 
(http://wiki.languagetool.org/development-overview#toc17).

Sometimes, for an inflection, LT offers two different spellings. Thus, I must 
include both spellings in a rule:

<rule id="CANCELLED_CANCELED_TEST" name="cancelled/canceled">
    <pattern>
        <token inflected="yes">abandon</token>
    </pattern>
    <message>Use: <suggestion><match no="1" 
postag="VB.*">cancel</match></suggestion>.</message>
    <short>cancelled/canceled test</short>
    <example type="incorrect" correction="cancel">… to <marker>abandon</marker> 
the fees at the start of 2015.</example>
    <example type="incorrect" correction="canceled|cancelled">… where fees were 
<marker>abandoned</marker> at the start of 2015.</example>
    <example type="incorrect" correction="canceling|cancelling">When you are 
<marker>abandoning</marker> a test, …</example>
    <example type="correct">… where fees were <marker>cancelled</marker> at the 
start of 2015.</example>
    <example type="correct">When you are <marker>cancelling</marker> a test, 
…</example>
</rule>

I want to suggest only 'cancelled' and 'cancelling'. I can do that using a set 
of rules in a rulegroup (one rule for one inflection and use for example: 
<suggestion>cancelled</suggestion>).

But, is it possible to show only the spellings that I want with only one rule?

Regards,

Mike Unwalla
Contact: www.techscribe.co.uk/techw/contact.htm 




------------------------------------------------------------------------------
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to