Lexico Dictionary
A module that scrapes lexico.com to get the meanings of almost any word plus audio and examples. The lexico website does not change very often so this module should be very stable for now.
Installation
npm install lexico-dictionary
Usage
var lexico = require("lexico-dictionary");
lexico
.search("great")
.then((res) => {
console.log(res);
})
.catch((err) => console.log(err));
Output:
{
"phonetic": "/ÉĄrÄt/",
"pos": "adjective",
"audio": "https://lex-audio.useremarkable.com/mp3/great_us_1.mp3",
"origin": "Old English grÄat âbigâ, of West Germanic origin",
"meanings": [
{
"value": "Of an extent, amount, or intensity considerably above the normal or average.",
"type": "n/a"
},
{ "value": "Very large and imposing.", "type": "informal" },
{
"value": "(of a city) including adjacent urban areas.",
"type": "informal"
},
{
"value": "Of ability, quality, or eminence considerably above the normal or average.",
"type": "informal"
},
{
"value": "A title denoting the most important person of the name.",
"type": "dated"
},
{ "value": "Very good or satisfactory; excellent.", "type": "n/a" },
{
"value": "(of a person) very skilled or capable in a particular area.",
"type": "n/a"
},
{
"value": "Used to indicate that someone or something particularly deserves a specified description.",
"type": "n/a"
},
{
"value": "Denoting the element of something that is the most important or the most worthy of consideration.",
"type": "n/a"
},
{
"value": "Used to reinforce another adjective of size or extent.",
"type": "n/a"
},
{
"value": "Used to express surprise, admiration, or contempt, especially in exclamations.",
"type": "n/a"
},
{
"value": "(in names of family relationships) denoting one degree further removed upward or downward.",
"type": "n/a"
},
{ "value": "An important or distinguished person.", "type": "n/a" },
{ "value": "Excellently; very well.", "type": "n/a" },
{
"value": "A person who habitually does or is enthusiastic about something.",
"type": "n/a"
},
{ "value": "Expressing surprise or amazement.", "type": "n/a" },
{ "value": "In a substantial way; largely.", "type": "n/a" },
{ "value": "Of all sizes, classes, or types.", "type": "n/a" }
],
"examples": [
"âthe article was of great interestâ",
"âa great ocean between themâ",
"âThe Great Tit has all the characters of the other Parus species and is unmistakable given its large, robust size, relatively heavy bill and domed head.â",
"âGreater Clevelandâ",
"âthe great Italian conductorâ",
"âAlexander the Greatâ",
"âI was a great fan of Hank'sâ",
"âthe great thing is the challengeâ",
"âa great big grinâ",
"âyou great oaf!â",
"âgreat-auntâ",
"âthe Beatles, Bob Dylan, all the greatsâ",
"âNever in the strict sense of the word a clever man - even by the academic standard (he took only a third in Mods. and a second in Greats, and worked hard for them, too) - he became an extraordinarily well-educated one.â",
"âmy father was a great one for buying gadgetsâ",
"âGreat Scott! You scored two hundred and seventy-three!â",
"âwe are all to a great extent the product of our cultureâ",
"âall creatures great and smallâ"
],
"url": "https://www.lexico.com/en/definition/great"
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.