N-Gram Based Text Categorization