You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

wordlist-english

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordlist-english

A whole lotta English words.

1.2.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

wordlist-english

A bunch of English words in JSON format.

Words obtained from the SCOWL project. See the Copyright file.

You can import the module as an ES module or using CommonJS:

import wordlist from 'wordlist-english'; // ES Modules
var wordlist = require('wordlist-english'); // CommonJS

Obtain all English words which are not exclusive to any dialect of English:

var englishWords = wordlist['english'];

englishWords.slice(2123, 2128)
// => [ 'ailing',
//      'ailment',
//      'ailments',
//      'ails',
//      'ailurophile' ]

englishWords.slice(68999, 69004)
// => [ 'permitted',
//      'permitter',
//      'permitting',
//      'permittivity',
//      'perms' ]

Obtain English words exclusive to different dialects of English:

var americanWords = wordlist['english/american'];
var australianWords = wordlist['english/australian'];
var britishWords = wordlist['english/british'];
var canadianWords = wordlist['english/canadian'];

americanWords.indexOf('color') // => 656
britishWords.indexOf('color') // => -1
americanWords.indexOf('colour') // => -1
britishWords.indexOf('colour') // => 677

Words are further organized by their frequency of use. Available frequency categories are 10, 20, 35, 40, 50, 55, 60, and 70. The lower the number, the more frequently the word is believed to be used by English speakers.

var commonEnglishWords = wordlist['english/10'];
var bizarreEnglishWords = wordlist['english/70'];
var commonAmericanWords = wordlist['english/american/10'];

commonEnglishWords.slice(555, 560)
// => [ 'chooses', 'choosing', 'chose', 'chosen', 'church' ]

bizarreEnglishWords.slice(555, 560)
// => [ 'aecium', 'aedes', 'aedile', 'aegrotat', 'aeneous' ]

commonAmericanWords.slice(10, 15)
// => [ 'favor', 'favorite', 'flavor', 'gray', 'judgment' ]

Keywords

word

FAQs

Package last updated on 19 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts