Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

English JSON Dictionary with word, word type and definition

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 :)

like image 827
python guy Avatar asked Jan 20 '17 16:01

python guy


People also ask

Can JSON have a dictionary?

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.

How is a dictionary represented in JSON?

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 { } .

How do I store a dictionary in JSON?

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.

How is JSON different from dictionary?

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.


2 Answers

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...}

like image 158
Tushar Avatar answered Oct 04 '22 02:10

Tushar


This might help you

https://www.wordsapi.com/

You can use it for free for 2500 request/day as mentioned in their website

like image 39
rutvik mehta Avatar answered Oct 04 '22 02:10

rutvik mehta