Skip to content

danielkberry/pronounceable

This branch is 7 commits ahead of, 1 commit behind lukem512/pronounceable:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Daniel Berry
Jul 23, 2017
70b3c94 · Jul 23, 2017

History

20 Commits
Apr 9, 2016
Apr 9, 2016
Apr 21, 2017
Apr 7, 2016
Apr 3, 2016
Jul 23, 2017
Apr 9, 2016
Jul 23, 2017

Repository files navigation

This fork has been modified to include a check which requires all pronounceable words to have at least one vowel in them as well as determining all words with a number in them as pronounceable.

pronounceable

Build Status Dependency Status npm npm npm

Pronounceable is a small module that allows you to test a word for pronounceability.

To use it, simply install via NPM and include it in your project file.

const pronounceable = require('pronounceable');

Then, to test a word for pronounceability, use the test method.

console.log(pronounceable.test('samosa')); // true
console.log(pronounceable.test('xghsii')); // false

You can also use the module to score a word on its pronounceability, using the score method. The higher the output value the more pronounceable the word.

console.log(pronounceable.score('peonies')); // 0.10176356810708122
console.log(pronounceable.score('sshh')); // 0.0008556941146173743

To generate your own dataset use the train method.

pronounceable.train('dictionary.txt', function(probabilities) {
  // The data set has been returned
  console.log(probabilities);
});

About

Test a word for pronounceability

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%