Support for language detection