Refactored detectorBig into grammar parser and feedback