lib/nlp_arabic/arabic_stemmer.rb
# process a word that consists of 2 letters
# it could have a missing vowel or it could have a missing duplicate letter "shadda"
process a word that consists of 2 letters
it could have a missing vowel or it could have a missing duplicate letter "shadda"
process a word that consists of 2 letters it could have a missing vowel or it could have a missing duplicate letter " shadda "
def process_two_letters(word)
    new_word = word.clone
    new_word, status = recover_duplicate_letter(new_word)
    new_word, status = recover_first_vowel(new_word) if status != :root
    new_word, status = recover_middle_vowel(new_word) if status != :root
    new_word, status = recover_last_vowel(new_word) if status != :root
    return [new_word, status]
  end
def process_two_letters ( word ) new_word = word . clone new_word , status = recover_duplicate_letter ( new_word ) new_word , status = recover_first_vowel ( new_word ) if status != :root new_word , status = recover_middle_vowel ( new_word ) if status != :root new_word , status = recover_last_vowel ( new_word ) if status != :root return [ new_word , status ] end
process a word that consists of 2 letters
it could have a missing vowel or it could have a missing duplicate letter "shadda"
process a word that consists of 2 letters it could have a missing vowel or it could have a missing duplicate letter " shadda "
# processing missing vowels
word
<not_specific>