Skip to content

📦 JavaScript library to return the synonyms of the word ~ 27779 words

License

Notifications You must be signed in to change notification settings

FinNLP/synonyms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synonyms

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

Installation & Usage

npm install synonyms --save

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

About

📦 JavaScript library to return the synonyms of the word ~ 27779 words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published