
Security News
Python Adopts Standard Lock File Format for Reproducible Installs
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
@ccnokes/spellchecker
Advanced tools
Native bindings to NSSpellChecker or the Windows 8 Spell Check API, depending on your platform.
npm install @ccnokes/spellchecker
import { SpellChecker } from '@ccnokes/spellchecker'
Check if a word is misspelled.
word
- String word to check.
Returns true
if the word is misspelled, false
otherwise.
Get the corrections for a misspelled word.
word
- String word to get corrections for.
Returns a non-null but possibly empty array of string corrections.
Identify misspelled words in a corpus of text.
corpus
- String corpus of text to spellcheck.
Returns an Array containing {start, end}
objects that describe an index range within the original String that contains a misspelled word.
Asynchronously identify misspelled words.
corpus
- String corpus of text to spellcheck.
Returns a Promise that resolves with the Array described by checkSpelling()
.
Adds a word to the dictionary. When using Hunspell, this will not modify the .dic file; new words must be added each time the spellchecker is created. Use a custom dictionary file.
word
- String word to add.
Returns nothing.
Tells if your platform is supported. If it's not, you can use the API as normal, just nothing will actually work.
Returns boolean.
FAQs
Bindings to native spellchecker
The npm package @ccnokes/spellchecker receives a total of 8 weekly downloads. As such, @ccnokes/spellchecker popularity was classified as not popular.
We found that @ccnokes/spellchecker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.