Modified n gram model for phrase/sentence check