syllable-parser

1.0.1 • Public • Published

syllable-parser

NPM version

It is a Javascript library that parses Turkish words to syllables.

Installation

npm install --save syllable-parser

Usage

const SyllableParser = require("syllable-parser");
const syllableParser = new SyllableParser("TR");
console.log(syllableParser.parse("selam"));
// Output: ["se","lam"]

You can extract number of syllables.

const SyllableParser = require("syllable-parser");
const syllableParser = new SyllableParser("TR");
console.log(syllableParser.getSyllableCount("selam"));
// Output: 2

Author

Ender CAN

License

Open sourced under the Apache-2.0 LICENSE.

Package Sidebar

Install

npm i syllable-parser

Weekly Downloads

10

Version

1.0.1

License

MIT

Unpacked Size

16.7 kB

Total Files

6

Last publish

Collaborators

  • endrcn