Home > harper.js > Linter > isLikelyEnglish

Linter.isLikelyEnglish() method

Determine if the provided text is likely to be intended to be English. The algorithm can be described as “proof of concept” and as such does not work terribly well.

Signature:

isLikelyEnglish(text: string): Promise<boolean>;

Parameters

Parameter

Type

Description

text

string

Returns:

Promise<boolean>