Skip to content

whitedark9/wordnet-dictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

If you want only database in JSON format, it is inside data directory.

Installation

npm install @whitedark/wordnet-dictionary

Usagew

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

About

English-English Dictionary with definition, part of speech, examples, synonyms which are return in JSON format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published