Skip to content
Language Detection API Crystal Client
Crystal
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
src
.gitignore
.travis.yml
LICENSE
README.md
shard.yml

README.md

detect_language

GitHub release Build Status

Detect Language API Crystal Client

Installation

Add it to shard.yml

dependencies:
  detect_language:
    github: detectlanguage/detectlanguage-crystal
    branch: master

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
You can’t perform that action at this time.