Powered by Zoomin Software. For more details please contactZoomin

Semaphore Classification Server Rulebase Reference

Neartype Attribute

  • Last Updated: May 13, 2026
  • 1 minute read
    • Semaphore
    • Documentation

Specifies the type of near group to be looked for.

Added Semaphore 4.1

Normal use is to use the TYPE attribute and let CS work out that it is applying to a near rule and so means NEARTYPE

Applies to

Values

  • “in_order” - The near group is only found if the children are in order in the document
   <near type="in_order" data="a near group" />

is functionally equivalent to

    <phrase data="a near group" />

The difference in behaviour comes if you add a skip count on the near rule. This is not legal for a phrase rule since you have to be explicit where in the phrase a skip is allowed - for a near rule the skip may occur anywhere in the sequence

    <near type="in_order" data="a near group" count="2" />

matches

  a very long near group

  a separation near the group

NB adding in extra words at any point can very easily change the meaning of the phrase. It is because of the risk of this happening by accident that this behaviour is only available on a <near> rule.

TitleResults for “How to create a CRG?”Also Available inAlert