code: public boolean isInDictionary(final CharSequence word) {
      try {
        byteBuffer = charSequenceToBytes(word);
      } catch (UnmappableInputException e) {
        return false;
      }
  
      // Try to find a partial match in the dictionary.
      final MatchResult match = matcher.match(matchResult, byteBuffer.array(), 0, byteBuffer.remaining(), rootNode);
  
      // Make sure the word doesn't contain a separator if there is an exact match
      if (containsSeparators && match.kind == EXACT_MATCH) {
        containsSeparators = false;
        for (int i=0; i<word.length(); i++) {
          if (word.charAt(i) == dictionaryMetadata.getSeparator()) {
            containsSeparators = true;
            break;
          }
        }
      }
      
      if (match.kind == EXACT_MATCH && !containsSeparators) {
        return true;
      }
  
      return containsSeparators && match.kind == SEQUENCE_IS_A_PREFIX && byteBuffer.remaining() > 0
          && fsa.getArc(match.node, dictionaryMetadata.getSeparator()) != 0;
    }
docs: Test whether the word is found in the dictionary.
  
  @param word
  the word to be tested
  @return True if it is found.