Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
whitedark9 committed Mar 23, 2024
0 parents commit aefac1e
Show file tree
Hide file tree
Showing 64 changed files with 3,806,168 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules

/dist
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/node_modules

/dist

/json
55 changes: 55 additions & 0 deletions README.md
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/)
Loading

0 comments on commit aefac1e

Please sign in to comment.