This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Sun Apr 20 12:11:13 -0700 2008 | [porras] |
| |
README | Sun Apr 20 12:11:13 -0700 2008 | [porras] |
| |
Rakefile | Sun Apr 20 12:11:13 -0700 2008 | [porras] |
| |
init.rb | Sun Apr 20 15:03:53 -0700 2008 | [porras] |
| |
install.rb | Sun Apr 20 12:11:13 -0700 2008 | [porras] |
| |
lib/ | Sun Apr 20 12:11:13 -0700 2008 | [porras] |
| |
tasks/ | Sun Apr 20 12:11:13 -0700 2008 | [porras] |
| |
test/ | Sun Apr 20 12:11:13 -0700 2008 | [porras] |
| |
uninstall.rb | Sun Apr 20 12:11:13 -0700 2008 | [porras] |
README
= LanguageDetection Rails plugin It adds +language+ method to String class. It uses Classifier (<tt>gem install classifier</tt>) to try to detect the language, based on the samples present in <tt>RAILS_ROOT/lang/<lang>/*.txt</tt>. This path is configurable: LanguageDetection::LanguageClassifier.samples_dir = "/another/path" To detect the language of a string, simply use the +language+ method: > "hola".language => "es" > "hello".language => "en" Remember this is a bayesian filter, so: * Results are not bullet-proof * And depends on the size and quality of your samples Copyright (c) 2008 Sergio Gil, released under the MIT license




