We use straight quotes where I work. I’m trying to get this rule to work:
<rule id="CHC_STRAIGHT_QUOTES" name="CHC_STRAIGHT_QUOTES">
<pattern>
<token regexp='yes'>(‘|’|“|”|‹‹|››)</token>
</pattern>
<message>CHC SPM chapter 3, use straight quotes</message>
<short>Use straight quotes</short>
<example correction=''>Use straight<marker>’</marker> quotes. Not curly’ quotes.</example>
<example>These are the 'quotes' to use.</example>
</rule>
The rule works when I run it here: Check a LanguageTool XML rule
But when I try to launch languagetool.jar it throws an error.
I’ve even tried defining my regex quotes using unicode: \u2018|\u2019
Any ideas welcome.
Thank you all for your help. Looking with fresh eyes this morning I noticed I had created an extra close rulegroup ‘’. Now it works perfectly. @dnaber, the message was basically saying: ‘Caused by: java.lang.RuntimeException: Could not activate rules’.
Again, thank you all