Relevance Key Phrases
This section presents an alphabetized table of the keywords in the Relevance language, along with their grammatical values.
Keyword | Effect | Grammatic Value |
---|---|---|
a | Ignored by the relevance evaluator. Used to improve readability. | <none> |
an | Ignored by the relevance evaluator. Used to improve readability. | <none> |
and | The logical AND operator. Doesn’t evaluate the right hand side if the left hand side is false. | and |
as | The typecast operator, used to convert one type to another. | as |
contains | Returns TRUE when a string contains another string as a substring. | relation |
does not contain | Equivalent to ‘not contains’. | relation |
does not end with | Returns TRUE when a string does not end with the specified substring. | relation |
does not equal | Equivalent to ‘is not’. | relation |
does not start with | Returns TRUE when a string does not start with the specified substring. | relation |
else | Denotes the alternative path in an ‘if-then-else’ statement. | else |
ends with | Returns TRUE when a string ends with the specified substring. | relation |
equals | Equivalent to ‘is’. | relation |
exist | Returns a boolean TRUE / FALSE indicating whether an object exists. | exists |
exist no | Equivalent to ‘not exist’. | not exists |
exists | Equivalent to ‘exist’. | exists |
exists no | Equivalent to ‘not exist’. | not exists |
if | The keyword to begin an ‘if-then-else’ expression. | if |
is | Returns TRUE when two objects are equal. Note that not all objects can be tested for equality. Equivalent to the ‘=’ operator. | relation |
is contained by | Returns TRUE when a string contains another string as a substring. | relation |
is equal to | Equivalent to ‘is’. | relation |
is greater than | The ‘>’ comparison. | relation |
is greater than or equal to | The ‘>=’ comparison. | relation |
is less than | The ‘<’ comparison. | relation |
is less than or equal to | The ‘<=’ comparison. | relation |
is not | Returns TRUE when two objects are not equal. Note that not all objects can be compared with this keyword. | relation |
is not contained by | Returns TRUE when a string does not contain another string as a substring. | relation |
is not equal to | Equivalent to the keyword ‘is not’ and the ‘!=’ operator. | relation |
is not greater than | Equivalent to is less than or equal to or ‘<=’. | relation |
is not greater than or equal to | Equivalent to is less than or ‘<’. | relation |
is not less than | Equivalent to is greater than or equal to or ‘>=’. | relation |
is not less than or equal to | Equivalent to is greater than or ‘>’. | relation |
it | A reference to the closest direct object or ‘whose’ clause. | it |
item | Used to index into a tuple. Always returns a singular value. | phrase |
items | Equivalent to item, but returns a plural value. | phrase |
mod | The modulo operator. | mod |
not | The logical NOT operator. | relation |
number | Returns the number of results in an expression. | phrase |
of | Used to access a property of an object. | of |
or | The logical OR operator. Doesn’t evaluate the right hand side if the left hand side is true. | or |
starts with | Returns TRUE when a string begins with the specified substring. | relation |
the | Ignored by the relevance evaluator. Used to improve readability. | <none> |
then | Denotes the main path to take in an if-then-else expression. | then |
there do not exist | Equivalent to ‘not exist’. | not exists |
there does not exist | Equivalent to ‘not exist’. | not exists |
there exist | Equivalent to ‘exist’. | exists |
there exist no | Equivalent to ‘not exist’. | not exists |
there exists | Equivalent to ‘exist’. | exists |
there exists no | Equivalent to ‘not exist’. | not exists |
whose | Used along with the ‘it’ keyword to filter plural results. | whose |