A mirror/ modernization of https://code.google.com/p/language-detection/source/checkout