if (currentLetter == '<') { ignore = true; } else if (currentLetter == '>') { ignore = false; }   if (!ignore && !started && Character.isLetter(currentLetter)) { nextWord.setStart(i); started = true; } else if (started && !Character.isLetter(currentLetter)) { nextWord.setText(text.substring(nextWord.getStart(), i)); finished = true; }
i = ignore(i,'<','>');
  public Word next() {    Word tempWord = new Word(currentWord);    if (nextWord != null) {      currentWord.copy(nextWord);      int current = sentanceIterator.current();      if (current == currentWord.getStart())        startsSentence = true;      else {        startsSentence = false;        if (currentWord.getEnd() > current) {          sentanceIterator.next();        }      }    } else {      currentWord = null;      return tempWord;    }    int i = currentWord.getEnd();    boolean finished = false,            started  = false,            ignore   = false;    while (i < text.length() && !finished) {      char currentLetter = text.charAt(i);      //Ignore things inside tags.      if (currentLetter == '<') {        ignore = true;      } else if (currentLetter == '>') {        ignore = false;      }            //Find words.      if (!ignore && !started && Character.isLetter(currentLetter)) {        nextWord.setStart(i);        started = true;      } else if (started && !Character.isLetter(currentLetter)) {        nextWord.setText(text.substring(nextWord.getStart(), i));        finished = true;      }      i++;    }    if (!started) {      nextWord = null;    }    return tempWord;  }