Detect language of the input text and return Language code.
static String detect(String text) { Detector detector = DetectorFactory().create(); detector.append(text); return detector.detect(); }