Schematron[1] is a tool to allow subtle checking of XML content.
My previous example I now find is wrong semantically?
I *think* that
<rule id="CONFUSION_OF_bare_bear" name="confusion of bare/bear">
<pattern>
<token>bear</token>
</pattern>
<message>Did you mean <suggestion>bare</suggestion> feet?</message>
<example type="incorrect">Sorry for my <marker>bear</marker> feet.</example>
<example type="correct">Sorry for my bare feet.</example>
</rule>
is correct. One Schematron check which could be done
is to ensure that /rule/pattern/token = /example[@type='incorrect']/marker
Just to check that the examples are the right way round?
Would this be helpful?
[1] http://www.schematron.com/
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel