detectlanguage-crystal v0.3.0
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
- Fork it ( https://github.com/detectlanguage/detectlanguage-crystal/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Repository
detectlanguage-crystal
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- over 2 years ago
- August 23, 2015
License
MIT License
Links
Synced at
Fri, 08 Nov 2024 01:08:44 GMT
Languages