Home > harper.js > Linter > isolateEnglish

Linter.isolateEnglish() method

Determine which parts of a given string are intended to be English, returning those bits. The algorithm can be described as “proof of concept” and as such does not work terribly well.

Signature:

isolateEnglish(text: string): Promise<string>;

Parameters

Parameter

Type

Description

text

string

Returns:

Promise<string>