correctSpelling(prompt, modelopt, regionopt) → {string}
Corrects spelling mistakes in the prompt.
The region can be specified (e.g. Great Britain
) to handle differences in spelling and dialect.
Parameters:
Name |
Type |
Attributes |
Description |
prompt |
string |
|
The text containing possible spelling mistakes.
|
model |
string |
<optional> |
The ID of the model to use. Uses the default if not specified.
|
region |
string |
<optional> |
Optional locale for regional spelling.
|
Returns:
string
The text with any spelling mistakes corrected.
Example:
connectors.verjio.openai.correctSpelling(
'Teh sun had been out all day and the air condishner was broken. I was way to hot.',
'USA'
);
simplify(prompt, modelopt) → {string}
Simplifies the prompt to both shorten the length and select easier to understand words. Useful for increasing speed of comprehension and for simplifying complex, verbose passages of text.
Parameters:
Name |
Type |
Attributes |
Description |
prompt |
string |
|
The text to simplify.
|
model |
string |
<optional> |
The ID of the model to use. Uses the default if not specified.
|
Returns:
string
The simplified text.
Example:
connectors.verjio.openai.simplify('Penguins are natives of the antartic, otherwise known as the southern ice caps.');