i just want to ask if user input sentence is present in the array. like for example "Vince borrow book" then i just want to check if "Vince" "Borrow" and "Book" are present in arrays. im noob
string sentence = tbSentence.Text;
string[] words = sentence.Split(' ');
foreach (string word in words)
{
if(subjectarray.Any(word.Contains) && verbarray.Any(word.Contains))
{
MessageBox.Show("Sentence Valid");
}
}