Sha256: 81b3c99594a51f19dc7854f228ce3d15a7290d8b23826ec5b015d59ec706ea85

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 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
```

## Development

- [install CLD](https://github.com/mzsanford/cld#installing)

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

2 entries across 2 versions & 1 rubygems

Version Path
cld-0.13.0 README.md
cld-0.12.0 README.md