Word/Token-Level Text Error Correction (TEC) Algorithm