public void addWordTrack(WordTrack word)
 {
     foreach (WordTrack wordT in wordTr)
     {
         if (word.getWord() == wordT.getWord())
         {
             wordT.addNum(word.getNum());
             return;
         }
     }
     wordTr.Add(word);
 }
 public void findShortest(WordTrack word)
 {
     if (shortestWords.FirstOrDefault() != null)
     {
         int s = word.getLength();
         if (s < shortestWords.First().getLength())
         {
             shortestWords.Clear();
             shortestWords.Add(word);
         }
         else if (s == shortestWords.First().getLength())
         {
             shortestWords.Add(word);
         }
         return;
     }
     shortestWords.Add(word);
 }
 public void findCommon(WordTrack word)
 {
     if (commonWords.FirstOrDefault() != null)
     {
         int n = word.getNum();
         if (n > commonWords.First().getNum())
         {
             commonWords.Clear();
             commonWords.Add(word);
         }
         else if (n == commonWords.First().getNum())
         {
             commonWords.Add(word);
         }
         return;
     }
     commonWords.Add(word);
 }
 public void findLongest(WordTrack word)
 {
     if (longestWords.FirstOrDefault() != null)
     {
         int l = word.getLength();
         if (l > longestWords.First().getLength())
         {
             longestWords.Clear();
             longestWords.Add(word);
         }
         else if (l == longestWords.First().getLength())
         {
             longestWords.Add(word);
         }
         return;
     }
     longestWords.Add(word);
 }