title: Error Cannot implicitly convert type 'string[]' to 'string'
body: <p>I am experiencing an Error within <strong>nouns[i] = SearchKeywords(words, sentences);</strong> every time I run my program. What should I do?</p>
  
  <p>*I edited to include the SearchKeywords method. I am trying to find all words that have "a" and "an" before them.</p>
  
  <p>Error is,
  <strong>Error  Cannot implicitly convert type 'string[]' to 'string'</strong></p>
  
  <pre><code>    string[] SearchKeywords(List&lt;string&gt; keywords, string[] sentence){
  
      int[] location = new int[sentence.Length];
  
      foreach (string word in keywords)
      {
          for (int i = 0; i &lt; sentence.Length;i++ )
          {
              string[] nouns = new string[i];
              if (String.IsNullOrEmpty(sentence[i]))
              {
                  return null;
              }
              else
              {
                  location[i] = sentence[i].IndexOf(word);
  
                  nouns[i] = sentence[i].Substring(location[i]);
  
                  if (nouns[i].Contains(word)) return nouns;
              }
          }
  
      }
      return sentence;
  
     string[] checkForIndefinite()
     {
         string input = txtEntry.Text;
  
         string text = lbltxtOutput.Text;
  
         Tools tool = new Tools();    
  
         List&lt;string&gt; words = new List&lt;string&gt;();
         words.Add("an");
         words.Add("a");
  
         foreach(string sentence in GetWords(text))
         {
             for (int i = 0; i &lt; sentence.Length; i++)
             {
                 string[] nouns = new string[i];
                 string[] sentences = new string[i];
                 sentences[i] = sentence;
  
                 **nouns[i] = SearchKeywords(words, sentences);**
  
                return nouns;
  
             }
         }
         return null;
     }
  </code></pre>