Jaume Ortolà i Font <[email protected]> wrote:

> 2013/1/16 Daniel Naber <[email protected]>
>>
>> On 16.01.2013, 10:00:27 Jaume Ortolà i Font wrote:
>>
>> > Is there any way of adding suggestions to a pattern rule out of the
>> > <message> element?
>>
>> No, and I agree that this sometimes would be useful. Feel free to add it
>> (after we have agreed on a syntax).
>
>
> It could be an optional element after <message> like this:
>
> <message>Incorrect expression. Choose one of the following
> suggestions.</message>
> <suggestions><suggestion><match no="1"
> /></suggestion><suggestion>ABC</suggestion></suggestions>
>
> Everything would be the same as in <message> but without a message text,
> only suggestions.

Do we really need to put <suggestion> inside <suggestions>?
It would be less noisy like this:

<message>yada yada yada</message>
<suggestion>xxx</suggestion>
<suggestion>yyy</suggestion>
<url>...</url>
<example type="incorrect">...</example>
<example type="correct">...</example>

There are already several tags <example>...</example> without
wrapping them into <examples>...</examples> so it seems OK
to me to avoid having a tag <suggestions>.

Also, most of the time there is only one suggestion.
so this would not look good:

<suggestions><suggestion>....</suggestion></suggestions>

Speaking of multiple tags, what about being able to have
multiple <url>...</url> as well?

Regards
Dominique

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to