geekpradd / PyDictionary

PyDictionary is a Dictionary Module for Python 2/3 to get meanings, translations, synonyms and antonyms of words

Home Page:https://pypi.python.org/pypi/PyDictionary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meaning API giving incorrect definition string for certain words

zionsteiner opened this issue · comments

commented

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']}
commented

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']}

#40 fixed here