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.
A quick demo of WhatLanguage in Ruby:
http://www.youtube.com/watch?v=lNqZ2cqOReo&list=UUJ_3fstMOH-g4yBxtvgAWkw&index=0&feature=plcp
For anyone interested, I've found http://rubygems.org/gems/kenwaln-whatlanguage, which is performing excellently.
I'm using CLD which I really like, succinct and easy to use. Give it a try.