syllables
Syllable estimation for Nim.
Summary
| Latest Version | 1.0.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-01 07:18 |
Tags
Authors
- Reilly Moore
Installation
nimble install syllables
choosenim install syllables
git clone https://github.com/tonogram/nim-syllables
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| syllables | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.4.2 | No |
| regex >= | 0.19.0 | No |
| https://github.com/disruptek/testes >= | 1.1.1 | No |
Source
| Repository | https://github.com/tonogram/nim-syllables |
|---|---|
| Homepage | https://github.com/tonogram/nim-syllables |
| Registry Source | nimble_official |
README
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.