ruby language detection library using n-gram
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 9 commits ahead of zaius:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test Add more tests for more languages. Oct 8, 2010
README.rdoc
Rakefile
VERSION Version Bump to version 0.1.6 Apr 21, 2011
language_detector.gemspec 1.0.3: VERSION.rb -> VERSION, cite original author Sep 15, 2010

README.rdoc

N-Gram Language Detection in Ruby

For technical details about language detection, I recommend this paper:

Usage

require 'language_detector'

# using generated model (built from scratch)
d = LanguageDetector.new
p d.detect('this text is in English')

# using textcat n-gram model
d = LanguageDetector.new('tc')
p d.detect('this text is in English')

Thanks