roundcubemail/program/lib/Roundcube/rcube_spellchecker.php
public function add_word($word)
    {
        $this->load_dict();

        foreach (explode(' ', $word) as $word) {
            // sanity check
            if (strlen($word) < 512) {
                $this->dict[] = $word;
                $valid = true;
            }
        }

        if ($valid) {
            $this->dict = array_unique($this->dict);
            $this->update_dict();
        }
    }
public function add_word($word)
    {
        $this->load_dict();

        foreach (explode(' ', $word) as $word) {
            // sanity check
            if (strlen($word) < 512) {
                $this->dict[] = $word;
                $valid = true;
            }
        }

        if ($valid) {
            $this->dict = array_unique($this->dict);
            $this->update_dict();
        }
    }
public function add_word ( $ word ) { $ this -> load_dict ( ) ; foreach ( explode ( ' ' , $ word ) as $ word ) { // sanity check if ( strlen ( $ word ) < 512 ) { $ this -> dict [ ] = $ word ; $ valid = true ; } } if ( $ valid ) { $ this -> dict = array_unique ( $ this -> dict ) ; $ this -> update_dict ( ) ; } }
Add a word to dictionary

@param string  $word  The word to add
Add a word to dictionary