Added language detection feature

Just added the language detection feature.