Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Misspelled words are not shown as such. #10

@cristianfraser

Description

@cristianfraser

Got it to work in the console and started trying random words, and I'm getting the wrong results.

checker = require('spellchecker')
checker.isMisspelled('helo')
> false
checker.isMisspelled('hel')
> false
checker.isMisspelled('hello')
> false
checker.isMisspelled('helasdfasdf')
> true

Cheking the en_US.dict file I can see those words don't exist, but both hel and helo are suffixes for words that do exist in the dictionary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions