I\'m looking for a library or technique to detect the input language of blocks of text provided by users. Online lookups (like Google translate) won\'t work for this task as
Here are two more n-gram-based gems you might want to try. They work offline.