divvun / libdivvun

lib for running gramcheck and other pipelines + cli; modules for CG→spelling, CG→feedback, tagging blanks
https://giellalt.github.io/proof/gramcheck/GrammarCheckerDocumentation.html
GNU General Public License v3.0
9 stars 1 forks source link

refer to form of *suggestion* in errors.xml #40

Closed unhammer closed 4 years ago

unhammer commented 4 years ago

There is currently no way to refer to a (dynamically generated) suggestion in errors.xml messages. We have $1 for the current form, $2 (and $3 etc.) for context words marked using ADDRELATION ($2), but we can't yet refer to the &SUGGEST-ed form.

There may be several suggested forms, but for now we can have a feature that just picks an arbitrary one.

snomos commented 4 years ago

I suggest $0 to always return the first suggestion.

unhammer commented 4 years ago

I think that would make it a bit confusing that $1 does not refer to the second suggestion, but to the input word form …