{ "info": { "author": "Tasdik Rahman", "author_email": "tasdik95@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": ".. figure:: http://i.imgur.com/ddxYie4.jpg\n :alt:\n\nVocabulary\n==========\n\n|PyPI version| |License| |Python Versions| |Build Status| |Requirements Status| |Gitter chat|\n\nA dictionary magician in the form of a module!\n\n:Author: Tasdik Rahman\n\n|Paypal badge|\n\n|Instamojo|\n\nSome of my projects are also on `Gratipay `__\n\n.. contents::\n :backlinks: none\n\n.. sectnum::\n\nWhat is it\n----------\n`[back to top] `__\n\nFor a given word, using ``Vocabulary``, you can get its\n\n- **Meaning**\n- **Synonyms**\n- **Antonyms**\n- **Part of speech** : whether the word is a ``noun``, ``interjection``\n or an ``adverb`` et el\n- **Translate** : Translate a phrase from a source language to the desired language.\n- **Usage example** : a quick example on how to use the word in a\n sentence\n- **Pronunciation**\n- **Hyphenation** : shows the particular stress points(if any)\n\nFeatures\n--------\n`[back to top] `__\n\n- Written in uncomplicated ``Python``\n- Returns ``JSON`` objects, ``PYTHON`` dictionaries and lists\n- Minimum dependencies ( just uses `requests `__ module )\n- Easy to\n `install `__\n- A decent substitute to ``Wordnet``\\ (well almost!) Wanna see? Here is\n a `small comparison <#wordnet-comparison>`__\n- Stupidly `easy to\n use `__\n- Fast!\n- Supports\n\n - both, ``python2.*`` and ``python3.*``\n - Works on Mac, Linux and Windows\n\nWhy should I use Vocabulary\n---------------------------\n`[back to top] `__\n\n``Wordnet`` is a great resource. No doubt about it! So why should you\nuse ``Vocabulary`` when we already have ``Wordnet`` out there?\n\nWordnet Comparison\n~~~~~~~~~~~~~~~~~~\n`[back to top] `__\n\nLet's say you want to find out the synonyms for the word ``car``.\n\n- Using ``Wordnet``\n\n.. code:: python\n\n >>> from nltk.corpus import wordnet\n >>> syns = wordnet.synsets('car')\n >>> syns[0].lemmas[0].name\n 'car'\n >>> [s.lemmas[0].name for s in syns]\n ['car', 'car', 'car', 'car', 'cable_car']\n\n >>> [l.name for s in syns for l in s.lemmas]\n ['car', 'auto', 'automobile', 'machine', 'motorcar', 'car', 'railcar', 'railway_car', 'railroad_car', 'car', 'gondola', 'car', 'elevator_car', 'cable_car', 'car']\n\n- Doing the same using ``Vocabulary``\n\n.. code:: python\n\n >>> from vocabulary.vocabulary import Vocabulary as vb\n >>> vb.synonym(\"car\")\n '[{\n \"seq\": 0,\n \"text\": \"automobile\"\n }, {\n \"seq\": 1,\n \"text\": \"cart\"\n }, {\n \"seq\": 2,\n \"text\": \"automotive\"\n }, {\n \"seq\": 3,\n \"text\": \"wagon\"\n }, {\n \"seq\": 4,\n \"text\": \"motor\"\n }]'\n >>> ## load the json data\n >>> car_synonyms = json.loads(vb.synonym(\"car\"))\n >>> type(car_synonyms)\n \n >>>\n\nSo there you go. You get the data in an easy ``JSON`` format.\n\nYou can go on comparing for the other methods too.\n\nInstallation\n------------\n`[back to top] `__\n\nOption 1: installing through `pip `__ (Suggested way)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n`pypi package link `__\n\n``$ pip install vocabulary``\n\nIf you are behind a proxy\n\n``$ pip --proxy [username:password@]domain_name:port install vocabulary``\n\n**Note:** If you get ``command not found`` then\n``$ sudo apt-get install python-pip`` should fix that\n\nOption 2: Installing from source (Only if you must)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: bash\n\n $ git clone https://github.com/prodicus/vocabulary.git\n $ cd vocabulary/\n $ pip install -r requirements.txt\n $ python setup.py install\n\n\nDemo\n~~~~\n`[back to top] `__\n\n.. figure:: https://raw.githubusercontent.com/prodicus/vocabulary/master/assets/usage.gif\n :alt: Demo link\n\n.. figure:: https://raw.githubusercontent.com/prodicus/vocabulary/master/assets/usage-format.gif\n :alt: Demo link\n\nDocumentation\n-------------\n`[back to top] `__\n\nFor a detailed usage example, refer the `documentation at Read the Docs `__\n\nContributing\n------------\n`[back to top] `__\n\nPlease refer `Contributing page for details `__\n\n\nDiscuss\n~~~~~~~\n`[back to top] `__\n\nJoin us on our `Gitter channel `__\nif you want to chat or if you have any questions in your mind.\n\nContributers\n~~~~~~~~~~~~\n`[back to top] `__\n\n- Huge shoutout to `@tenorz007 `__ for adding the ability to return the API response as different data structures.\n- Thanks to `Anton Relin `__ for adding the `translate `__ module.\n- And a big shout out to all the `contributers `__ for their contributions\n\nChangelog\n---------\n`[back to top] `__\n\nPlease refer `Changelog page for details `__\n\nBugs\n----\n`[back to top] `__\n\nPlease report the bugs at the `issue\ntracker `__\n\nSimilar\n-------\n`[back to top] `__\n\nOther similar software inspired by `Vocabulary `__\n\n- `Vocabulary `__ : The ``Go lang`` port of this ``python`` counterpart\n- `woordy `__ : Gives back word translations\n- `guile-words `__ : The ``Guile Scheme`` port of this ``python`` counterpart\n\nKnown Issues\n~~~~~~~~~~~~\n`[back to top] `__\n\n- In **python2**, when using the method **Vocabulary.synonym()** or **Vocabulary.pronunciation()**\n\n.. code:: python\n\n >>> vb.synonym(\"car\")\n [{\n \"seq\": 0,\n \"text\": \"automotive\"\n }, {\n \"seq\": 1,\n \"text\": \"motor\"\n }, {\n \"seq\": 2,\n \"text\": \"wagon\"\n }, {\n \"seq\": 3,\n \"text\": \"cart\"\n }, {\n \"seq\": 4,\n \"text\": \"automobile\"\n }]\n >>> type(vb.pronunciation(\"hippopotamus\"))\n \n >>> json.dumps(vb.pronunciation(\"hippopotamus\"))\n '[{\"raw\": \"(h\\\\u012dp\\\\u02cc\\\\u0259-p\\\\u014ft\\\\u02c8\\\\u0259-m\\\\u0259s)\", \"rawType\": \"ahd-legacy\", \"seq\": 0}, {\"raw\": \"HH IH2 P AH0 P AA1 T AH0 M AH0 S\", \"rawType\": \"arpabet\", \"seq\": 1}]'\n >>>\n\nYou are being returned a ``list`` object instead of a ``JSON`` object.\nWhen returning the latter, there are some ``unicode`` issues. A fix for\nthis will be released soon.\n\nI may suggest `python-ftfy `__ which can help you in this matter.\n\n\nLicense :\n---------\n`[back to top] `__\n\nBuilt with \u2665 by `Tasdik Rahman `__ under the `MIT License `__ \u00a9\n\nYou can find a copy of the License at http://prodicus.mit-license.org/\n\n.. |PyPI version| image:: https://img.shields.io/pypi/v/Vocabulary.svg\n :target: https://pypi.python.org/pypi/Vocabulary/1.0.2\n.. |License| image:: https://img.shields.io/pypi/l/vocabulary.svg\n :target: https://github.com/prodicus/vocabulary/blob/master/LICENSE\n.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/Vocabulary.svg\n.. |Build Status| image:: https://travis-ci.org/prodicus/vocabulary.svg?branch=master\n :target: https://travis-ci.org/prodicus/vocabulary\n.. |Gitter chat| image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg\n :alt: Join the chat at https://gitter.im/prodicus/vocabulary\n :target: https://gitter.im/prodicus/vocabulary?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n.. |Requirements Status| image:: https://requires.io/github/prodicus/vocabulary/requirements.svg?branch=master\n :target: https://requires.io/github/prodicus/vocabulary/requirements/?branch=master\n.. |Paypal badge| image:: https://tuxtricks.files.wordpress.com/2016/12/donate.png\n :target: https://www.paypal.me/tasdikrahman\n.. |Instamojo| image:: https://www.instamojo.com/blog/wp-content/uploads/2017/01/instamojo-91.png\n :target: https://www.instamojo.com/@tasdikrahman", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/prodicus/vocabulary/tarball/1.0.4", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/prodicus/vocabulary", "keywords": "Dictionary,Vocabulary,simple dictionary,pydict,dictionary module", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "Vocabulary", "package_url": "https://pypi.org/project/Vocabulary/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Vocabulary/", "project_urls": { "Download": "https://github.com/prodicus/vocabulary/tarball/1.0.4", "Homepage": "https://github.com/prodicus/vocabulary" }, "release_url": "https://pypi.org/project/Vocabulary/1.0.4/", "requires_dist": null, "requires_python": null, "summary": "Module to get meaning, synonym, antonym, part_of_speech, usage_example, pronunciation and hyphenation for a given word", "version": "1.0.4" }, "last_serial": 2873162, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2cd8f4af08fc43555468fa37be92136d", "sha256": "a6fc5d621a6b379afaa1a1c42a61474a3e6cadc019854ba52ceac1f27daab19b" }, "downloads": -1, "filename": "Vocabulary-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2cd8f4af08fc43555468fa37be92136d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8469, "upload_time": "2015-11-30T20:50:09", "url": "https://files.pythonhosted.org/packages/cb/2b/fa048bfc305d17c430da0f9f13ac382e3495e6ba1506e7be44c99fd6b84f/Vocabulary-0.0.1.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "6db792aae8d58d02c69daded378c28b0", "sha256": "915e2dfcb01a4fd16f4d6ef9cfad4ecbe11d210b1063042f590bf99735e5ddf9" }, "downloads": -1, "filename": "Vocabulary-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6db792aae8d58d02c69daded378c28b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8824, "upload_time": "2015-11-30T22:12:04", "url": "https://files.pythonhosted.org/packages/46/fe/5d8b73628532a4f5b6603b14eb20eecd36c990da130f33172d9f043e5df1/Vocabulary-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "6d8ccd36abde2ea314bae48ddc5fefd6", "sha256": "50271068e51475e3c32c4e0d5496185ecea5d7cdfadfaf000da831d502e38237" }, "downloads": -1, "filename": "Vocabulary-0.0.4.tar.gz", "has_sig": false, "md5_digest": "6d8ccd36abde2ea314bae48ddc5fefd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9751, "upload_time": "2015-12-02T05:55:22", "url": "https://files.pythonhosted.org/packages/42/5d/ea0d838100560eb4aaa50e57478dce1e08c419bb92b3918d87654a761347/Vocabulary-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "7b9f5f50e5997f648b4443c0b4059617", "sha256": "c7e28aac97eb96329008d5904ffbba6617811cf870a40bd0d151244952c0ca54" }, "downloads": -1, "filename": "Vocabulary-0.0.5.tar.gz", "has_sig": false, "md5_digest": "7b9f5f50e5997f648b4443c0b4059617", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11500, "upload_time": "2015-12-07T03:06:04", "url": "https://files.pythonhosted.org/packages/c6/b4/0ed2ac37f660faba0768a8fa7dace6b7d0297f5343b7e70c9ec725d5b2ee/Vocabulary-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "f9eac286f7b74e2e9590ce0ba6a1f973", "sha256": "3203e0a8e493a2918e360e6e937274ebb65728b5f3fd23b4cd1fdaf13e5572be" }, "downloads": -1, "filename": "Vocabulary-0.0.6.tar.gz", "has_sig": false, "md5_digest": "f9eac286f7b74e2e9590ce0ba6a1f973", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14083, "upload_time": "2017-04-01T05:53:43", "url": "https://files.pythonhosted.org/packages/e6/6f/67c216902e115f3cae27a2c32bfd1e6bf97016b85b13c685037912943461/Vocabulary-0.0.6.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "d06043b2f6dd3bbc066f7c1ee8cafa03", "sha256": "97f1be088adacdcacb60991ab6e075e08de14d2819862886b75fceab1af9c288" }, "downloads": -1, "filename": "Vocabulary-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d06043b2f6dd3bbc066f7c1ee8cafa03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14257, "upload_time": "2017-04-06T05:48:38", "url": "https://files.pythonhosted.org/packages/3c/3d/3336e4371c54203d43b4aa58237cc52899b671e412f1ba452ca98401d2f5/Vocabulary-1.0.0.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "a5a255d6ecd4c8d0a98b9dfea80a66b5", "sha256": "03489b1f65d315d24442f6c2ee5004d6737d79c506c9fd88591c915f90d54910" }, "downloads": -1, "filename": "Vocabulary-1.0.2.tar.gz", "has_sig": false, "md5_digest": "a5a255d6ecd4c8d0a98b9dfea80a66b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14268, "upload_time": "2017-04-06T06:12:34", "url": "https://files.pythonhosted.org/packages/58/9e/75bce45d37357f0c1d42a4694304bc4cb382eedd8f92c3694a3aa988eaef/Vocabulary-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "8356694906da09abcf97376c113b7811", "sha256": "2527d757b23e9288253341b00b59ab20a798ffbdd3dbc0b1193fd3df0d37e6cd" }, "downloads": -1, "filename": "Vocabulary-1.0.3.tar.gz", "has_sig": false, "md5_digest": "8356694906da09abcf97376c113b7811", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14273, "upload_time": "2017-05-14T08:33:04", "url": "https://files.pythonhosted.org/packages/51/1b/0a04eb5cdcf07c4d0c42ba5650f600f41a7d68f65e9cfdbac8ca6f24684d/Vocabulary-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "2ee6480e2becc52a01d4f01d78f42ad8", "sha256": "d33e127069b9f12fd3172dcf570528ae2cc87dc987c15d56db329c87da17994a" }, "downloads": -1, "filename": "Vocabulary-1.0.4.tar.gz", "has_sig": false, "md5_digest": "2ee6480e2becc52a01d4f01d78f42ad8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14318, "upload_time": "2017-05-14T08:51:04", "url": "https://files.pythonhosted.org/packages/b8/5d/5b35b4ce851c9dadbbdb0020dcf71a3f8dbbf0676ee92d81da849b5888e0/Vocabulary-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2ee6480e2becc52a01d4f01d78f42ad8", "sha256": "d33e127069b9f12fd3172dcf570528ae2cc87dc987c15d56db329c87da17994a" }, "downloads": -1, "filename": "Vocabulary-1.0.4.tar.gz", "has_sig": false, "md5_digest": "2ee6480e2becc52a01d4f01d78f42ad8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14318, "upload_time": "2017-05-14T08:51:04", "url": "https://files.pythonhosted.org/packages/b8/5d/5b35b4ce851c9dadbbdb0020dcf71a3f8dbbf0676ee92d81da849b5888e0/Vocabulary-1.0.4.tar.gz" } ] }