what_you_say 0.4.3-arm64-darwin → 0.4.4-arm64-darwin

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: 3842c012e3f3b3b19547b5ada41a64ddf57382ec18e1adb20293743edc5d51ca
4
- data.tar.gz: feb79661d5dcba5d5e10aa7889eba503d6f6033e26e48ab1ffd6a7638f5ff48e
3
+ metadata.gz: d34baf6a05420a8249f7eb87c892d9df218f8261d6b9be2a4edf17269259e0b8
4
+ data.tar.gz: 16b5c6666da6762feedb835e1d6488e77fa25a5f207fa3e162543eb31beb7d54
5
5
  SHA512:
6
- metadata.gz: 634c2569a2f3247f0e1cec8bc19cb6a650a20194e1dd9e6f204832112396a250e0450dc5a57a2100455cc745cab631fd722f0428f30e83b2732672705dc7055c
7
- data.tar.gz: 7310c7028255564e61528b0298596bfffb5acf6f6cc43f7ee6bb287b86148380c1bc8baeba6ceeae6e2654e0af366cec66ebb0ec56f11005c2872f769b393ffe
6
+ metadata.gz: 5155b23d535f888d675d2853cd577800ffccaeee344c4ede1af28a84f3be215e5660e1e522687a73d03c814daa82a4e518b909bd4e6d11f64d9f03a8b76e2fc8
7
+ data.tar.gz: 37c6efb45767ba37112eb03c84d29b44d02ffdbac0ff6c637a07ea8c03862f33b5c5801f1e030cb1a55720d6d2ee23321ca31e41a41ccca39ac3602e53bdb24c
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
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian