@@ -6,6 +6,7 @@ Detect Language API Ruby Client
66
77Detects language of the given text. Returns detected language codes and scores.
88
9+
910## Installation
1011
1112Add this line to your application's Gemfile:
@@ -14,6 +15,10 @@ Add this line to your application's Gemfile:
1415gem 'detect_language'
1516```
1617
18+ ### Upgrading
19+
20+ When upgrading please check [ changelog] ( CHANGELOG.md ) for breaking changes.
21+
1722### Configuration
1823
1924Get your personal API key by signing up at https://detectlanguage.com
@@ -35,7 +40,7 @@ DetectLanguage.detect("Buenos dias señor")
3540#### Result
3641
3742``` ruby
38- [{" language" =>" es" , " isReliable " =>true , " confidence " => 6.62 }]
43+ [{" language" =>" es" , " score " =>0.95 }]
3944```
4045
4146### Language code detection
@@ -67,8 +72,8 @@ DetectLanguage.detect_batch(["Buenos dias señor", "Labas rytas"])
6772Result is array of detections in the same order as the texts were passed.
6873
6974``` ruby
70- [ [{" language" =>" es" , " isReliable " =>true , " confidence " => 6.62 }],
71- [{" language" =>" lt" , " isReliable " =>true , " confidence " => 6.82 }] ]
75+ [ [{" language" =>" es" , " score " =>0.95 }],
76+ [{" language" =>" lt" , " score " =>0.98 }] ]
7277```
7378
7479### Getting your account status
0 commit comments