Search code examples
pythonpython-3.xdictionarylibraries

English dictionary library in Python3


I need a library in Python 3 to define terms (vocabulary words), building a English dictionary. Input a term and the output will be the definition of this term.


Solution

  • Have you tried PyDictionary?

    from PyDictionary import PyDictionary
    
    dictionary=PyDictionary("dog","cat","tree")
    print(dictionary.printMeanings()) #This prints the definitions
    

    https://pypi.org/project/PyDictionary/