Check if a word exists or not in English
npm install word-exists
npm install word-exists --save
`
or
`
yarn add word-exists
`
Usage
Simply pass in a string as a parameter and a Boolean will be output. Hyphenated compound words aren't counted as words.
`js
const wordExists = require('wordExists');wordExists('word');
//true
wordExists('notaword');
//false
`
Example Values
Word | Output
--- | ---
'hello' | true
'olleh' | false
'tic-tac-toe' | false
9 | TypeError`For more examples, see the tests.