I could not locate the error in the following code.
<!-- English rule, 2016-11-13 --> <rule id="AGREE_WITH_03" name="agree with 03"> <pattern> <marker> <token inflected='yes'>agree</token> <token negate='yes'>with</token> </marker> <token postag='DT'></token> <token postag='NN|NNS|NN:U|NN:UN|NNP|NNPS|PRP|PRP\$' postag_regexp='yes'></token> </pattern> <message>Did you mean: <suggestion>agree with</suggestion>?</message> <short>Wrong preposition: agree with (have same opinion)</short> <example correction='agree with'>I was simply saying that I <marker>agree to</marker> that man.</example> <example>I was simply saying that I agree with that man.</example> </rule>
What I’m getting, is:
There are problems with your rule: Found wrong correction(s) in sentence 'I was simply saying that I agree to that man.': '[agree with]' but expected '[agree with]' Please make sure you selected the correct language for your rule - your selection was: English
and the simple rule editor is giving:
Error: XML validation failed: org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 57; The entity "nbsp" was referenced, but not declared.
I don’t know where all the errors are taking place. Need your assistance.