normcase

Purpose

Finds documents that contain case-sensitive occurrences of arguments.

Unlike the case function that considers word capitalization as it is in a text, the normcase() function performs case normalization, i.e. words that occur in the initial-position of the sentence (except proper nouns) are normalized to lower case. In all-uppercase or all-lowercase sentences words are normalized as if they appeared in a normal mixed-case sentence.

Syntax

normcase([cap_type,] term_1, term_2…​)

Arguments

The function accepts several arguments. Required letters case can be specified using first optional parameter cap_type which accepts one of the following values:

  • lower matches words with all letters in lowercase;

  • upper matches words with all letters in uppercase;

  • title matches words with the first letter is in uppercase, all subsequent letters in lowercase;

  • mixed matches words that contain letters in upper and lower case in any combination.

Returned Value

Documents matching the query.

Examples

normcase(market) = normcase(lower, market) matches "Market prices are a mix of economic fundamentals" and "FINANCIAL PROTECTION AGENCY MONITORS THE CONSUMER CREDIT MARKET".

normcase(Market) = normcase(title, market) matches "The park is on West Market Street".

normcase(title) matches titlecase words.

normcase(upper|mixed) matches uppercase and mixed-case words.