DICTIONARY DEFINITIONS DATA
Data scraped with spiders from dictionary.com on 2018-03
PACKAGE 📦
INSTALLnpm i -S dictionary-definitions-data
USAGE
Zip files containing the data get uncompressed during postinstall.
WORDS INDEX
[ { url: 'http://www.dictionary.com/browse/-a--game',
text: '\'a\' game',
letter: '0' },
{ url: 'http://www.dictionary.com/browse/-appen',
text: '\'appen',
letter: '0' },
{ url: 'http://www.dictionary.com/browse/-burb',
text: '\'burb',
letter: '0' },
{ url: 'http://www.dictionary.com/browse/-burbs',
text: '\'burbs',
letter: '0' },
{ url: 'http://www.dictionary.com/browse/-cause',
text: '\'cause',
letter: '0' },
{ url: 'http://www.dictionary.com/browse/-cept',
text: '\'cept',
letter: '0' },
{ url: 'http://www.dictionary.com/browse/-chine',
text: '\'chine',
letter: '0' },
{ url: 'http://www.dictionary.com/browse/-d',
text: '\'d',
letter: '0' },
...
LOAD SYNC
var data = ;console
'http://www.dictionary.com/list/a/1'
LOAD ASYNC
;
'http://www.dictionary.com/browse/a-and-b'
FIND SYNC EXAMPLE
var _ = ;var data = ; { return _;};
{ letter: 'b',
url: 'http://www.dictionary.com/browse/backlogged',
text: 'backlogged' }
FIND ASYNC EXAMPLE
var _ = ;var load = load; { ;};
{ definition:
[ { content: 'a website containing a writer\'s or group of writers\' own experiences, observations, opinions, etc., and often having images and links to other websites.',
number: '1.',
words: [Object] },
{ content: 'a single entry or post on such a website:',
number: '2.',
words: [Object],
example: 'She regularly contributes a blog to the magazine\'s website.' } ],
predicate: 'noun' }
RELATED PROJECTS
WORDS COUNT
$ for i in a b c d e f g h i j k l m n o p q r s t u v w x y z 0 index; do wc -l $i.json; done
13163 a.json
12591 b.json
18392 c.json
9783 d.json
7009 e.json
8045 f.json
7533 g.json
8930 h.json
6677 i.json
2072 j.json
2926 k.json
7414 l.json
11660 m.json
6205 n.json
5469 o.json
16380 p.json
995 q.json
8384 r.json
21310 s.json
10276 t.json
4715 u.json
3090 v.json
5275 w.json
250 x.json
807 y.json
708 z.json
745 0.json
246016 index.json
Not sure if it's complete collection of words and definitions or not, but this was before dictionary.com started using React.js and so the spiders are in need of an update before running again to get a fresh dataset. Next release will included an updated dataset! The index supposedly has 45211 more words than the data files do. Hopefully next release will fix issues with inconsistencies.
JSONLINES FORMAT
Look at test.js to find out more about the object structure.
"letter" - str - word begins with this letter
"url" - str - word dictionary.com url
"datetime" - str - datetime when data was downloaded
"audio_urls" - arr - array with audio mp3/ogg url or empty array
"page_number" - str - the pagenumber the word was found on
"page_url" - str - page url to word on dictionary.com
"key" - str - word key
"data" - arr
"source-luna" - obj
"sup" - str
"text" - str
"variants" - str
"source" - arr
"syllable" - str
"audio_urls" - arr
"pronounce" - obj
"spell" - str
"ipa" - str
"definitions" - arr
"predicate" - str
"definition" - obj
"number" - str
"content" - str
"content_url" - str
"words" - obj
"bold" - str
"italic" - str
"all_words" - arr
"example" - str
"sub_list" - arr
"more" - arr
"origin" - obj
"header" - str
"content" - str
"related_forms" - obj
"header" - str
"content" - arr
"syllables" - arr
"synonyms" - obj
"header" - str
"content" - str
"synonym_study" - obj
"header" - str
"content" - str
"usage_notes" - obj
"header" - str
"content" - str
"source-example-sentences" - obj
"web_examples" - arr
"text" - str
"credit_url" - str
"credit_name" - str
SAMPLE WORD - backlogged
TESTS
Accepted param --verbose
or -v
to get detailed output of data being tested.
npm test -- --verbose
# or
npm run test
# or
node ./test.js -v
# or
./test.js
Should say: All tests passed!
LICENSE
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to http://unlicense.org