Skip to content

Arudi Writing (الكتابة العروضية)

Before a poem can be scanned metrically, standard orthographic Arabic (الكتابة الإملائية) must be compiled into pure phonetic prosodic script (الكتابة العروضية), where every written character maps 1:1 to a spoken Haraka (1) or Sukun (0).

القاعدة الذهبية · The Golden Rule of Arudi Phonetics علم العروض
مَا يُنْطَقُ يُكْتَبُ، وَمَا لَا يُنْطَقُ لَا يُكْتَبُ

Phonetic Transformation Rules

Letters pronounced in speech that do not appear explicitly in standard Arabic spelling are materialized into arudi_text:

Phenomenon Standard Spelling Arudi Script Binary Pattern Prosodic Note
Tanween (mid-line) كِتَابٌ / مَدْرَسَةٍ كتابن / مدرستن 11010 / 101110 Nunation expands to quiescent نْ.
Tanween Fath (pause) كِتَابًا كتابا 11010 At hemistich pause (saturate=True), ـاً saturates to ا.
Shadda (فك الإدغام) مَدَّ مدد 101 Geminated letter splits into Sakin (0) + Mutaharrik (1).
Madda (آ) آمَنَ أامن 1011 Expands into vocalized Hamza + long Alif (10).
Unwritten Alif / Waw هَذَا · اللَّهُ · لَكِنْ · دَاوُدُ هاذا · أللاه · لاكن · داوود 1010 · 10101 · 1010 · 10101 Inflection-preserving lexical expansion (DEFAULT_ARUDI_REPLACEMENTS).
Rhyme Ishba' (الإشباع) القَلَمُ (Mutlaq) ألقلمو 101110 Final short vowel elongates (َ→ا, ُ→و, ِ→ي) unless muqayyad=True.
Pronominal هاء الضمير لَهُ دَارٌ vs. فِيهِ نُورٌ لهو دارن vs. فيه نورن 1101010 vs. 1011010 Saturates mid-line only between two vowels (never after Sakin or on root ه).

Orthographic letters that are silent in connected classical recitation are dropped:

Phenomenon Standard Spelling Arudi Script Binary Pattern Prosodic Note
Connected Hamzat al-Wasl وَاسْتَمَعَ · قَالَ ابْنُ وستمع · قال بن 10111 · 10101 Pronounced at hemistich start, elided mid-line.
Solar Lam (اللام الشمسية) الشَّمْسُ · وَالشَّمْسِ · لِلشَّمْسِ أششمس · وششمس · لششمس 10101 ل assimilates completely into any of the 14 solar letters.
Iltiqa' al-Sakinayn (Madd) فِي الْبَيْتِ · عَلَى الْأَرْضِ فلبيت · عللأرض 10101 · 110101 Final long vowel (ي/ى/ا/و) drops before Hamzat Wasl.
Iltiqa' al-Sakinayn (Sukun) مِنْ الشَّمْسِ · قُمْ الَّيْلَ منششمس · قملليل 110101 · 110101 Quiescent consonant takes epenthetic vowel before Wasl.
Alif al-Tafriq (ألف التفريق) قَالُوا نَعَمْ قالو نعم 1010110 Silent ا after plural وا is dropped.
Silent Waw & Alif أُولَٰئِكَ · عَمْرُو · مِائَة ألائك · عمر · مئة 11011 · 101 · 111 Silent و in أولئك/عمرو and silent ا in مائة drop cleanly.

How PyArud Compiles Arudi Text

ArudiConverter (pyarud.core.phonetics) runs a deterministic 5-stage pipeline guaranteeing a strict 1:1 bijection (len(arudi_text.replace(" ", "")) == len(pattern)):

  1. Normalization (pyarud.core.arabic): Strips tatweel (ـ), punctuation, invisible/waqf marks; normalizes Unicode ligatures (لا, ﷲ), Persian/Urdu variants (ی/ک/ہ), Uthmani marks (\u06e1, ىٰ); canonicalizes Shadda + Haraka ordering.
  2. Lexical & Morphological Expansion: Applies DEFAULT_ARUDI_REPLACEMENTS (plus user entries via register_custom_spelling()) while preserving inflectional vowels and guarding whole-word boundaries so unrelated words (لَيْسَ, بَالِي, وَالِدِي) are never corrupted.
  3. Connected-Speech Phonology: Resolves Solar/Lunar الـ, لِلـ, Hamzat al-Wasl, Alif al-Tafriq, and Iltiqa' al-Sakinayn.
  4. Phonemic Tokenization & Alignment: Emits synchronized (arudi_text, pattern) and per-token spans (ArudiAlignment), enabling every FootAnalysis to slice its exact Arabic Arudi text.
  5. End-of-Shatr Saturation & Licenses: Generates primary Mutlaq (saturate=True) and fallback Muqayyad (muqayyad=True) readings plus optional classical poetic licenses (ikhtilas, ishba' after sakin, lengthened أَنَا), always preferring the faithful primary reading whenever it matches a valid meter.

Inspect Phonetic Output Directly

Test any phrase from the terminal with pyarud arudi "بِسِقْطِ اللِّوَى بَيْنَ الدَّخُولِ فَحَوْمَلِ" --notation classical or in Python with ArudiConverter().align_pattern(...).