Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-06T23:19:48.281Z Has data issue: false hasContentIssue false

Arabic spelling error detection and correction†

Published online by Cambridge University Press:  18 March 2015

MOHAMMED ATTIA
Affiliation:
School of Computing, Dublin City University, Ireland, e-mail: mattia@computing.dcu.ie, josef@computing.dcu.ie Faculty of Engineering and IT, The British University in Dubai, UAE e-mail: khaled.shaalan@buid.ac.ae
PAVEL PECINA
Affiliation:
Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic e-mail: pecina@ufal.mff.cuni.cz
YOUNES SAMIH
Affiliation:
Department of Linguistics and Information Science, Heinrich-Heine-Universität Düsseldorf, Germany e-mail: samih@phil.uni-duesseldorf.de
KHALED SHAALAN
Affiliation:
Faculty of Engineering and IT, The British University in Dubai, UAE e-mail: khaled.shaalan@buid.ac.ae
JOSEF VAN GENABITH
Affiliation:
School of Computing, Dublin City University, Ireland, e-mail: mattia@computing.dcu.ie, josef@computing.dcu.ie
Rights & Permissions [Opens in a new window]

Abstract

A spelling error detection and correction application is typically based on three main components: a dictionary (or reference word list), an error model and a language model. While most of the attention in the literature has been directed to the language model, we show how improvements in any of the three components can lead to significant cumulative improvements in the overall performance of the system. We develop our dictionary of 9.2 million fully-inflected Arabic words (types) from a morphological transducer and a large corpus, validated and manually revised. We improve the error model by analyzing error types and creating an edit distance re-ranker. We also improve the language model by analyzing the level of noise in different data sources and selecting an optimal subset to train the system on. Testing and evaluation experiments show that our system significantly outperforms Microsoft Word 2013, OpenOffice Ayaspell 3.4 and Google Docs.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2015 
Figure 0

Table 1. Arabic word lists matched against Microsoft spell checker

Figure 1

Table 2. Evaluation of Arabic word lists matched against Microsoft Spell Checker

Figure 2

Table 3. Comparison of accuracy, recall, precision, and f-measure of AraComLex Extended 1.5 against other applications

Figure 3

Fig. 1. Results of the LM classifier identifying valid and invalid Arabic word forms.

Figure 4

Table 4. Most frequent spelling error types in Arabic

Figure 5

Fig. 2. Crude edit distance.

Figure 6

Fig. 3. Re-ranked edit distance.

Figure 7

Table 5. Evaluating criteria for deciding split words

Figure 8

Table 6. Comparing crude edit distance with the re-ranker using the development set

Figure 9

Table 7. Comparing crude edit distance with the re-ranker using the test set

Figure 10

Fig. 4. Ratio of noise in corpus data.

Figure 11

Table 8. Corpus subsets with word count and ratio of noise

Figure 12

Table 9. Evaluation of first-order ranking of spelling correction of Google Docs, Ayaspell and MS Word 2013

Figure 13

Table 10. First-order correction accuracy using the 2-gram LM trained on data from AFT, Al-Jazeera, and the entire Gigaword corpus on the test set