Skip to main content

Syllabelizer for Indonesian Language in Python

This is a rule-based syllabelizer for Indonesian Language. Please note that this project does not aim to replicate rules in Ejaan yang Disempurnakan (EYD).

Installation :zap:

pip install silabel

Example Usage :robot:

from silabel import Syllabelizer

s = Syllabelizer()
s.syllabelize("menggunakan") # ['meng', 'gu', 'na', 'kan']
s.syllabelize("memperkirakan") # ['mem', 'per', 'ki', 'ra', 'kan']

Quick Check :mag:

Here are some results to check if this package suits your interest

BSD                       : b-s-d
SMP                       : s-m-p
main                      : ma-in
april                     : ap-ril
swasta                    : swas-ta
instan                    : in-stan
dengan                    : de-ngan
pandai                    : pan-dai
makhluk                   : makh-luk
saudara                   : sau-da-ra
menyapu                   : me-nya-pu
etiopia                   : e-ti-o-pi-a
masyhur                   : masy-hur
biografi                  : bi-o-gra-fi
instrumen                 : in-stru-men
pengarang                 : pe-nga-rang
reboisasi                 : re-boi-sa-si
musyawarah                : mu-sya-wa-rah
dramatisasi               : dra-ma-ti-sa-si
memproklamasikan          : mem-pro-kla-ma-si-kan
berkesinambungan          : ber-ke-si-nam-bu-ngan
mempertanggungjawabkan    : mem-per-tang-gung-ja-wab-kan

Known Issue :persevere:

There are words with vocal diphthong that would not be syllabelize, such as re-boi-sa-si, but it is good enough for my use case so I prefer to let it be.

End notes :heart:

There is no reference used in this project. I simply create a set of rules based on indonesian vocal, consonant, and diphthong to syllabelize indonesian words.

I made this repo for educational purposes so it might need further tweaking to reach production level.
Feel free to create an issue if you need help, and I hope I'll have the time to help you. Thank you.

:heart: from Indonesia

Release files for silabel 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for silabel 0.5
File Size Uploaded
silabel-0.5.tar.gz 3.8 kB Details

Release files / silabel-0.5.tar.gz

Download URL silabel-0.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3baf1cc719cae3af9883985fa4cee403d6d947726f10a11db8836b4a6d6aa694
BLAKE2b-256 checksum
How to use checksums
1d87a64d034df4e97ffbf86f3c0e2ad0d74ca34a170acc9739664dc46772242d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file

0.4

1 release file

0.3

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page