Improved language detection in example