Syllable counter

Implementation of a simple syllable counter for english

License

License

GroupId

GroupId

eu.crydee
ArtifactId

ArtifactId

syllable-counter
Last Version

Last Version

4.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Syllable counter
Implementation of a simple syllable counter for english
Project URL

Project URL

https://github.com/m09/syllable-counter
Source Code Management

Source Code Management

https://github.com/m09/syllable-counter

Download syllable-counter

How to add to project

<!-- https://jarcasting.com/artifacts/eu.crydee/syllable-counter/ -->
<dependency>
    <groupId>eu.crydee</groupId>
    <artifactId>syllable-counter</artifactId>
    <version>4.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/eu.crydee/syllable-counter/
implementation 'eu.crydee:syllable-counter:4.1.0'
// https://jarcasting.com/artifacts/eu.crydee/syllable-counter/
implementation ("eu.crydee:syllable-counter:4.1.0")
'eu.crydee:syllable-counter:jar:4.1.0'
<dependency org="eu.crydee" name="syllable-counter" rev="4.1.0">
  <artifact name="syllable-counter" type="jar" />
</dependency>
@Grapes(
@Grab(group='eu.crydee', module='syllable-counter', version='4.1.0')
)
libraryDependencies += "eu.crydee" % "syllable-counter" % "4.1.0"
[eu.crydee/syllable-counter "4.1.0"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.13

Project Modules

There are no modules declared in this project.

Syllable Counter

CI Status Deploy Status Maven Central version codecov

Uses a fallback method—based on the NLTK readability plugin by Thomas Jakobsen [email protected] and Thomas Skardal [email protected]. This NLTK plugin is itself based on the algorithm implemented in the Lingua::EN::Syllable perl module by Greg Fast [email protected].

Thanks to them for making their work available.

Requirements

To use this Java library, you need Java 8 and Maven 3.

Installation

Refer to the Maven Central page to find the installation instructions for your build tool or to download the jar directly.

Usage

The usage is trivial. To retrieve the number of syllables of a word, use the count method:

import eu.crydee.syllablecounter.SyllableCounter;

...

SyllableCounter sc = new SyllableCounter();
int myCount = sc.count("facility");
// myCount holds 4

Versions

Version
4.1.0
4.0.3
4.0.2
4.0.1
4.0.0
3.0.1
3.0.0
2.0.0
1.0.0