Detect Language API Crystal Client
Crystal
Latest commit f7aed05 Aug 23, 2015 @laurynas laurynas Initial commit
Permalink
Failed to load latest commit information.
spec Initial commit Aug 23, 2015
src Initial commit Aug 23, 2015
.gitignore Initial commit Aug 23, 2015
.travis.yml Initial commit Aug 23, 2015
LICENSE Initial commit Aug 23, 2015
Projectfile Initial commit Aug 23, 2015
README.md Initial commit Aug 23, 2015

README.md

detect_language

Detect Language API Crystal Client

Installation

Add it to Projectfile

deps do
  github "detectlanguage/detectlanguage-crystal", name: "detect_language"
end

Usage

require "detect_language"

DetectLanguage.configure do |config|
  config.api_key = "YOUR API KEY"
end

Language detection

results = DetectLanguage.detect("Buenos dias señor")

pp results[0].language

Contributing

  1. Fork it ( https://github.com/detectlanguage/detectlanguage-crystal/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request