public TextElement(TypedTextElement element, int count) { if (count < 0) { throw new ArgumentOutOfRangeException($"Element count can't be less than zero"); } Element = element.Word; Count = count; }
public bool IsValidElement(TypedTextElement element) { return(element.Word.Length > 1); }
public bool IsValidElement(TypedTextElement element) { return(!boringPartsOfSpeech.Contains(element.Type)); }
public bool IsValidElement(TypedTextElement element) { return(!boringWords.Contains(element.Word)); }