A simple language detection API