src/Sentiment/Vader.php
/**
     * Check whether just some words in the input are ALL CAPS
     * param list words: The words to inspect
     * returns: `True` if some but not all items in `words` are ALL CAPS
     * @param array $tokens
     * @return boolean
     */
Check whether just some words in the input are ALL CAPS
param list words: The words to inspect
returns: `True` if some but not all items in `words` are ALL CAPS
@param array $tokens
@return boolean
Check whether just some words in the input are ALL CAPS param list words : The words to inspect returns : ` True ` if some but not all items in ` words ` are ALL CAPS @param array $tokens @return boolean
public function allCapDifferential(array $tokens) : bool
    {
        $upperCase = array_map('strtoupper', $tokens);
        $intersection = array_values( array_intersect( $tokens, $upperCase));        
        return count($intersection) > 0 && count($intersection) < count($tokens);                
    }
public function allCapDifferential ( array $ tokens ) : bool { $ upperCase = array_map ( 'strtoupper' , $ tokens ) ; $ intersection = array_values ( array_intersect ( $ tokens , $ upperCase ) ) ; return count ( $ intersection ) > 0 && count ( $ intersection ) < count ( $ tokens ) ; }
Check whether just some words in the input are ALL CAPS
 param list words: The words to inspect
 returns: `True` if some but not all items in `words` are ALL CAPS
 @param array $tokens
 @return boolean
Check whether just some words in the input are ALL CAPS param list words : The words to inspect returns : ` True ` if some but not all items in ` words ` are ALL CAPS @param array $tokens @return boolean