public static bool IsPunctuator(SentenceElementType type)
 {
     return type.Value == Punctuator_FullStop.Value
        || type.Value == Punctuator_Comma.Value
        || type.Value == Punctuator_LeftRoundBracket.Value
        || type.Value == Punctuator_RightRoundBracket.Value
        || type.Value == Punctuator_Colon.Value
         ;
 }
 public static bool IsWord(SentenceElementType type)
 {
     return type.Value == Word.Value;
 }
 public static bool IsBracket(SentenceElementType type)
 {
     return type.Value == Punctuator_LeftRoundBracket.Value
        || type.Value == Punctuator_RightRoundBracket.Value
         ;
 }
Beispiel #4
0
 public SentenceElement(string sentenceElementValue, SentenceElementType type)
 {
     this.Value = sentenceElementValue;
     this.SentenceElementType = type;
 }
Beispiel #5
0
 public SentenceElement(string sentenceElementValue, SentenceElementType type)
 {
     this.Value = sentenceElementValue;
     this.SentenceElementType = type;
 }
 public SentenceElement(string sentenceElementValue, SentenceElementType type)
 {
 }