https://github.com/xmas7/syllable-counter
To use this Java library, you need Java 8 and Maven 3.
https://github.com/xmas7/syllable-counter
java library maven
Last synced: about 1 month ago
JSON representation
To use this Java library, you need Java 8 and Maven 3.
- Host: GitHub
- URL: https://github.com/xmas7/syllable-counter
- Owner: xmas7
- License: apache-2.0
- Created: 2022-09-06T00:07:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T00:09:42.000Z (over 2 years ago)
- Last Synced: 2025-02-12T08:40:48.979Z (3 months ago)
- Topics: java, library, maven
- Language: Java
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Syllable Counter
===
[](https://travis-ci.org/m09/syllable-counter) [](http://search.maven.org/#search|ga|1|a%3A%22syllable-counter%22) [](https://coveralls.io/r/m09/syllable-counter?branch=master)Uses a fallback method—based on the [NLTK readability plugin][nltk] by
Thomas Jakobsen and Thomas Skardal
. This NLTK plugin is itself based on the
algorithm implemented in the [Lingua::EN::Syllable perl module][perl]
by Greg Fast .Thanks to them for making their work available.
[nltk]: https://code.google.com/p/nltk/source/browse/trunk/nltk_contrib/nltk_contrib/readability/syllables_en.py
[perl]: http://search.cpan.org/~neilb/Lingua-EN-Syllable-0.26/
Requirements
------------To use this Java library, you need Java 8 and Maven 3.
Installation
------------With Maven, you can just add the following to the `dependencies`
section of your `pom.xml`:```xml
eu.crydee
syllable-counter
4.0.1
```If you do not use maven, you can still [download][dl] the jar from
Maven Central and use it as appropriate.[dl]: http://search.maven.org/remotecontent?filepath=eu/crydee/syllable-counter/4.0.1/syllable-counter-4.0.1.jar
Usage
-----The usage is trivial. To retrieve the number of syllables of a word,
use the `count` method:```java
import eu.crydee.syllablecounter.SyllableCounter;...
SyllableCounter sc = new SyllableCounter();
int myCount = sc.count("facility");
// myCount holds 4
```