Review Article

A Comparative Study of Some Automatic Arabic Text Diacritization Systems

Algorithm 2

create_Dictionary_Of_Letters.
(i)Input: list of all letters combined with all diacritics l,
(ii)Output: list of tuples d
(iii) //each tuple contains the letter and its’ diacritizations separated with spaces
(iv)SET dict EQUAL TO EMPTY DICTIONARY
(v)SET d EQUAL TO EMPTY LIST
(vi)tool: = MyToolKit()
(vii)FOR EACH e IN l
(viii) dict[tool.deleteDiacritics(e)].append(e)//The value here is a list of diacritization of the letter e
(ix)FOR key IN dict
(x) d.append((key, ‘ ‘.joined(dict[key])))
(xi)RETURN d