public function addSynonym($baseWord, array $synonyms)
    {
        $this->initializeSynonymsUrl();
        $json = $this->synonymParser->toJson($baseWord, $synonyms);
        $response = $this->_sendRawPost($this->_synonymsUrl, $json, 'application/json');
        return $response;
    }
public function addSynonym($baseWord, array $synonyms)
    {
        $this->initializeSynonymsUrl();
        $json = $this->synonymParser->toJson($baseWord, $synonyms);
        $response = $this->_sendRawPost($this->_synonymsUrl, $json, 'application/json');
        return $response;
    }
public function addSynonym ( $ baseWord , array $ synonyms ) { $ this -> initializeSynonymsUrl ( ) ; $ json = $ this -> synonymParser -> toJson ( $ baseWord , $ synonyms ) ; $ response = $ this -> _sendRawPost ( $ this -> _synonymsUrl , $ json , 'application/json' ) ; return $ response ; }
Add list of synonyms for base word to managed synonyms map

@param string $baseWord
@param array $synonyms

@return ResponseAdapter

@throws \InvalidArgumentException If $baseWord or $synonyms are empty
Add list of synonyms for base word to managed synonyms map