-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit aefac1e
Showing
64 changed files
with
3,806,168 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/node_modules | ||
|
||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/node_modules | ||
|
||
/dist | ||
|
||
/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# wordnet-dictionary | ||
|
||
English-English Dictionary with definition, part of speech, examples, synonyms. Wordnet 3.0 database is used and return in JSON format. | ||
|
||
Total of 147306 words are included. | ||
|
||
## Installation | ||
|
||
```shell | ||
npm install wordnet-dictionary | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
import { | ||
search, | ||
searchAsync, | ||
listAllWords, | ||
listAllWordsAsync, | ||
isExist, | ||
isExistAsync, | ||
} from "wordnet-dictionary"; | ||
|
||
const word = search("hello"); | ||
|
||
// Async | ||
const word = await searchAsync("hello"); | ||
|
||
// Return value | ||
const hello = { | ||
word: "hello", | ||
definitions: [ | ||
{ | ||
meaning: "an expression of greeting", | ||
examples: ["every morning they exchanged polite hellos"], | ||
id: 6632511, | ||
partOfSpeech: "noun", | ||
synonyms: [ | ||
"hullo", | ||
"hi", | ||
"howdy", | ||
"how-do-you-do", | ||
"greeting", | ||
"salutation", | ||
"hello", | ||
], | ||
}, | ||
], | ||
}; | ||
``` | ||
|
||
## 3rd Party Licence | ||
|
||
[Princeton University's WordNet License](http://wordnet.princeton.edu/wordnet/license/) |
Oops, something went wrong.