Module: JtcgLocaleDetector
- Defined in:
- lib/jtcg_locale_detector.rb,
lib/jtcg_locale_detector/client.rb,
lib/jtcg_locale_detector/version.rb,
lib/jtcg_locale_detector/detector.rb
Defined Under Namespace
Classes: Client, Detector, Error
Constant Summary collapse
- VERSION =
"1.0.2".freeze
Class Method Summary collapse
-
.detect(text, **options) ⇒ Object
Convenience method for quick detection.
-
.detect_batch(texts, **options) ⇒ Object
Batch detection.
-
.detect_file(file_path, **options) ⇒ Object
Detect from file.
Class Method Details
.detect(text, **options) ⇒ Object
Convenience method for quick detection
9 10 11 12 |
# File 'lib/jtcg_locale_detector.rb', line 9 def self.detect(text, **) client = Client.new(**) client.detect(text) end |