what_you_say 0.4.0-x86_64-darwin → 0.4.2-x86_64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0de0177ae85d73a3dc83518b42f9f797d1de847bf4ea9d3a31f258d6373b0152
4
- data.tar.gz: 221adf9b0bc2ed5103d59d1795484e1f62ee9ed0172a706f9ff80fefb8b08336
3
+ metadata.gz: ba2ef1d0d3d06f64e4379d6661274a226be24058c458dfb54088c051ac756dcf
4
+ data.tar.gz: e42b09451690c448cafa6f0df8115d40b7aa716af92dbdb8dd985ac2e0241f11
5
5
  SHA512:
6
- metadata.gz: c775b101552296f68b9b4aa742edfed7212042b86cda722ba03f3ff0200768cfbec80d762a9a9fe496022ea7d5a405f059664e2cda8d424ccf35d85d4b3acbd6
7
- data.tar.gz: a8929dff797821d98a5f652d9482ba5aa8aaab56777a89ab7268b99c625449bb31e4340d0e16362a37d9d4118e40262e2d5966daafad311f6c63a4ba47e9178d
6
+ metadata.gz: f032e930754785198c79ef5df3d6c2757b96ae4bf978e3f50cd82b812eab9c6288a88bdccbacc09a00aeb6fed502eb0092d3a5406ead674afa1ee2a6d1d161e3
7
+ data.tar.gz: '0091677829ab58e919587ce253771b45d8244a4a1afdca0bd8ff17d7062862b127adfc53ee45d514591b6391cfdec3e6168522b9b113062cad3b9dea69db4f70'
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # WhatYouSay
2
2
 
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.
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.
4
4
 
5
5
  ![What you say!!](https://user-images.githubusercontent.com/64050/224237944-ceb2570c-d544-474a-8c91-41433efdee43.png)
6
6
 
7
- - Supports [75+ languages](https://github.com/pemistahl/lingua-rs/tree/main#3-which-languages-are-supported)
7
+ - Supports [69 languages](https://github.com/greyblake/whatlang-rs/blob/master/SUPPORTED_LANGUAGES.md) (nice!)
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
10
12
 
11
13
  ## Installation
12
14
 
@@ -20,9 +22,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
20
22
 
21
23
  ## Usage
22
24
 
23
- The method to call is `_?`. Why? Because it looked nice.
24
-
25
- Pass in the text whose language you want to detect:
25
+ The method to call is `_?`. Why? Because. 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.lang.code)
35
- assert_equal("esperanto", result.lang.eng_name)
34
+ assert_equal("epo", result.code)
35
+ assert_equal("esperanto", result.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::Info lang=#<WhatYouSay::Lang code="hye" name="Հայերեն" eng_name="Armenian"> script="Armenian" reliable=true confidence=1>
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.0"
4
+ VERSION = "0.4.2"
5
5
  end
data/lib/what_you_say.rb CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require_relative "what_you_say/extension"
4
4
 
5
- require "what_you_say/info"
6
5
  require "what_you_say/lang"
7
6
  require "what_you_say/version"
8
7
 
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.0
4
+ version: 0.4.2
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian
@@ -52,7 +52,6 @@ files:
52
52
  - lib/what_you_say/3.1/what_you_say.bundle
53
53
  - lib/what_you_say/3.2/what_you_say.bundle
54
54
  - lib/what_you_say/extension.rb
55
- - lib/what_you_say/info.rb
56
55
  - lib/what_you_say/lang.rb
57
56
  - lib/what_you_say/version.rb
58
57
  homepage: https://github.com/gjtorikian/what_you_say
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module WhatYouSay
4
- class Info
5
- end
6
- end