Grammar Engine
☰ Menu

ACE — Morphology Processing Flowchart

This diagram shows the main forward path documented for ace_stem_tester.php and the ACE Analyzer. The Reverse Analyzer conceptually examines these layers in the opposite direction.

Documentation diagram only — it does not execute or modify the morphology engine.

Select a chapter to show its content.
1. Forward Morphology Processing Diagram

Scroll horizontally to inspect the complete SVG on a narrow screen.

ACE forward morphology pipelineTen stages: user input, extra rules, stem building, suffixes, conjunctions and particles, attached pronouns, Latin assembly, Arabic conversion, translation, and final output. 01User Inputr0, r1, r2; Form I–XTense/category; pronoun 1–14 02ace_apply_extra_rules()Strong, hamzated, hollow,defective, geminated, etc. 03build_combined_token()Pattern + root + inflections→ Latin-pattern stem 06Attached Pronounshu, hum, humā, etc.Object / genitive layer 05Conjunctions & Particleswa, fa, bi, li, la, sa, minAssembly order: manual / auto 04Suffix / DeclensionPerfect / imperfect endingsNominal declension endings 07Latin AssemblyConj / particle / article /prefix / stem / suffix / object 08latinToArabic()Segment-wise conversion→ colored Arabic display 09TranslationTense + functional word→ English / Urdu templates 10Final Output Row (ACE Stem Tester)Pronoun metadata · Arabic · Latin · IPA · Translation
2. Processing Stages — Reference
01 · Input

Root radicals, Form, tense/category and pronoun index.

02 · Extra rules

ace_apply_extra_rules(): root-family adjustments.

03 · Stem

build_combined_token(): pattern, radicals and inflections.

04 · Suffixes

Perfect/imperfect suffixes and nominal declension.

05 · Conjunctions and particles

Functional-word layers and assembly order.

06 · Attached pronouns

Object and genitive pronoun attachments.

07 · Latin assembly

Combines segmented elements into a pronunciation-oriented intermediate representation.

08 · Arabic output

latinToArabic() shown here as part of the documented forward flow.

09 · Translation

getTenseTranslation() and getFunctionalWordTranslation().

10 · Final output

Pronoun metadata, colored Arabic, Latin aid, IPA and translations.

3. Reverse Analyzer — Conceptual Direction

The Reverse Analyzer conceptually examines the surface Arabic token and identifies possible conjunctions, particles, article, stem, root, Form, tense and pronoun.

ACE architectural note: Arabic source tokens are authoritative. Latin/IPA serves as a pronunciation aid, not as the source for recovering Arabic morphology. Multiple structurally valid hypotheses are retained until an independent rule can exclude them.

Related documentation: Reverse Analyzer index (if installed at this path).