syllables

Count syllables in text using a dictionary

Usage no npm install needed!

<script type="module">
  import syllables from 'https://cdn.skypack.dev/syllables';
</script>

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.