Interface SyntaxDiagnose

All Known Implementing Classes:
SyntaxDiagnoseImpl

public interface SyntaxDiagnose

interface for communicating with the CDG-Parser


Method Summary
 void analyze(java.lang.String sentence)
          analyses the german natural language user input for grammatical correctnes
 Explanation explanation()
          gives an explanation for incorrect sentences !!!return type may change!!!
 boolean isCorrect()
          the natural language sentence input by the user was correct
 double quality()
          evaluation of the quality of an input sentence
 java.util.TreeMap syntaxTree()
          returns syntax tree generated by the CDG-Parser !!!return type may change!!!
 

Method Detail

analyze

public void analyze(java.lang.String sentence)
analyses the german natural language user input for grammatical correctnes
Parameters:
sentence - the sentence input by user

isCorrect

public boolean isCorrect()
the natural language sentence input by the user was correct
Returns:
the sentence was correct

explanation

public Explanation explanation()
gives an explanation for incorrect sentences !!!return type may change!!!
Returns:
explanation of the error containing a list of violations

quality

public double quality()
evaluation of the quality of an input sentence
Returns:
quality of input sentence - 0.0 if sentence was correct

syntaxTree

public java.util.TreeMap syntaxTree()
returns syntax tree generated by the CDG-Parser !!!return type may change!!!
Returns:
the syntax tree generated by the CDG-Parser