code: public String removeAccents(String word) {
      char[] temp = word.toCharArray();
      for (int i = 0; i < temp.length; i++) {
        if (temp[i] == 'á')
          temp[i] = 'a';
        else if (temp[i] == 'é')
          temp[i] = 'e';
        else if (temp[i] == 'í')
          temp[i] = 'i';
        else if (temp[i] == 'ó')
          temp[i] = 'o';
        else if (temp[i] == 'ú')
          temp[i] = 'u';
      }
      return new String(temp);
    }
docs: Remove diacritics from root token (usually a verb).
  
  @param word
  the token
  
  @return the word