Skip to content

Give me a word and I’ll give you an array of words that differ by a single letter.

License

Notifications You must be signed in to change notification settings

words/similar-english-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

similar-english-words

Build Downloads Size

Give me a word and I’ll give you an array of words that differ by a single letter.

A thing to make levenmorpher faster.

Install

npm:

npm install similar-english-words

Use

var words = require('similar-english-words')

console.log(words.funky)
console.log(words.blank)
console.log(words.not_a_word)

Yields:

[
  'flunky',
  'fundy',
  'funk',
  'funks',
  'funny',
  'gunky',
  'hunky',
  'junky',
  'punky'
]
[
  'bank',
  'black',
  'bland',
  'blanks',
  'blink',
  'blunk',
  'brank',
  'clank',
  'flank',
  'lank',
  'plank',
  'slank'
]
undefined

API

similarEnglishWords

similar-english-words returns an object where each field is a word and the value is a list of related words (Object.<string[]>).

License

ISC © Zeke Sikelianos