If a rule is defined as being case-sensitive then it
makes sense that any expections that are part of the
rule are also treated as case-sensitive.
<rule match="\b([Nn])orth ([Aa])merica(ns?)?\b"
<except if="$1$2" matches="NA"/>
<description>Countries/continents need capital
<test in="two north americans in North america
and another north American in North America"
out="two North Americans in North America
and another North American in North America"/>
fails at the moment because the test for the exception
NA (i.e. so the rule doesn't fire if North America is
already capitalised) is always true if the test is not
Log in to post a comment.