Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public bool IsValidElement(TypedTextElement element)
 {
     return(element.Word.Length > 1);
 }
 public bool IsValidElement(TypedTextElement element)
 {
     return(!boringPartsOfSpeech.Contains(element.Type));
 }
Ejemplo n.º 4
0
 public bool IsValidElement(TypedTextElement element)
 {
     return(!boringWords.Contains(element.Word));
 }