Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (14 sloc) 0.65 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

== Welcome
This is a n-gram based language detector, written in ruby.

For technical details about language detection, I recommend this paper: http://www.sfs.uni-tuebingen.de/iscl/Theses/kranig.pdf

== Installation
sudo gem sources -a http://gems.github.com (you only have to do this once)
sudo gem install feedbackmine-language_detector

== Usage
require 'language_detector'
d = LanguageDetector.new
p d.detect('this text is in English')

== Thanks
Kevin Burton (http://feedblog.org/2005/08/19/ngram-language-categorization-source/ ). I used all the training data in his ngramcat project.

== Follow us on twitter

http://twitter.com/feedbackmine
Something went wrong with that request. Please try again.