what_you_say 0.3.0-x86_64-darwin → 0.4.0-x86_64-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: 63eecf62c31f59ff621fdf2f1dc4126d36b7cfa0bb77c0cfbb3bae4ef31e8b3d
4
- data.tar.gz: d4d08a422dc6f12fb1a164ecf72df61a10e45852524413775426c244e6e6c2dc
3
+ metadata.gz: 0de0177ae85d73a3dc83518b42f9f797d1de847bf4ea9d3a31f258d6373b0152
4
+ data.tar.gz: 221adf9b0bc2ed5103d59d1795484e1f62ee9ed0172a706f9ff80fefb8b08336
5
5
  SHA512:
6
- metadata.gz: 46d29fdd090d8a761e96b791efe64246c83551d5e1fd1eb07556c7a8a33b746593e9e7e3b8aab139ff6288632af74ec36a0b0fef79b3be762a3f19dac12d80f7
7
- data.tar.gz: 99bb94001c119a204f3410a901591bc0f4de2bcbcb453b63c13331ada1f05032b17727f436a7aa9f26431f07e92a99f73d53eb69ff3a56a78c517abc66a44d17
6
+ metadata.gz: c775b101552296f68b9b4aa742edfed7212042b86cda722ba03f3ff0200768cfbec80d762a9a9fe496022ea7d5a405f059664e2cda8d424ccf35d85d4b3acbd6
7
+ data.tar.gz: a8929dff797821d98a5f652d9482ba5aa8aaab56777a89ab7268b99c625449bb31e4340d0e16362a37d9d4118e40262e2d5966daafad311f6c63a4ba47e9178d
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"
@@ -32,11 +32,7 @@ text = "Ĉu vi ne volas eklerni Esperanton? Bonvolu! Estas unu de la plej bonaj
32
32
  result = WhatYouSay._?(text)
33
33
 
34
34
  assert_equal("epo", result.lang.code)
35
- assert_equal("Esperanto", result.lang.name)
36
- assert_equal("Esperanto", result.lang.eng_name)
37
- assert_equal("Latin", result.script)
38
- assert_predicate(result, :reliable?)
39
- assert_equal(1, result.confidence)
35
+ assert_equal("esperanto", result.lang.eng_name)
40
36
  ```
41
37
 
42
38
  You also have to opportunity to `inspect` some output:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhatYouSay
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: what_you_say
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-12 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake