//Does sentence 2 answer question 1? //TODO (worry about this later) Also need to worry about sentence level symmetry //Also need to worry about always returning the first result private bool GetPartialMatch(Sentence sentence1, Sentence sentence2) { if(sentence2.isQuestion()){ return false; } if(sentence1.noun1 != null){ if(sentence1.noun1 != sentence2.noun1){ return false; } } if(sentence1.noun2 != null){ if(sentence1.noun2 != sentence2.noun2){ return false; } } if(sentence1.verb != Sentence.Verb.Unknown){ if(sentence1.verb != sentence2.verb){ return false; } } return true; }