Search for Negations
The negate() function is used to search arguments in negative contexts. The function direct() or its equivalent possible() are the opposite functions of negate() and search for arguments not in negative contexts.
Syntax
The functions are based on PolyAnalyst proprietary negation detection algorithm, which allows to match both grammatical ("no activity") and lexical ("absence of activity") negations.
Example
Task Example: Customer Reviews Analysis
Users may be interested in analyzing customer feedback on a product to retrieve aspects of the product that were positively evaluated by customers. It can be done using the query that searches for positive adjectives followed by a noun.
However, this query also matches occurrences of positive adjectives when they appear in negative contexts and change the meaning to negative. To filter out such results, we should enclose the query within the direct() function.
Using the negate() function, one can also find the negations of negative reviews.
Note
A function with several arguments is equivalent to several functions with a single argument concatenated using the or operator: