Can't stop dreaming about an easy language detector? Just use wtf_lang!
nashby
gem "wtf_lang", "~> 0.3.1"