Evaluation of the frequency and types of written errors in French as a foreign language: a corpus-based analysis