syllables

Count syllables in text using a dictionary

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
syllables
1.0.05 years ago5 years agoMinified + gzip package size for syllables in KB

Readme

Syllables Build Status

Install

$ npm install syllables

Usage

const syllables = require('syllables');

syllables('Hello');
//=> 2

syllables('Hi, how are you?');
//=> 4

syllables('sjhljhah aiuoihdal ijiajl');
//=> 0

API

syllables(str)

str

Type: string
Word or sentence to count syllables of. Unrecognised words will have a syllable count of 0.