Language identifier that implements a simple cosine similarity based approach as well as an approach that uses SVMs