Sha256: 4faf4730a354ba0421e43db72c5e8c3e22c297094d6bcf43a09f1ea4786bdc9b
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 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 "cld2" ``` 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cld2-1.0.0 | README.md |