docs: public static boolean isPossibleExample(CcgParser parser, CcgExample example) {
      CcgBeamSearchChart chart = new CcgBeamSearchChart(example.getSentence(), Integer.MAX_VALUE, 100);
      SyntacticChartCost filter = SyntacticChartCost.createAgreementCost(example.getSyntacticParse());
      parser.parseCommon(chart, example.getSentence(), filter, null, -1, 1);
      List<CcgParse> parses = chart.decodeBestParsesForSpan(0, example.getSentence().size() - 1, 100, parser);
      if (parses.size() == 0) {
        // Provide a deeper analysis of why parsing failed.
        analyzeParseFailure(example.getSyntacticParse(), chart, parser.getSyntaxVarType(), "Parse failure", 0);
        System.out.println("Discarding example: " + example);
        return false;
      } else if (parses.size() > 1) {
        analyzeParseFailure(example.getSyntacticParse(), chart, parser.getSyntaxVarType(), "Parse duplication", 2);
        System.out.println("Duplicate correct parse: " + example.getSyntacticParse());
      }
      return true;
    }