1.0.0 • Published 3 years ago

blankt-synonyms v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

blankt-synonyms

JavaScript library to return the synonyms of the word Edit - 27779 words.

Installation & Usage

npm install synonyms --save

var synonyms = require("synonyms");

synonyms("water");
// returns an object like this:
[ 'ocean', 'sea', 'lake', 'water', 'irrigate', 'h2o' ]


synonyms.dictionary
// returns the whole dictionary

Size

This library has 27779+ words in it's dictionary.

Expanding the dictionary must be through the file src.json then run node build to build a new dictionary.

The dictionary src.json file is around 1.3MB while the minified and built version (dictionary.js) is less than 0.7MB.

License

The MIT License

1.0.0

3 years ago