Skip to content

Releases: detectlanguage/detectlanguage-ruby

v2.0.0

20 Aug 15:44
25e6290
Compare
Choose a tag to compare

Added

  • detect_batch method for batch detections

Changed

  • Switched to v3 API which uses an updated language detection model
  • ⚠️ detect method result fields are language and score
  • ⚠️ Proxy URL configured using config.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. Use detect_batch instead.
  • simple_detect - Use detect_code instead.
  • user_status - Use account_status instead.
  • configuration - Use config instead.

Removed

  • Secure mode configuration. HTTPS is always used.
  • Ruby 1.x support

Full Changelog: v1.1.2...v2.0.0