Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 2.26 KB

README.md

File metadata and controls

73 lines (54 loc) · 2.26 KB

etymonline

46,000 English word etymologies, dutifully collected from etymonline.com.

Etymonline is a collection of historical data about the English language. It was compiled by Douglas Harper and draws from over 80 sources.

This npm package was created to safeguard this treasure of linguistic data, in case the etymonline website should disappear one day. 🙈

Installation

npm install etymonline --save

Usage

const etymologies = require('etymonline')

etymologies.length
// 46840

etymologies.find(e => e.word === 'dandelion')
// {
//   word: 'dandelion',
//   pos: 'n',
//   etymology: 'early 15c., earlier dent-de-lioun (late 14c.), from Middle French...'
// }

etymologies.filter(e => e.word.match('money')).map(e => e.word)
// [ 'money',
//   'money-bag',
//   'money-maker',
//   'money-pit',
//   'moneyed',
//   'moneyless',
//   'moneyocracy',
//   'smart money' ]

Tests

npm install
npm test

Dependencies

None

Dev Dependencies

  • async: Higher-order functions and common patterns for asynchronous code
  • cheerio: Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
  • glob: a little globber
  • got: Simplified HTTP requests
  • limiter: A generic rate limiter for node.js. Useful for API clients, web crawling, or other tasks that need to be throttled
  • lodash.sortby: The lodash method _.sortBy exported as a module.
  • omit-empty: Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.
  • path-exists: Check if a path exists
  • tap-spec: Formatted TAP output like Mocha's spec reporter
  • tape: tap-producing test harness for node and browsers

License

MIT

Generated by package-json-to-readme