Case Sensitivity

Case Sensitivity is a type of Conditions.

By default all case variations are annotated. To limit annotations to only certain cases, you can include a conditional case statement.

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

#clear cond: case

  • If not defined, all case variations are annotated.

<condition>

  • lower - matches only the lower case form of the entry text (for example, "Big" will match "big" only)
  • upper - matches only the upper case form of the entry text (for example, "Big" will match "BIG" only)
  • exact - matches only the exact case of the entry text (for example, "BiG" will match "BiG" only)
  • title - conditions depend on whether the entry text is a single word or a phrase
    • single word - matches only the capitalized form of the entry text (for example, "big" will match "Big" only)
    • phrases - match entire phrase if at least one of the words is capitalized (for example, "big blue bird" will match "Big blue bird", "big Blue bird","big blue Bird" and "Big blue Bird")
Dictionary Entry Case

For lower and upper, the typography in the entry text has no significance.

However, the entry text is significant for the case conditions exact and title.

Lower Case

Lower matches only the lower case form of the entry text.

The entry text can be in any case.

Dictionary Entry Matches to
mack mack
Raven raven
ECONOMICAL economical
truCk truck
Example: Lower Case
Copy
Example: Lower Case
#wordlist tag:Example
#cond:case lower
Mack
Princess
ECONOMICAL
truCk

/*
#EXAMPLE
The mack truck, operated by the Raven company, was very economical to run.
Trucks operated by raven in the past had been significantly un-economical.
#EXAMPLE END
*/
Result:

The mack truck, operated by the Raven company, was very economical to run.

Trucks operated by raven in the past had been significantly un-economical.

Upper Case

Upper case matches when all letters are capitalised.

The entry text can be in any case.

Dictionary Entry Matches to
exception EXCEPTION
Abstract ABSTRACT
JDK JDK
VariAble VARIABLE
Example: Upper Case
Copy
Example: Upper Case
#wordlist tag:Example
#cond:case upper
#generalize:plural true
exception
Abstract
JDK
VariAble

/*
#EXAMPLE
Java development kit (JDK) is one of the core technology packages for developing Java applications.
Within the jdk, you can use EXCEPTIONS to handle errors properly such as ABSTRACT variables.
There are many different types of VARIABLES available within Java.
#EXAMPLE END
*/
Result:

Java development kit (JDK) is one of the core technology packages for developing Java applications.

Within the jdk, you can use EXCEPTIONS to handle errors properly such as ABSTRACT variables.

There are many different types of VARIABLES available within Java.

Exact Case

Exact case matches when the case of all letters in the entry are matched exactly.

The entry text must appear exactly as the text you want to annotate.

Dictionary Entry Matches to
DoD DoD
IaC IaC
kHz kHz
PhD PhD
Example: Exact Case
Copy
Example: Exact Case
#wordlist tag:Example
#cond:case exact
DoD
IaC
kHz
PhD
mRNA

/*
#EXAMPLE
While not common, some abbreviations can contain mixed case.  
DoD for Department of Defense is one example.
IaC for Infrastructure as Code is an IT example.
Other examples include kHz, PhD and mRNA.
#EXAMPLE END
*/
Result:

While not common, some abbreviations can contain mixed case.

DoD for Department of Defense is one example.

IaC for Infrastructure as Code is an IT example.

Other examples include kHz, PhD and mRNA.

Title Case

Title case matches when at least one of the words is capitalised.

  • Words or phrases all in lower case or all in upper case will not be matched.

The case of entry text will impact the words matched to the term. When a letter is capitalised in the dictionary entry, it will only match to words with that letter also capitalised.

  • If a word has unique capitalisation, such as camel case or a surname such as McKenna, you need to include the correct capitalisation in the dictionary entry to get accurate matches.

Dictionary Entry Matches to

Does not match

where the wild things are

Where the Wild Things Are

Where the wild things are

Where the Wild Things are

where the Wild Things are

 

Where the wild things are

Where the Wild Things Are

Where the wild things are

Where the Wild Things are

where the Wild Things are

Where the Wild Things Are

Where the Wild Things Are

Where the wild things are

Where the Wild Things are

where the Wild Things are

strange McGurney's travel tips

