Botta: An Arabic Dialect Chatbot

Dana Abu Ali, Nizar Habash

Abstract

This paper introduces Botta, the first conversational agent specifically designed for the Egyptian Arabic (Cairene) dialect. While most Arabic NLP systems focus on Modern Standard Arabic (MSA), Botta addresses the unique challenges of informal, dialectal communication, including orthographic inconsistency, morphological richness, and idiomatic complexity. Utilizing a rule-based AIML framework with custom normalization and gender-aware logic, Botta provides an authentic and consistent persona for friendly interactions.

Introduction

Natural Language Processing (NLP) for Arabic has traditionally focused on Modern Standard Arabic (MSA), the formal register used in media and literature. However, daily communication occurs almost exclusively in regional dialects. Developing chatbots for these dialects is challenging due to the lack of standardized spelling, complex morphology, and the specific social nuances of spoken Arabic. Botta addresses this gap as a foundational "base bot" for the Egyptian dialect, modeled after the popular English bot "Rosie."

Methodology

Botta is built using the Artificial Intelligence Markup Language (AIML). The researchers chose a rule-based approach over data-driven models to ensure a coherent persona and avoid the linguistic inconsistencies often found in multi-speaker corpora.

Orthographic Normalization

To handle the lack of standardized spelling in dialects, a preprocessing layer standardizes characters. For instance, various forms of Alif are reduced to a single form, and Ta-Marbuta is normalized. This process successfully addresses approximately 85.1% of common spelling variations found in spontaneous chat.

Gender-Aware Dialogue and Idiomatic Handling

Arabic morphology is highly sensitive to gender. Botta uses name2gender mapping to determine the user's gender and switches between parallel response systems to maintain grammatical correctness in verbs, adjectives, and pronouns. Furthermore, the bot is programmed to handle "modified echo greetings," where specific greetings require unique, non-identical responses (e.g., responding to "Evening of Goodness" with "Evening of Light").

Results and Discussion

Preliminary evaluations with native speakers indicate that Botta maintains an authentic Egyptian persona. Users found the interactions entertaining and the dialectal usage natural.

Sample conversation between a user (U) and Botta (B) illustrating dialectal greetings, gender identification, and general knowledge exchange.

As shown in the sample interaction above, Botta successfully navigates social protocols, identifies the user's gender to adjust its grammatical output, and manages general knowledge queries while maintaining a consistent persona. The normalization techniques significantly boosted the bot's ability to match user inputs despite the lack of standardized dialectal spelling.

Conclusion

Botta represents a significant step toward making Arabic conversational agents more accessible and natural. While currently limited by the manual labor required for rule-based scaling, it serves as a robust template for future dialectal bot development. Future work will explore integrating machine learning for improved pattern matching and advanced morphological analysis using tools like MADAMIRA.

Summary updated

BibTeX
@inproceedings{ali2016botta,
  author = {Dana Abu Ali and Nizar Habash},
  title = {{Botta: An Arabic Dialect Chatbot}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2016},
}
Figure