This repo is not an actively-maintained mirror for Webster's English dictionary, it is for a JSON parsing tool for the dictionary data itself. Although the repo does include a copy of Webster's English dictionary, as noted below it is the 2009 version provided by the Gutenberg project and has known errors and omissions. Please visit the Gutenberg Website if you wish to find the latest available version of the dictionary file.
This repository contains Webster's Unabridged English Dictionary (from the Gutenberg Project, compiled August 22, 2009) in several formats:
Format | File |
---|---|
Original dictionary text file | WebstersEnglishDictionary.txt |
JSON file (compact, reduced whitespace) | dictionary_compact.json |
JSON file (includes linebreaks, slightly more readable) | dictionary.json |
JSON file as array of 26 dictionaries (A-Z) | dictionary_alpha_arrays.json |
It aims to improve upon the output of similar projects such as adambom/dictionary, and also provide a parsing utility written in Swift, which converts the original dictionary definitions into Swift objects which are then serialized using JSONSerialization
.
DictionaryServices
framework. The files here are intended for projects that wish to make direct use of the standard English dictionary outside of such frameworksExample: ./WebstersEnglishDictionary WebstersEnglishDictionary.txt ~/Documents/dictionaryAsJSON.json
dictionary.json
A single object of all words and definitions:
{
"anopheles" : "A genus of mosquitoes which are secondary hosts of the malaria parasites, and whose bite is the usual, if not the only, means of infecting human beings with malaria. Several species are found in the United States. They may be distinguished from the ordinary mosquitoes of the genus Culex by the long slender palpi, nearly equaling the beak in length, while those of the female Culex are very short. They also assume different positions when resting, Culex usually holding the body parallel to the surface on which it rests and keeping the head and beak bent at an angle, while Anopheles holds the body at an angle with the surface and the head and beak in line with it. Unless they become themselves infected by previously biting a subject affected with malaria, the insects cannot transmit the disease.",
"uniclinal" : "See Nonoclinal.",
"sarong" : "A sort of petticoat worn by both sexes in Java and the Malay Archipelago. Balfour (Cyc. of India)",
dictionary_alpha_arrays.json
An array of 26 objects, for each leading letter:
[
{
"anarchic" : "Pertaining to anarchy; without rule or government; in political confusion; tending to produce anarchy; as, anarchic despotism; anarchical opinions.",
"anopheles" : "A genus of mosquitoes which are secondary hosts of the malaria parasites, and whose bite is the usual, if not the only, means of infecting human beings with malaria. Several species are found in the United States. They may be distinguished from the ordinary mosquitoes of the genus Culex by the long slender palpi, nearly equaling the beak in length, while those of the female Culex are very short. They also assume different positions when resting, Culex usually holding the body parallel to the surface on which it rests and keeping the head and beak bent at an angle, while Anopheles holds the body at an angle with the surface and the head and beak in line with it. Unless they become themselves infected by previously biting a subject affected with malaria, the insects cannot transmit the disease.",
"anti-federalist" : "One of party opposed to a federative government; -- applied particularly to the party which opposed the adoption of the constitution of the United States. Pickering.",
dictionary_compact.json
Same format as dictionary.json
, with extraneous whitespace removed:
{"anopheles":"A genus of mosquitoes which are secondary hosts of the malaria parasites, and whose bite is the usual, if not the only, means of infecting human beings with malaria. Several species are found in the United States. They may be distinguished from the ordinary mosquitoes of the genus Culex by the long slender palpi, nearly equaling the beak in length, while those of the female Culex are very short. They also assume different positions when resting, Culex usually holding the body parallel to the surface on which it rests and keeping the head and beak bent at an angle, while Anopheles holds the body at an angle with the surface and the head and beak in line with it. Unless they become themselves infected by previously biting a subject affected with malaria, the insects cannot transmit the disease.","uniclinal":"See Nonoclinal.","sarong":"A sort of petticoat worn by both sexes in Java and the Malay Archipelago. Balfour (Cyc. of India)",
Matt Reagan - Website: http://sound-of-silence.com/ - Twitter: @hmblebee
The original dictionary text file is covered by The Gutenberg Project's licensing, please see the file headers for more details. The Swift parsing tool and example output files in this repository are free and distributed under the GNU General Public License, Version 2.