I will still try to improve it, but even with the current version I got >95% accuracy with the sample test(around 100 sentence in English, Finnish and Indonesian)

Simply create a Trigram instance for the text and call isEnglish method. This can also be used for other language.