public function getSynonyms($baseWord = '')
    {
        $this->initializeSynonymsUrl();
        $synonymsUrl = $this->_synonymsUrl;
        if (!empty($baseWord)) {
            $synonymsUrl .= '/' . $baseWord;
        }

        $response = $this->_sendRawGet($synonymsUrl);
        return $this->synonymParser->parseJson($baseWord, $response->getRawResponse());
    }
public function getSynonyms($baseWord = '')
    {
        $this->initializeSynonymsUrl();
        $synonymsUrl = $this->_synonymsUrl;
        if (!empty($baseWord)) {
            $synonymsUrl .= '/' . $baseWord;
        }

        $response = $this->_sendRawGet($synonymsUrl);
        return $this->synonymParser->parseJson($baseWord, $response->getRawResponse());
    }
public function getSynonyms ( $ baseWord = '' ) { $ this -> initializeSynonymsUrl ( ) ; $ synonymsUrl = $ this -> _synonymsUrl ; if ( ! empty ( $ baseWord ) ) { $ synonymsUrl .= '/' . $ baseWord ; } $ response = $ this -> _sendRawGet ( $ synonymsUrl ) ; return $ this -> synonymParser -> parseJson ( $ baseWord , $ response -> getRawResponse ( ) ) ; }
Get currently configured synonyms

@param string $baseWord If given a base word, retrieves the synonyms for that word only
@return array
Get currently configured synonyms