Initial commit with original code taken from lang-guess https://code.google.com/p/lang-guess/ on 2014-02-27