Sha256: 071c15ab6e5762e48624afefa2c9b4ed3250447647b331ca40a9827e253063c4
Contents?: true
Size: 638 Bytes
Versions: 7
Compression:
Stored size: 638 Bytes
Contents
# Compact Language Detection Blazing-fast language detection for Ruby provided by Google Chrome's Compact Language Detector. ## How to Use ```ruby CLD.detect_language("This is a test") # => {:name => "ENGLISH", :code => "en", :reliable => true} CLD.detect_language("plus ça change, plus c'est la même chose") # => {:name => "FRENCH", :code => "fr", :reliable => true} ``` ## Installation Add this line to your application's Gemfile: ```ruby gem "cld" ``` And then execute: ```sh $ bundle ``` ## Thanks Thanks to the Chrome authors, and to Mike McCandless for writing a Python version. Licensed the same as Chrome. Jason Toy
Version data entries
7 entries across 7 versions & 2 rubygems
Version | Path |
---|---|
cld-0.11.0 | README.md |
cld-0.10.0 | README.md |
cld-0.8.0 | README.md |
cld-fixed-0.7.1 | README.md |
cld-0.7.0 | README.md |
cld-0.6.0 | README.md |
cld-0.5.0 | README.md |