Text this: Model and algorithmic framework for detection and correction of cognitive errors.