roundcubemail/program/lib/Roundcube/rcube_spellchecker.php
public function is_exception($word)
    {
        // Contain only symbols (e.g. "+9,0", "2:2")
        if (!$word || preg_match('/^[0-9@#$%^&_+~*<>=:;?!,.-]+$/', $word))
            return true;

        // Contain symbols (e.g. "g@@gle"), all symbols excluding separators
        if (!empty($this->options['ignore_syms']) && preg_match('/[@#$%^&_+~*=-]/', $word))
            return true;

        // Contain numbers (e.g. "g00g13")
        if (!empty($this->options['ignore_nums']) && preg_match('/[0-9]/', $word))
            return true;

        // Blocked caps (e.g. "GOOGLE")
        if (!empty($this->options['ignore_caps']) && $word == mb_strtoupper($word))
            return true;

        // Use exceptions from dictionary
        if (!empty($this->options['dictionary'])) {
            $this->load_dict();

            // @TODO: should dictionary be case-insensitive?
            if (!empty($this->dict) && in_array($word, $this->dict))
                return true;
        }

        return false;
    }
public function is_exception($word)
    {
        // Contain only symbols (e.g. "+9,0", "2:2")
        if (!$word || preg_match('/^[0-9@#$%^&_+~*<>=:;?!,.-]+$/', $word))
            return true;

        // Contain symbols (e.g. "g@@gle"), all symbols excluding separators
        if (!empty($this->options['ignore_syms']) && preg_match('/[@#$%^&_+~*=-]/', $word))
            return true;

        // Contain numbers (e.g. "g00g13")
        if (!empty($this->options['ignore_nums']) && preg_match('/[0-9]/', $word))
            return true;

        // Blocked caps (e.g. "GOOGLE")
        if (!empty($this->options['ignore_caps']) && $word == mb_strtoupper($word))
            return true;

        // Use exceptions from dictionary
        if (!empty($this->options['dictionary'])) {
            $this->load_dict();

            // @TODO: should dictionary be case-insensitive?
            if (!empty($this->dict) && in_array($word, $this->dict))
                return true;
        }

        return false;
    }
public function is_exception ( $ word ) { // Contain only symbols (e.g. "+9,0", "2:2") if ( ! $ word || preg_match ( '/^[0-9@#$%^&_+~*<>=:;?!,.-]+$/' , $ word ) ) return true ; // Contain symbols (e.g. "g@@gle"), all symbols excluding separators if ( ! empty ( $ this -> options [ 'ignore_syms' ] ) && preg_match ( '/[@#$%^&_+~*=-]/' , $ word ) ) return true ; // Contain numbers (e.g. "g00g13") if ( ! empty ( $ this -> options [ 'ignore_nums' ] ) && preg_match ( '/[0-9]/' , $ word ) ) return true ; // Blocked caps (e.g. "GOOGLE") if ( ! empty ( $ this -> options [ 'ignore_caps' ] ) && $ word == mb_strtoupper ( $ word ) ) return true ; // Use exceptions from dictionary if ( ! empty ( $ this -> options [ 'dictionary' ] ) ) { $ this -> load_dict ( ) ; // @TODO: should dictionary be case-insensitive? if ( ! empty ( $ this -> dict ) && in_array ( $ word , $ this -> dict ) ) return true ; } return false ; }
Check if the specified word is an exception according to
spellcheck options.

@param string  $word  The word

@return bool True if the word is an exception, False otherwise
Check if the specified word is an exception according to spellcheck options .