NdYAG / mw-dict

Node.js wrapper of Merriam Webster Dictionary & Thesaurus Developer API
MIT License
10 stars 1 forks source link

Support Thesaurus #3

Closed alex-taxiera closed 6 years ago

alex-taxiera commented 6 years ago

Any plans to add "Merriam-Webster's Collegiate® Thesaurus" functionality?

NdYAG commented 6 years ago

Hi @alex-taxiera it could be supported but properly later I'll mention you once it's implemented

NdYAG commented 6 years ago

Hi @alex-taxiera https://github.com/NdYAG/mw-dict/commit/f5cc4d482b46dbe662c3d17b7c71471b9990472b

Collegiate® Thesaurus is now supported, use case is basically same as Dictionary,

import { CollegiateThesaurus } from 'mw-dict'
const thesaurus = CollegiateThesaurus(key)
thesaurus.lookup(word)

the shape of the result is the same, you can get synonyms & antonyms from sense.

NdYAG commented 6 years ago

@alex-taxiera also please update to version 3.0.0 If there are any problems, please let me know 😎

NdYAG commented 6 years ago

Hey @alex-taxiera I'll close this issue, if you have any question about the new version, feel free to re-open it.