Does anyone know of a JSON formatted English dictionary that has (The word, the definition and the word type eg. noun/adjective/verb/adverb)
This kind of format:
[
{"Word" : "Chair", "Definition" : "A thing you sit on", "WordType", "Noun"},
{"Word" : "bla", "Definition" : "bla", "WordType" : "bla"}
]
Thanks for any help you can give me :)
JSON at its top-level is a dictionary of attribute/value pairs, or key/value pairs as we've talked about dictionaries in this class. The values are numbers, strings, other dictionaries, and lists.
JSON is a way of representing Arrays and Dictionaries of values ( String , Int , Float , Double ) as a text file. In a JSON file, Arrays are denoted by [ ] and dictionaries are denoted by { } .
You can save the Python dictionary into JSON files using a built-in module json. We need to use json. dump() method to do this. Use the indent parameter to prettyPrint your JSON data.
oranges comparison: JSON is a data format (a string), Python dictionary is a data structure (in-memory object). If you need to exchange data between different (perhaps even non-Python) processes then you could use JSON format to serialize your Python dictionary.
Frustrated from all other results, I created my own dictionary. It is available on dropbox
This is a highly compressed data.7z file, after extracting this file (use 7-zip file manager to extract), you will get a folder in which all the words are categorized in a .json file. The .json is contains words with their various meanings, types, synonyms and antonyms.
The quality of the dictionary is also very good as it is made using NLTK in Python. The dictinary contains more than 60000 words.
The dictionary is arranged in this format- {WORD: {'MEANINGS':{} , 'ANTONYMS':[...] , 'SYNONYMS':[...]}}
and the 'MEANINGS' dict is arranged as 'MEANINGS':{sense_num_1:[TYPE_1, MEANING_1, CONTEXT_1, EXAMPLES], sense_num_2:[TYPE_2, MEANING_2, CONTEXT_2, EXAMPLES] and so on...}
This might help you
https://www.wordsapi.com/
You can use it for free for 2500 request/day as mentioned in their website
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With