Strange McGurney's Travel Tips

Strange McGurney's travel tips

Strange mcgurney's travel tips

Strange mcgurney's Travel tips

Strange Mcgurney's travel tips

Strange Mcgurney's Travel Tips

my journey from iMac to PC

My Journey from iMac to PC

my journey from iMac to PC

My journey from imac to PC

Example: Title Case
Copy
Example: Title Case
#wordlist tag:Example
#cond:case title

where the wild things are
pippi longstocking
llama llama red pajama
heidi
ballet shoes
"McGurney's travel tips For toddlers"
"Strange McGurney's travel tips"
12 days of my birthday
"Me, # and ?"

/*
#EXAMPLE
Here are some popular children's books.
Where the wild things are
Pippi Longstocking
Llama Llama Red Pajama
Heidi
Ballet shoes
Strange McGurney's Travel Tips
McGurney's travel tips For toddlers
12 Days of my Birthday
Me, # and ?
#EXAMPLE END
*/
Result:

Here are some popular children's books.

Where the wild things are

Pippi Longstocking

Llama Llama Red Pajama

Heidi

Ballet shoes

Strange McGurney's Travel Tips

McGurney's travel tips For toddlers

12 Days of my Birthday

Me, # and ?

Examples

x

Example: Multiple Case
Copy
Example: Multiple Cases
#wordlist tag:Book
#cond:case title upper

the very hungry caterpillar
"charlotte's web"
the tale of peter rabbit
the one and only Ivan
mother bruce


#wordlist tag:animal
#cond:case -upper
#generalize:plural true
caterpillar
butterfly
gorilla
rabbit
pig
spider
elephant
gosling

#wordlist tag:Character
#cond:case title
Peter
Wilbur
Charlotte
Peter
Ivan
Bruce
ruby


/*
#EXAMPLE
Here are summaries of some popular children's books about animals:

1. The Very Hungry Caterpillar follows a caterpillar as it eats its way through a variety of foods before transforming into a beautiful butterfly. 

2. Charlotte's Web is a heartwarming tale tells the story of a pig named Wilbur and his friendship with a spider named Charlotte. CHARLOTTE writes messages in her web to save Wilbur from being slaughtered, showcasing themes of friendship, loyalty, and sacrifice.

3. The Tale of Peter Rabbit follows the mischievous rabbit called Peter as he sneaks into Mr. McGregor's garden where the RABBIT gets into all sorts of trouble. 

4. The One and Only Ivan is about Ivan, a gorilla who lives in a shopping mall. Through his friendship with a baby elephant named Ruby, Ivan begins to see his life in a new light and works to find a better home for both of them.

5. MOTHER BRUCE tells the story of Bruce, a grumpy bear who accidentally becomes the mother to a group of goslings. Despite his initial reluctance, Bruce grows to care for the goslings, leading to many funny and heartwarming moments.
#EXAMPLE END
*/

  • Since character was set to title case only, the following were not tagged:

    • CHARLOTTE (title case excludes upper case).

    • BRUCE (title case excludes upper case).

    • wilber (title case excludes lower case)

  • Since animal was set to exclude upper case, RABBIT is not tagged.

Result:

Here are summaries of some popular children's books about animals:

1. The Very Hungry Caterpillar follows a caterpillar as it eats its way through a variety of foods before transforming into a beautiful butterfly.

2. Charlotte's Web is a heartwarming that tale tells the story of a pig named Wilbur and his friendship with a spider named Charlotte. CHARLOTTE writes messages in her web to save wilbur from being slaughtered, showcasing themes of friendship, loyalty, and sacrifice.

3. The Tale of Peter Rabbit follows the mischievous rabbit called Peter as he sneaks into Mr. McGregor's garden where the RABBIT gets into all sorts of trouble.

4. The One and Only Ivan is about Ivan, a gorilla who lives in a shopping mall. Through his friendship with a baby elephant named Ruby, Ivan begins to see his life in a new light and works to find a better home for both of them.

5. MOTHER BRUCE tells the story of Bruce, a grumpy bear who accidentally becomes the mother to a group of goslings. Despite his initial reluctance, Bruce grows to care for the goslings, leading to many funny and heartwarming moments.