https://github.com/FinNLP/synonyms
📦 JavaScript library to return the synonyms of the word ~ 27779 words
https://github.com/FinNLP/synonyms
Last synced: 10 months ago
JSON representation
📦 JavaScript library to return the synonyms of the word ~ 27779 words
- Host: GitHub
- URL: https://github.com/FinNLP/synonyms
- Owner: FinNLP
- License: mit
- Created: 2017-01-01T20:42:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-10-17T19:52:48.000Z (over 3 years ago)
- Last Synced: 2024-08-11T00:47:46.236Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 627 KB
- Stars: 64
- Watchers: 3
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Synonyms
JavaScript library to return the synonyms of the word Edit - 27779 words.
## Installation & Usage
`npm install synonyms --save`
```javascript
var synonyms = require("synonyms");
synonyms("screen");
// returns an object like this:
{
n:['screen','cover','covert','concealment'],
v:['screen','sieve','sort','test']
}
synonyms("screen","v");
// returns an array like this:
['screen','sieve','sort','test']
synonyms.dictionary
// returns the whole dictionary
```
## Size
This library has 27779 words in its 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