package com.github.bot.curiosone.core.nlp.base;

/**
* Different typology of sentence.
*/

public enum PhraseType {

  /**
  * Sentence in input is a question.
  */
  QUESTION,

  /**
  * Sentence in input is an affirmation.
  */
  AFFIRMATION,

  /**
  * Sentence in input is an exclamation.
  */
  EXCLAMATION;

  /**
  * Returns the PhraseType for the given input phrase.
  * @param str the Phrase to be examinated.
  */
  public static PhraseType get(String str) {
    char c = str.charAt(str.length() - 1);
    switch (c) {
      case '?': return QUESTION;
      case '!': return EXCLAMATION;
      default: return AFFIRMATION;
    }
  }
}

@@ -110,32 +110,33 @@
 Type %7B%0A%0A  /**%0A  
+ 
 * Sentence in in
@@ -152,24 +152,25 @@
 question.%0A  
+ 
 */%0A  QUESTIO
@@ -171,32 +171,33 @@
 UESTION,%0A%0A  /**%0A
+ 
   * Sentence in 
@@ -219,24 +219,25 @@
 irmation.%0A  
+ 
 */%0A  AFFIRMA
@@ -245,24 +245,25 @@
 ION,%0A%0A  /**%0A
+ 
   * Sentence
@@ -289,24 +289,25 @@
 lamation.%0A  
+ 
 */%0A  EXCLAMA
@@ -325,29 +325,28 @@
 *%0A  
+ 
 * 
-R
+G
 et
-urn
 s the 
-P
+p
 hrase
-T
+ t
 ype 
@@ -363,22 +363,16 @@
 ven 
-input 
 phrase.%0A
   * 
@@ -367,16 +367,17 @@
 phrase.%0A
+ 
   * @par
@@ -383,16 +383,36 @@
 ram str 
+a String containing 
 the Phra
@@ -432,16 +432,109 @@
 inated.%0A
+   * @return a String containing the phrase type for the given phrase.%0A   * @see PhraseType%0A 
   */%0A  p

improve and fix javadoc in PhraseType class