test_class.declarator: detector = new DictionaryBasedSentenceTypeDetector()
test_class.modifier: private
test_class.original_string: private DictionaryBasedSentenceTypeDetector detector = new DictionaryBasedSentenceTypeDetector();
test_class.type: DictionaryBasedSentenceTypeDetector
test_class.var_name: detector
test_class.declarator: tokenizer = new SimpleTokenizer()
test_class.modifier: private
test_class.original_string: private SimpleTokenizer tokenizer = new SimpleTokenizer();
test_class.type: SimpleTokenizer
test_class.var_name: tokenizer
test_class.file: dialog/src/test/java/roboy/linguistics/sentenceanalysis/DictionaryBasedSentenceTypeDetectorTest.java
test_class.identifier: DictionaryBasedSentenceTypeDetectorTest
test_case.body: @Test
  	public void testWhatIs() {
  		Interpretation interpretation = new Interpretation("What is area code of Germany?");
  		interpretation = tokenizer.analyze(interpretation);
  		interpretation = detector.analyze(interpretation);
  		assertTrue(interpretation.getSentenceType() == SentenceType.WHAT);
  		
  //		interpretation = new Interpretation("Hey Roboy, what is area code of Germany?");
  //		interpretation = tokenizer.analyze(interpretation);
  //		interpretation = detector.analyze(interpretation);
  //		assertTrue(interpretation.getSentenceType()==SENTENCE_TYPE.WHAT);
  	}
test_case.class_method_signature: DictionaryBasedSentenceTypeDetectorTest.testWhatIs()
test_case.full_signature: @Test public void testWhatIs()
test_case.identifier: testWhatIs
test_case.invocations: analyze analyze assertTrue getSentenceType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWhatIs()
focal_class.file: dialog/src/main/java/roboy/linguistics/sentenceanalysis/DictionaryBasedSentenceTypeDetector.java
focal_class.identifier: DictionaryBasedSentenceTypeDetector
focal_class.interfaces: implements Analyzer
focal_class.class_method_signature: DictionaryBasedSentenceTypeDetector.analyze(Interpretation interpretation)
focal_class.full_signature: @Override public Interpretation analyze(Interpretation interpretation)
focal_class.identifier: analyze
focal_class.modifiers: @Override public
focal_class.parameters: (Interpretation interpretation)
focal_class.return: Interpretation
focal_class.signature: Interpretation analyze(Interpretation interpretation)
focal_class.class_method_signature: DictionaryBasedSentenceTypeDetector.determineSentenceType(List<String> tokens, String[] posTags)
focal_class.full_signature: private SentenceType determineSentenceType(List<String> tokens, String[] posTags)
focal_class.identifier: determineSentenceType
focal_class.modifiers: private
focal_class.parameters: (List<String> tokens, String[] posTags)
focal_class.return: SentenceType
focal_class.signature: SentenceType determineSentenceType(List<String> tokens, String[] posTags)
focal_method.body: @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;
  	}
focal_method.class_method_signature: DictionaryBasedSentenceTypeDetector.analyze(Interpretation interpretation)
focal_method.full_signature: @Override public Interpretation analyze(Interpretation interpretation)
focal_method.identifier: analyze
focal_method.invocations: getTokens getPosTags equals getSentenceType determineSentenceType setSentenceType
focal_method.modifiers: @Override public
focal_method.parameters: (Interpretation interpretation)
focal_method.return: Interpretation
focal_method.signature: Interpretation analyze(Interpretation interpretation)