Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A rhyming dictionary for node.js

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 data
Octocat-spinner-32 test
Octocat-spinner-32 README.markdown
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
README.markdown

rhyme

A rhyming dictionary for your node.js.

example

var rhyme = require('rhyme');
rhyme(function (r) {
    console.log(r.rhyme('bed').join(' '));
});

output:

$ node examples/bed.js
BLED BREAD BRED DEAD DREAD DRED DREDD ED FED FLED FREAD FRED FREDA GED HEAD
JED LEAD LED MED NED NEDD PLED READ READE RED REDD SAID SCHWED SFFED SHEAD
SHED SHEDD SHRED SLED SLEDD SPED SPREAD STEAD SWED SZWED TED THREAD TREAD
WED WEDD WEHDE ZED

methods

rhyme(cb)

Read in the rhyme database. cb gets called with the rhyme handle.

rhyme handle

r.rhyme(word)

Returns all rhymes for word.

r.pronounce(word)

Shows how to pronounce word using CMU's pronouncing dictionary phonemes .

r.syllables(word)

Counts the syllables in word using the phonemes in r.pronounce and some heuristics.

installation

Using npm:

npm install rhyme
Something went wrong with that request. Please try again.