Releases: detectlanguage/detectlanguage-ruby
Releases · detectlanguage/detectlanguage-ruby
v2.0.0
Added
detect_batch
method for batch detections
Changed
- Switched to v3 API which uses an updated language detection model
⚠️ detect
method result fields arelanguage
andscore
⚠️ Proxy URL configured usingconfig.proxy
- Client connection is reused. If you change configuration after the client is initialized, you need to reset client using
DetectLanguage.client = nil
.
Deprecated
- Calling
detect
with array argument. Usedetect_batch
instead. simple_detect
- Usedetect_code
instead.user_status
- Useaccount_status
instead.configuration
- Useconfig
instead.
Removed
- Secure mode configuration. HTTPS is always used.
- Ruby 1.x support
Full Changelog: v1.1.2...v2.0.0