today-word
v1.0.0
Published
A Node.js package that picks an English word for today
Downloads
9
Maintainers
Readme
today-word
:pushpin: A Node.js package that picks an English word for today
Table of Contents
Installation
Using npm:
$ npm install today-word
Using yarn:
$ yarn add today-word
Methods
getWord()
Examples
Import the package
NodeJS
const todayWord = require('today-word');
ES6/ TypeScript
import todayWord from 'today-word';
How to use
(async () => {
try {
const word = await todayWord.getWord();
console.log(word);
/* {
word: 'lapidify',
pronunciation: '[ luh-pid-uh-fahy ]',
audio: 'https://static.sfdict.com/audio/L00/L0078500.mp3',
pos: 'verb (used with or without object)',
meaning: 'to turn into stone.',
origin: 'The relatively rare verb lapidify, “to turn into or become stone, petrify,” comes via French lapidifier from Medieval Latin lapidificāre. Lapidificāre is a transparent compound of Latin lapid– (the inflectional stem of lapis “stone”) and the Latin verb-forming suffix –ficāre, ultimately a derivative of facere “to make, do.” The resemblance between lapis and Greek lépas “bare rock” is “hardly accidental,” as the pros say: Both words probably come from a Mediterranean (non-Indo-European) language. Lapidify entered English in the mid-17th century.',
examples: [
'Perhaps in a few months a slow seepage, rich in minerals, would return to these passages and gradually glue their bodies to the rocks where they sat, to seal their crypt and lapidify their bones.',
'The rule of the Abang, in an age when the techniques existed to lapidify any rule to permanency, was, because of the very rise of a party, doomed.'
]
} */
} catch (error) {
console.log(error);
}
})();