Skip to content

About

Get high quality rhymes from the network. Plugin for nlp_compromise.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

nlp-syllables-async

A plugin for nlp_compromise that retrieves rhymes for a word.

Features

  • Asynchronous: pulls high quality syllable data from the network.
  • Cached: avoids making duplicate network requests.
  • Promise-based: more fun.

Installation and Usage

Install with $ npm install nlp-rhymes-async

then

import nlp from 'nlp_compromise'
import rhymes from 'nlp-rhymes-async'
nlp.plugin(rhymes)

nlp.term('simple').getRhymesAsync().then(rhymes => {
  console.log(JSON.stringify(rhymes))
  // output:
  // [
  //  {"word": "civil", "numSyllables": 2},
  //  {"word": "fickle", "numSyllables": 2},
  //  {"word":"kindle", "numSyllables": 2},
  //  etc...
  // ]
})

About

Get high quality rhymes from the network. Plugin for nlp_compromise.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages