what_you_say 0.1.0-x64-mingw-ucrt → 0.2.0-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: ab57fdccc4b93faeda6bb20b8d20d1fe2a11260b4eb7f359617bddd0c911a111
4
- data.tar.gz: 42c5447afbf7410f12b84fd8afe7752f46895129ba9c9dc98be327752cfc01b6
3
+ metadata.gz: 6a5a4fa6f7254e11e9a5f2ced3c1366a1204e6ebbfae3b473323516f57fdb97d
4
+ data.tar.gz: 1f77ac5c536dd3a734666e96983d8abc35cc37be8fc5685aba94ea181f01f02d
5
5
  SHA512:
6
- metadata.gz: 35a78e157b04dd9b8f11b1d48694d7e217cc70b18b3b5aa309506ec03f5555fb521b2a44003ace1c01d99d3520741bb80d0b09c861e1fab049d068c4614fe6d5
7
- data.tar.gz: 33776c95663364da0fe6fb18f36bae7a2fa935f36863f5bd7a0c41d7d9a817dfb568782f5d604f66db492fb3c5b15d08e3e9b0db8e2e1f437bc1eeef88600965
6
+ metadata.gz: 6c5ae57d3cd8764298f7e9833281fa9e7b30a7efb0905b33a350f6ec4229bcdfd2f1605b8bb996a356ee43b851580b5840e5e601b0d8385ed062f9d8107d676a
7
+ data.tar.gz: c1aef31c4de04536fd79451a88ee65f691ff54a1a20040ec3ce5393d7bce95ab007e2d5addc63d396710503f9aa5780a4e28c1118547a54c0a21e5a05d3485df
data/README.md CHANGED
@@ -1,5 +1,7 @@
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.
4
+
3
5
  ![What you say!!](https://user-images.githubusercontent.com/64050/224237944-ceb2570c-d544-474a-8c91-41433efdee43.png)
4
6
 
5
7
  - Supports [69 languages](https://github.com/greyblake/whatlang-rs/blob/master/SUPPORTED_LANGUAGES.md) (nice!)
@@ -23,6 +25,8 @@ If bundler is not being used to manage dependencies, install the gem by executin
23
25
  The method to call is `_?`. Why? Because. Pass in the text whose language you want to detect:
24
26
 
25
27
  ```ruby
28
+ require "what_you_say"
29
+
26
30
  text = "Ĉu vi ne volas eklerni Esperanton? Bonvolu! Estas unu de la plej bonaj aferoj!"
27
31
 
28
32
  result = WhatYouSay._?(text)
@@ -35,6 +39,14 @@ assert_predicate(result, :reliable?)
35
39
  assert_equal(1, result.confidence)
36
40
  ```
37
41
 
42
+ You also have to opportunity to `to_s` some output:
43
+
44
+ ```ruby
45
+ text = "Եվ ահա ես ստանում եմ մի զանգ պատահական տղայից"
46
+ WhatYouSay._?(text).to_s
47
+ #=> #<WhatYouSay::Info lang=#<WhatYouSay::Lang code="hye" name="Հայերեն" eng_name="Armenian"> script="Armenian" reliable=true confidence=1>
48
+ ```
49
+
38
50
  ## Development
39
51
 
40
52
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake compile test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhatYouSay
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
data/lib/what_you_say.rb CHANGED
@@ -7,7 +7,6 @@ require "what_you_say/lang"
7
7
  require "what_you_say/version"
8
8
 
9
9
  if ENV.fetch("DEBUG", false)
10
- require "awesome_print"
11
10
  require "debug"
12
11
  end
13
12
 
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.1.0
4
+ version: 0.2.0
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2023-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake