geekpradd / PyDictionary

PyDictionary is a Dictionary Module for Python 2/3 to get meanings, translations, synonyms and antonyms of words
https://pypi.python.org/pypi/PyDictionary
MIT License
274 stars 65 forks source link

Meaning API giving incorrect definition string for certain words #38

Closed zionsteiner closed 3 years ago

zionsteiner commented 3 years ago

The following program results in an incomplete definition for the word 'calumnious.' Defamatory, a synonym of calumnious, has the same issue.

>>> from PyDictionary import PyDictionary
>>> dictionary = PyDictionary()
>>> dictionary.meaning('calumnious')
{'Adjective': ['(used of statements']}
>>> dictionary.meaning('defamatory')
{'Adjective': ['(used of statements']}
zionsteiner commented 3 years ago

One definition for the word 'pallid', also beginning with a parenthesis, is also incomplete. Maybe an issue with the API response parsing logic?

>>> dictionary.meaning('pallid')
{'Adjective': ['abnormally deficient in color as suggesting physical or emotional distress', '(of light', 'or wan', 'lacking in vitality or interest or effectiveness']}
b1tninja commented 3 years ago

https://github.com/geekpradd/PyDictionary/pull/40 fixed here