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 ; }
public SentenceElement(string sentenceElementValue, SentenceElementType type) { this.Value = sentenceElementValue; this.SentenceElementType = type; }
public SentenceElement(string sentenceElementValue, SentenceElementType type) { }