public static String[][] checkForErrors(ArrayList<Sentence> sentences) {
        int numSentences = sentences.size();
        int numPossibleErrors = 2;
        int i = 0, j = 1;
        String[][] errors = new String[numSentences][numPossibleErrors];

        for (Sentence s : sentences) {
            if (s.getClauses() != null) {
                /*for(Clause c: s.getClauses()){
                 System.out.println(id.actionsOf(c.getClause(), s.getPosTags()).get(0).isEmpty());
                 for(String z: s.getPosTags())
                 System.out.println(z);
                 System.out.println(id.isClause(c.getClause(), s.getPosTags()));
                 }*/
                errors[i][0] = CompleteSentence.errorOf(s.getClauses());
                //System.out.println(errors[i][0]);
                if (s.getClauses().size() != 0) {
                    for (j = 1; j < s.getClauses().size() + 1; j++) {

                        errors[i][j] = SubjectVerbPluralityAgreement.errorOf(s.getClauses().get(j - 1));

                    }

                } else {
                    if (!errors[i][0].equals("not a complete sentence")) {
                        errors[i][j] = "not a complete sentence";
                    }
                }
                i++;
            }
        }

        return errors;
    }