public static bool DetectQuestion(CoreDocument coredoc) { _analyzer.CreateParseTree(coredoc); int index = 0; while (index < _analyzer.treeArray.Length) { Constituent constituent = (Constituent)_analyzer.treeArray[index]; if (constituent.label() != null && (constituent.label().toString().Equals("SQ") || constituent.label().toString().Equals("SBARQ"))) { return(true); } index++; } return(false); }