Framework for Deviation Detection in Text