class_docstr: A stemmer for Portuguese.
  
      >>> from nltk.stem import RSLPStemmer
      >>> st = RSLPStemmer()
      >>> # opening lines of Erico Verissimo's "Música ao Longe"
      >>> text = '''
      ... Clarissa risca com giz no quadro-negro a paisagem que os alunos
      ... devem copiar . Uma casinha de porta e janela , em cima duma
      ... coxilha .'''
      >>> for token in text.split(): # doctest: +NORMALIZE_WHITESPACE
      ...     print(st.stem(token))
      clariss risc com giz no quadro-negr a pais que os alun dev copi .
      uma cas de port e janel , em cim dum coxilh .
code: def stem(self, word):
      word = word.lower()
  
      # the word ends in 's'? apply rule for plural reduction
      if word[-1] == "s":
          word = self.apply_rule(word, 0)
  
      # the word ends in 'a'? apply rule for feminine reduction
      if word[-1] == "a":
          word = self.apply_rule(word, 1)
  
      # augmentative reduction
      word = self.apply_rule(word, 3)
  
      # adverb reduction
      word = self.apply_rule(word, 2)
  
      # noun reduction
      prev_word = word
      word = self.apply_rule(word, 4)
      if word == prev_word:
          # verb reduction
          prev_word = word
          word = self.apply_rule(word, 5)
          if word == prev_word:
              # vowel removal
              word = self.apply_rule(word, 6)
  
      return word
  
file_path: nltk/nltk/stem/rslp.py
imports: from nltk.data import load
  from nltk.stem.api import StemmerI
label_desc: Use image node_id 3 for calling the RSLPStemmer obj's underlying member method code with example usage: obj.stem(word) and returns: word