code: public List<Token> findNouns(Sentence sentence) {
      List<Token> nouns = new ArrayList<Token>();
  
      List<SyntacticChunk> syntChunks = sentence.getSyntacticChunks();
  
      for (int i = 0; i < syntChunks.size(); i++) {
        String tag = syntChunks.get(i).getTag();
  
        if (tag.equals("PIV") || tag.equals("ACC") || tag.equals("SC")) {
  
          for (Token token : syntChunks.get(i).getTokens()) {
  
            if (token.getPOSTag().equals("n") || token.getPOSTag().equals("pron-pers") || token.getPOSTag().equals("prop")) {
                nouns.add(token);
              }
            }
          }
        }
  
      return nouns;
    }
docs: Looks for a noun in the sentence's objects.
  
  @param sentence
  entered by the user
  @return a <tt>List></tt> of every noun found in the sentence's objects and
  its location in the sentence