Giter VIP home page Giter VIP logo

wordlist-english's Introduction

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' ]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.