Conditions

There are two types of conditions, case sensitivity and context. Conditions share some common features, which are explained in this topic. Each type is explained in more detail in the Case Sensitivity and Context Sensitivity topics.

Syntax
Set Condition:
#cond:<type> <+/-><condition> <+/-><condition> <+/-><condition>
Clear Condition:

#clear cond: <type>

  • #cond on a new line clears the #cond on a previous line.

  • you can include multiple <conditions> of the same type on the same line.

  • when you want to stop using a condition you can clear the condition.

<type>

  • case - define the case sensitivity of the entry.

  • context - define terms that must or must not be in the text block with the entry.

<+/->

  • each condition defaults to the plus symbol

  • since the plus symbol is the default, you only need to add the minus symbol when you want to exclude a condition

  • you can combine positive (include) and negative (exclude) conditions on the same line.

  • negative (exclude) conditions take precedence over positive (include) conditions.

Example

This example shows the use of both types of conditions: case and context.

Copy
Code:
#wordlist tag:Forces

// only tag front as Forces when 
//the word line is not in the same text block.
#cond:context -line
front
#clear cond:context

// only tag when the word has exactly the same capitalisation.
#cond:case exact
Revolution Force
#clear cond:case

#wordlist tag:Aircraft
// only tag as Aircraft when any one of the context terms 
// appear in the same text block. 
#cond:context aircraft plane planes fly flew flying 
"Boeing 747"
"Lockheed L-1011 TriStar"
"Macchi C.205 Veltro"
"Airbus A380"
"Macchi C.202 Folgore"
"Reggiane Re.2000 Falco I"
"Fiat G.50 Freccia"

/*
#EXAMPLE
There were reports from the Revolution Force of multiple aircraft flying around the front line, with one witness stating they saw a Boeing 747!

While not as large as an Airbus A380, the Boeing 747 is still significantly large and an unexpected sight to see at the front, stated a representative of the revolution force.
#EXAMPLE END
*/
Result:

There were reports from the Revolution Force of multiple aircraft flying around the front line, with one witness stating they saw a Boeing 747!

While not as large as an Airbus A380, the Boeing 747 is still significantly large and an unexpected sight to see at the front.