ARLSTem Arabic Stemmer The details about the implementation of this algorithm are described in: K. Abainia, S. Ouamour and H. Sayoud, A Novel Robust Arabic Light Stemmer , Journal of Experimental & Theoretical Artificial Intelligence (JETAI’17), Vol. 29, No. 3, 2017, pp. 557-573. The ARLSTem is a light Arabic stemmer that is based on removing the affixes from the word (i.e. prefixes, suffixes and infixes). It was evaluated and compared to several other stemmers using Paice’s parameters (under-stemming index, over-stemming index and stemming weight), and the results showed that ARLSTem is promising and producing high performances. This stemmer is not based on any dictionary and can be used on-line effectively.
- class nltk.stem.arlstem.ARLSTem¶
ARLSTem stemmer : a light Arabic Stemming algorithm without any dictionary. Department of Telecommunication & Information Processing. USTHB University, Algiers, Algeria. ARLSTem.stem(token) returns the Arabic stem for the input token. The ARLSTem Stemmer requires that all tokens are encoded using Unicode encoding.
call this function to get the word’s stem based on ARLSTem .
normalize the word by removing diacritics, replacing hamzated Alif with Alif replacing AlifMaqsura with Yaa and removing Waaw at the beginning.
remove prefixes from the words’ beginning.
remove suffixes from the word’s end.
transform the word from the feminine form to the masculine form.
transform the word from the plural form to the singular form.
stem the verb prefixes and suffixes or both
stem the present prefixes and suffixes
stem the future prefixes and suffixes
stem the present suffixes
stem the present prefixes
stem the future prefixes
stem the order prefixes