class DictionaryBasedSentenceTypeDetector implements Analyzer {

	@Override
	public Interpretation analyze(Interpretation interpretation) {
		List<String> tokens = interpretation.getTokens();
		String[] posTags = interpretation.getPosTags();

		//Sentence Types shall be handled in Semantic Parser Analyzer. This is a fallback, in the event that SPA does not detect the sentence type
		if(interpretation.getSentenceType().equals(SentenceType.STATEMENT)){
		    SentenceType sentenceType = determineSentenceType(tokens, posTags);
            interpretation.setSentenceType(sentenceType);

        }
		return interpretation;
	}

}