Arabic has a tightly constrained syllable structure: every syllable opens with a single consonant and a vowel, and may be closed by a coda consonant. This analyzer parses fully vocalised Arabic into those syllables and labels each one by its CV pattern and weight.
How it works
The text is segmented character by character into consonants (C), short vowels (V), long vowels (VV), and codas:
- A consonant letter becomes an onset C.
- A short vowel (fatha, damma, kasra) is a V nucleus — unless it is followed by its matching madd letter (alef, waw, ya), in which case the pair is a long VV nucleus.
- A sukun marks the preceding consonant as a coda, closing the syllable.
- A shadda (gemination) splits into a coda on the previous syllable plus an onset on the next.
- Tanwin is read as a short vowel plus a final /n/ coda.
Syllables are then built greedily as C + nucleus + optional coda. Weight is
classified as light (CV), heavy (CVC, CVV), or superheavy (CVVC,
CVCC).
Worked examples
كَتَبَ (kataba, “he wrote”)
Parses as CV · CV · CV — three light open syllables: ka · ta · ba. This is the canonical Form I perfect tense pattern for a triliteral root, and its all-light syllable profile is characteristic of the basic verb form.
دَرْسَهُ (darsahu, “his lesson”)
Parses as CVC · CV · CV: dar · sa · hu. The sukun on the rāʾ closes the first syllable into a heavy CVC. The possessive suffix ـهُ contributes two more light syllables.
مَكْتُوبٌ (maktūbun, “written”)
Parses as CVC · CVV · CVV(n): mak · tūu · bun. The long vowel ū (damma plus waw) creates a CVV nucleus. The final tanwin adds an /n/ coda, making the last syllable heavy with tanwin.
Syllable weight and its role in Arabic
Syllable weight is not an academic abstraction — it governs stress placement in Modern Standard Arabic and is the organising principle of classical Arabic meter (al-ʿarūḍ).
Stress in MSA is predictable from weight: stress generally falls on the last heavy syllable in the last three syllables of a word. Knowing the syllable structure lets you predict where a word is stressed without memorising it individually.
Arabic meters (baḥr, literally “sea”) in classical poetry are defined entirely by sequences of light (CV) and heavy (CVC, CVV) syllables. The sixteen canonical meters each have a fixed pattern of light and heavy units. This analyzer gives you the raw CV breakdown needed to check whether a line of verse fits a given meter, or to diagnose where a line breaks the pattern.
Practical uses
- Arabic language teaching: Showing learners why certain words sound stressed on a particular syllable, with the CV pattern as evidence.
- Poetry analysis: Checking classical verse against the sixteen standard meters by examining the syllable weight sequence.
- Phonology research and NLP: Generating training data for Arabic speech synthesis or text-to-speech models that require syllabified input.
- Self-study: Building intuition for Arabic phonological structure by inspecting familiar words.
Limitations
This is a phonological approximation. It does not model pausal forms (where final short vowels and tanwin are typically dropped in spoken Arabic), does not handle all cases of hamzat al-wasl (the joining hamza whose syllabic behaviour depends on the phonological context), and does not process assimilation of the definite article /al/ before sun letters. For these edge cases, the output should be treated as a starting point for manual correction.