Professional Documents
Culture Documents
org/pypi/Vocabulary
Vocabulary 1.0.4
Module to get meaning, synonym, antonym, part_of_speech, usage_example, pronunciation and hyphenation for a given word Download
Vocabulary-1.0.4.tar.gz
1 Vocabulary
pypi v1.0.4 license MIT python 2.7, 3.4 build unknown chat on gitter
Contents
1 Vocabulary
1.1 What is it
1.2 Features
1.3 Why should I use Vocabulary
1.3.1 Wordnet Comparison
1.4 Installation
1.4.1 Option 1: installing through pip (Suggested way)
1.4.2 Option 2: Installing from source (Only if you must)
1.4.3 Demo
1.5 Documentation
1.6 Contributing
1.6.1 Discuss
1.6.2 Contributers
1.7 Changelog
1.8 Bugs
1.9 Similar
1.9.1 Known Issues
1.10 License :
1.1 What is it
[back to top]
Meaning
Synonyms
Antonyms
Part of speech : whether the word is a noun, interjection or an adverb et el
Translate : Translate a phrase from a source language to the desired language.
Usage example : a quick example on how to use the word in a sentence
Pronunciation
Hyphenation : shows the particular stress points(if any)
1.2 Features
[back to top]
[back to top]
Wordnet is a great resource. No doubt about it! So why should you use Vocabulary when we already have Wordnet out there?
[back to top]
Let’s say you want to find out the synonyms for the word car.
Using Wordnet
1 of 4 2018-01-31, 2:12 PM
Vocabulary 1.0.4 : Python Package Index https://pypi.python.org/pypi/Vocabulary
So there you go. You get the data in an easy JSON format.
1.4 Installation
[back to top]
Note: If you get command not found then $ sudo apt-get install python-pip should fix that
1.4.3 Demo
[back to top]
2 of 4 2018-01-31, 2:12 PM
Vocabulary 1.0.4 : Python Package Index https://pypi.python.org/pypi/Vocabulary
1.5 Documentation
[back to top]
For a detailed usage example, refer the documentation at Read the Docs
1.6 Contributing
[back to top]
1.6.1 Discuss
[back to top]
Join us on our Gitter channel if you want to chat or if you have any questions in your mind.
1.6.2 Contributers
[back to top]
Huge shoutout to @tenorz007 for adding the ability to return the API response as different data structures.
Thanks to Anton Relin for adding the translate module.
And a big shout out to all the contributers for their contributions
1.7 Changelog
[back to top]
1.8 Bugs
[back to top]
1.9 Similar
[back to top]
[back to top]
3 of 4 2018-01-31, 2:12 PM
Vocabulary 1.0.4 : Python Package Index https://pypi.python.org/pypi/Vocabulary
>>> json.dumps(vb.pronunciation("hippopotamus"))
'[{"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}]'
>>>
You are being returned a list object instead of a JSON object. When returning the latter, there are some unicode issues. A fix for this will be released soon.
1.10 License :
[back to top]
4 of 4 2018-01-31, 2:12 PM