Module Misspelling

Provides predicates for identifying misspellings in JavaScript code.

Import path

Expressions.Misspelling

Imports

TypoDatabase
javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

idPart

Holds if part is an identifier part of id starting at offset.

misspelledVariableName

Holds if gva is a global variable access contained in the scope of variable declaration lvd, such that gva is a misspelling of lvd or vice versa.

normalized_typos

Holds if wrong is a misspelling of right that is not white-listed, where wrongstart and wrongend are the first and last characters, respectively, of wrong, and similarly for rightstart and rightend.

whitelisted

Holds if wrong is a misspelling of right that might be intentional or is not interesting enough to flag.