Skip to content

rubydev/language_detector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== 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

About

ruby language detection library using n-gram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%