I am trying to write a code in which we have to find all the synonyms of the word. The word has to be written in an input type of a form and on submit lists all the synonyms.
To do that, you would need a thesaurus. The best bet is to use an API to retrieve that somehow. For instance, you could bind the form's submit
event to a function which fetches data from the Big Huge Thesaurus and formats that data back into the page.
From your question i understand that you need to display synonyms for a word. for that you need to hit a Dictionary API.
So can you try below link
https://www.wordsapi.com/mashape/words/searchWord?when=2018-02-08T04:12:05.603Z&encrypted=8cfdb282e722919bea9907bfeb58bfbbaeb0280936ff94b8
in place of searchWord you need to put your word.
Then it will return a JSON with meaning and synonyms of that word.
You can refer this link also.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.