Sign inSign up

gtrabanco/php-syllabler

By gtrabanco

•Updated over 8 years ago

Convert words in syllables with PHP.

Image
0

3.1K

gtrabanco/php-syllabler repository overview

⁠Syllabler

A PHP library to split Spanish words in syllables through the algorithm.

⁠Pending Works

In the TODO⁠

⁠Demo

⁠Deploy

To deploy you need to keep almost the same structure or change the set_include_path on website/www/index.php.

Anyway it should run normally if you deploy the app from the github⁠ with the consideration that you should change apache.htaccess or nginx.htaccess to .htaccess.

⁠Known Issues

The support for hypen words must be added externally and process separately, it is not added. They should be considered two words.

The prefixes can make issues by the moment.

In spite of the algorithm supports it, it is not implemented the support for "tl" or other configurations that are not from Spain. It is only works with "Castillian" (spanish from Spain with the known mistakes).

You must use utf8_decode before pass the word to the object, this is because the library convert the word to utf8 and recodification to utf8 must give problems.

Doesn't keep the "H" with it in the middle in some diphtongs, like "prohibición" and it should.


⁠More relative information (in Spanish):

https://es.wikipedia.org/wiki/S%C3%ADlaba⁠ https://www.xn--slabas-3va.com/regalas/⁠

⁠Similar projects

http://www.aucel.com/pln/transbase.html⁠ - (See the source code in perl)

http://www.texnia.com/spanish_hyphen.html⁠ - Divisions in syllables for multiple syllables with latex

https://github.com/vanderlee/phpSyllable⁠

Tag summary

Content type

Image

Digest

Size

150.5 MB

Last updated

over 8 years ago

docker pull gtrabanco/php-syllabler