Paraphrase Interface
Describes Paraphrase interface.
withLanguage
Return an instance with provided language.
$paraphrase = $paraphrase->withLanguage($language);
getLanguage
Retrieve provided language.
$language = $paraphrase->getLanguage();
getSupportedLanguages
Retrieve supported languages.
$languages = $paraphrase->getSupportedLanguages();
withMode
Return an instance with provided mode.
$paraphrase = $paraphrase->withMode($mode);
getMode
Retrieve provided mode.
$mode = $paraphrase->getMode();
getSupportedModes
Retrieve supported modes.
$modes = $paraphrase->getSupportedModes();
withText
Return an instance with provided text.
$paraphrase = $paraphrase->withText($text);
getText
Retrieve provided text.
$text = $paraphrase->getText();
paraphrase
Retrieve paraphrased text.
$paraphrased_text = $paraphrase->paraphrase();