Package com.simplidh.api
Interface IGhostwritRIO
- All Superinterfaces:
Serializable
- Author:
- Phillip Austerfield
-
Method Summary
Modifier and TypeMethodDescriptionChange the formality of a given textContinue given textcreateFaqs
(String sText, String sTargetLanguage) Create FAQs based on a textCreate a short summary of a given textcreateText
(String sQuestionOrTopic, String sTargetLanguage) Create a text based on the given question.Neither sources will be given nor white-/blacklists used.createText
(String sQuestionOrTopic, String sTargetLanguage, boolean bIncludeSources, String[] asListWhitelist, String[] asListBlacklist) Create a text based on the given question.Neither sources will be given nor white-/blacklists used.This service inserts text to existing text based on the given context.Create captionsCreate Keywords from a given textCreate Linkedin post from a given textgenerateMetadescription
(boolean bAddAlternatives) Create meta description from a given text.Create texts from structured product data and descriptions, which can be used as marketing texts or descriptive texts on a website or in other materials.Generate a title from a given textCreate tweet from a given textgetQuestions
(String sTopic, String sTargetLanguage) Generates questions to a given keyword or contextGet client status informationoptimize()
Get optimize operationsspinText
(int nVersion) Rephrase a given text
-
Method Details
-
getQuestions
@NotNull List<String> getQuestions(@NotNull String sTopic, @NotNull String sTargetLanguage) throws IllegalStateException Generates questions to a given keyword or context- Parameters:
sTopic
- Topic to generate questions forsTargetLanguage
- Target Language- Returns:
- List of questions
- Throws:
IllegalStateException
-
createText
@NotNull IGeneratedText createText(@NotNull String sQuestionOrTopic, @NotNull String sTargetLanguage) throws IllegalStateException Create a text based on the given question.Neither sources will be given nor white-/blacklists used.- Parameters:
sQuestionOrTopic
- Question/TopicsTargetLanguage
- Target Language- Returns:
- Throws:
IllegalStateException
-
createFaqs
@NotNull List<IGeneratedFaq> createFaqs(@NotNull String sText, @NotNull String sTargetLanguage) throws IllegalStateException Create FAQs based on a text- Parameters:
sText
- Input TextsTargetLanguage
- Target Language- Returns:
- List of Questions/Answers
- Throws:
IllegalStateException
-
createText
@NotNull IGeneratedText createText(@NotNull String sQuestionOrTopic, @NotNull String sTargetLanguage, boolean bIncludeSources, @Nullable String[] asListWhitelist, @Nullable String[] asListBlacklist) throws IllegalStateException Create a text based on the given question.Neither sources will be given nor white-/blacklists used.- Parameters:
sQuestionOrTopic
-sTargetLanguage
-bIncludeSources
-asListWhitelist
-asListBlacklist
-- Returns:
- Throws:
IllegalStateException
-
extendText
This service inserts text to existing text based on the given context. The text will be inserted somewhere in the existing text.- Returns:
-
spinText
Rephrase a given text- Parameters:
nVersion
- Version 1-3- Returns:
-
generateTitle
Generate a title from a given text- Returns:
-
changeFormality
Change the formality of a given text- Returns:
-
continueText
Continue given text- Returns:
-
createShortSummary
Create a short summary of a given text- Returns:
-
generateTweet
Create tweet from a given text- Returns:
-
generateLinkedIn
Create Linkedin post from a given text- Returns:
-
generateMetadescription
Create meta description from a given text.- Parameters:
bAddAlternatives
- Add alternative descriptions to the result list that will be created - if available, these will be added to the result list. The first list entry will always be the preferred meta description.- Returns:
-
generateKeywords
Create Keywords from a given text- Returns:
-
generateTextFromProductData
Create texts from structured product data and descriptions, which can be used as marketing texts or descriptive texts on a website or in other materials.- Returns:
-
generateImageCaption
Create captions- Returns:
-
getStatusInformation
Get client status information- Returns:
-
optimize
Get optimize operations- Returns:
-