public bool Contains(Word word)
 {
     if (headVerb != null)
     {
         if (WordByValue.Instance.Equals(word, headVerb))
         {
             return(true);
         }
     }
     if (modals != null)
     {
         if (modals.Contains(word))
         {
             return(true);
         }
     }
     if (adverbs != null)
     {
         if (adverbs.Contains(word))
         {
             return(true);
         }
     }
     if (nounComplement != null)
     {
         if (nounComplement.Contains(word))
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
 public bool Contains(Word word)
 {
     if (word.Text == particle.Text)
     {
         return(true);
     }
     return(nounPhrase.Contains(word));
 }
 public bool Contains(Word word)
 {
     if (nominal != null)
     {
         return(nominal.Contains(word));
     }
     return(Prepositionals.Any(phrase => phrase.Contains(word)));
 }
 public bool Contains(Word word)
 {
     if (nominal != null)
     {
         return(nominal.Contains(word));
     }
     return(false);
 }
 public bool Contains(Word word)
 {
     if (WordByValue.Instance.Equals(word, preposition))
     {
         return(true);
     }
     return(complexChain.Contains(word));
 }