src/Sentiment/Vader.php
/**
     *      
     * Determine if input contains negation words
     * @param array $tokens
     * @param bool $includeNt
     * @return bool
     */
Determine if input contains negation words
@param array $tokens
@param bool $includeNt
@return bool
Determine if input contains negation words @param array $tokens @param bool $includeNt @return bool
public function isNegated(array $tokens, bool $includeNt = true) : bool
    {
        foreach($tokens as $word)
        {
            if(in_array($word, $this->negate) || 
                    ($includeNt && strpos($word, "n't") !== false) ||
                    ( strpos($word, 'least') > 0 && strpos($word, 'at') !== 0 ) ) {
                return true;
            }
        }
        return false;
    }
public function isNegated ( array $ tokens , bool $ includeNt = true ) : bool { foreach ( $ tokens as $ word ) { if ( in_array ( $ word , $ this -> negate ) || ( $ includeNt && strpos ( $ word , " n't " ) !== false ) || ( strpos ( $ word , 'least' ) > 0 && strpos ( $ word , 'at' ) !== 0 ) ) { return true ; } } return false ; }
Determine if input contains negation words
 @param array $tokens
 @param bool $includeNt
 @return bool
Determine if input contains negation words @param array $tokens @param bool $includeNt @return bool