No description
Find a file
2021-01-11 14:02:37 -06:00
src done lol 2021-01-11 14:01:10 -06:00
tests done lol 2021-01-11 14:01:10 -06:00
.gitignore done lol 2021-01-11 14:01:10 -06:00
LICENSE Initial commit 2021-01-11 13:30:45 -06:00
README.md appropriate version number 2021-01-11 14:02:37 -06:00
syllables.nimble appropriate version number 2021-01-11 14:02:37 -06:00

syllables

Syllable estimation for Nim, based on prosegrinder/python-syllables.

Installation

nimble install syllables

Usage

Syllables has only a single procedure: estimate(word: string): int

doAssert estimate("pneumonoultramicroscopicsilicovolcacoconiosis") == 17
doAssert estimate("Hi") == 1
doAssert estimate("Hello") == 2
doAssert estimate("Sphinx of black quartz, judge my vow.") == 8
doAssert estimate("Syllables") == 3

This is only an estimation. Do not expect it to be perfectly accurate.