Download the PHP package oblak/syllabizer without Composer
On this page you can find all versions of the php package oblak/syllabizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download oblak/syllabizer
More information about oblak/syllabizer
Files in oblak/syllabizer
Download oblak/syllabizer
More information about oblak/syllabizer
Files in oblak/syllabizer
Vendor oblak
Package syllabizer
Short Description Splits Serbian words into syllables (podela reči na slogove). Supports Latin and Cyrillic.
License MIT
Package syllabizer
Short Description Splits Serbian words into syllables (podela reči na slogove). Supports Latin and Cyrillic.
License MIT
Please rate this library. Is it a good library?
Informations about the package syllabizer
Syllabizer
Split serbian words into syllables (podela reči na slogove)
[](https://packagist.org/packages/oblak/syllabizer)

Installation
You can install the package via composer:
Usage
syllabize() accepts a string or any Stringable, and returns an ordered array
of syllables. Joining the result reproduces the original word exactly:
Joining syllables
tokenize() is a convenience wrapper that returns the syllables as a single string,
joined by a separator (a hyphen by default):
How it works
The library follows the standard pedagogical rules for Serbian syllabification:
- Both scripts — Latin and Cyrillic input are supported. The Latin digraphs
lj,njanddž(in any case) count as a single consonant and are never split, just like their Cyrillic counterpartsљ,њ,џ. - Vowels carry syllables — the number of syllables equals the number of vowels
(
a e i o u), plus any syllabic R. - Syllabic R — an
rwith no neighbouring vowel (between consonants, or word‑initial before a consonant) becomes a syllable nucleus:pr‑st,tr‑ka,r‑vač. - Consonant clusters — a single consonant opens the following syllable
(
li‑va‑da); within a cluster the boundary falls between two sonants (or‑la,tram‑vaj) or between a plosive and a following non‑approximant (lop‑ta,sred‑stvo); otherwise the whole cluster opens the next syllable (la‑sta,je‑dva,sve‑tlost).
Testing
Coding standards
License
The MIT License (MIT). Please see the License File for more information.
All versions of syllabizer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-mbstring Version *
ext-mbstring Version *
The package oblak/syllabizer contains the following files
Loading the files please wait ...