what_you_say 0.4.3-x64-mingw-ucrt → 0.4.4-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbce37b52220f4ad2d8e94ef4b1d489d3b34f821b297b4b5385ba3565d989e79
4
- data.tar.gz: 7bbd5d8c56976ec5df0b89510ff02e8e7d24c9e7408a5f85776ed08373dcc1e0
3
+ metadata.gz: 74bd0b10ec966b572217602243446715dcc3a2efa4679a0938316c8b468b36dd
4
+ data.tar.gz: 61c6c310338b26dad2bd081a69aed34d6d388991cb00229f8bdd878282304b38
5
5
  SHA512:
6
- metadata.gz: d05b485abb7ccfa096bb2deca10bb45ec9138d354e5b61cfbd38404bb3086fb4522498240830c978cbafcd4d4304bc71512f12e7aa793d74c10684f6e4933b45
7
- data.tar.gz: 93749ffb70c6f784f27edd80a81f774db91dc75a2a400d53409ac551e62f98c85a27f562b5ec970e370da94144589829d86bc6660b5f37271a3c4aac1921965e
6
+ metadata.gz: 674645a28186c1ea835786cd9a6ee4a4d53f003c4f2910ca909697a62ace511e3be235b9d741cf8fd71bddc315b44618e0e8cb31900c8c3219cc64aaed8b8b02
7
+ data.tar.gz: 474ace8d7d7d7f7c369b53ee1ae9510afe82f4906e7032206a8815535a0b8e139553c79b4a83abb4c4e1278648c0fd6aaf634593f90a19e7af2805a72f4fccdc
data/README.md CHANGED
@@ -1,14 +1,12 @@
1
1
  # WhatYouSay
2
2
 
3
- Quick and easy natural language detection wrapping the [Whatlang Rust crate](https://github.com/greyblake/whatlang-rs). Instantly identify the source language of a piece of text.
3
+ Quick and easy natural language detection wrapping the [lingua-rs Rust crate](https://github.com/pemistahl/lingua-rs). Instantly identify the source language of a piece of text.
4
4
 
5
5
  ![What you say!!](https://user-images.githubusercontent.com/64050/224237944-ceb2570c-d544-474a-8c91-41433efdee43.png)
6
6
 
7
- - Supports [69 languages](https://github.com/greyblake/whatlang-rs/blob/master/SUPPORTED_LANGUAGES.md) (nice!)
7
+ - Supports [75+ languages](https://github.com/pemistahl/lingua-rs/tree/main#3-which-languages-are-supported)
8
8
  - Core library is written in Rust; this is a Ruby wrapper to it
9
9
  - Lightweight, fast, and simple
10
- - Recognizes not only a language, but also a script (Latin, Cyrillic, etc)
11
- - Provides reliability information
12
10
 
13
11
  ## Installation
14
12
 
@@ -22,7 +20,9 @@ If bundler is not being used to manage dependencies, install the gem by executin
22
20
 
23
21
  ## Usage
24
22
 
25
- The method to call is `_?`. Why? Because. Pass in the text whose language you want to detect:
23
+ The method to call is `_?`. Why? Because it looked nice.
24
+
25
+ Pass in the text whose language you want to detect:
26
26
 
27
27
  ```ruby
28
28
  require "what_you_say"
@@ -31,8 +31,8 @@ text = "Ĉu vi ne volas eklerni Esperanton? Bonvolu! Estas unu de la plej bonaj
31
31
 
32
32
  result = WhatYouSay._?(text)
33
33
 
34
- assert_equal("epo", result.code)
35
- assert_equal("esperanto", result.eng_name)
34
+ assert_equal("epo", result.lang.code)
35
+ assert_equal("esperanto", result.lang.eng_name)
36
36
  ```
37
37
 
38
38
  You also have to opportunity to `inspect` some output:
@@ -40,7 +40,7 @@ You also have to opportunity to `inspect` some output:
40
40
  ```ruby
41
41
  text = "Եվ ահա ես ստանում եմ մի զանգ պատահական տղայից"
42
42
  WhatYouSay._?(text).inspect
43
- #=> #<WhatYouSay::Lang code="hye" eng_name="Armenian">
43
+ #=> #<WhatYouSay::Lang code="hye" eng_name="armenian">
44
44
  ```
45
45
 
46
46
  ## Development
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhatYouSay
4
- VERSION = "0.4.3"
4
+ VERSION = "0.4.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: what_you_say
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Garen J. Torikian