Mika Scraper / humanizeText
Function: humanizeText()
humanizeText(
text,level,settings):Promise<HumanizeResult>
Defined in: src/humanizer/humanizer.ts:74
Rewrites AI-generated text to produce a more human-like tone using the UnaiMyText API.
Parameters
text
string
The input text that requires humanization. This parameter is required.
level
RewriteLevel
Specifies the desired rewriting level. Possible values include:
'standard': Basic humanization.'enhanced': More refined humanization.'aggressive': Strong humanization with significant modifications.
The default value is'enhanced'.
settings
RewriteSettings
An optional object containing custom settings to modify the default rewriting behavior. The default settings are used if this parameter is omitted.
Returns
Promise<HumanizeResult>
A promise that resolves to a structured object indicating the success or failure of the operation along with the rewritten content.
Example
import { humanizeText } from 'mika-scraper';
async function example() {
const result = await humanizeText("AI-generated text here.", "aggressive", { tone: "friendly" });
console.log(result);
}
example();
Last updated on