Add detect and get_language capability

* Cherry picked from the PR #16
Merge pull request #18 from sharoonthomas/torcellite

Add detect and get_language capability