An algorithmic approach to prescriptive assessment in English as a Second Language