what_you_say 0.1.1-arm64-darwin → 0.3.0-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: c94232132a6fefabe0d53785d6a73c22e0741ea383aec12958b2f4812168e08a
4
- data.tar.gz: ce6107e299ce87f5797661315e92c5299ee4580fd5bd1b2b6bf30a42579dff92
3
+ metadata.gz: 85dcf8748164a579357ec9cf53632564999869226cec2a692cf02ba46b52de76
4
+ data.tar.gz: 757d5a488385ff150df1a4c047cc283a1d9210664467849cda1e73fcdb20f037
5
5
  SHA512:
6
- metadata.gz: 9da2a203face38f70626433210367fbad334b9a804be09ec10018705d820092b7546f0f781b26538efe78c7b3034656dffd345db80db7f04f0d59a7ad38ca7d8
7
- data.tar.gz: 47abf809ae051f8d675649a59417855482cb6cb623bc9bf00db7301bc75bee724929d86fde11f61e8bd3c67d3429f1d21eb8ec5c86705f35330788e97488a9d0
6
+ metadata.gz: 9607b60593fc947b8ba807ce3b97ca88ce76cd75936572d75dd5e1789869686050bffa2aeeb5f49313b52fd5f22c02c46e625316848ab7aaee101836d4b5727b
7
+ data.tar.gz: b22873295f68b21f8fb351deb843b806a7b00d2989d2f270b8f386026124396af94be51fd9c983d2c631e3e76c60e400e8c0797927a81e4f0c8b10d68eb88bad
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # WhatYouSay
2
2
 
3
- Quick and easy natural language detection. 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
 
@@ -25,6 +25,8 @@ If bundler is not being used to manage dependencies, install the gem by executin
25
25
  The method to call is `_?`. Why? Because. Pass in the text whose language you want to detect:
26
26
 
27
27
  ```ruby
28
+ require "what_you_say"
29
+
28
30
  text = "Ĉu vi ne volas eklerni Esperanton? Bonvolu! Estas unu de la plej bonaj aferoj!"
29
31
 
30
32
  result = WhatYouSay._?(text)
@@ -37,6 +39,14 @@ assert_predicate(result, :reliable?)
37
39
  assert_equal(1, result.confidence)
38
40
  ```
39
41
 
42
+ You also have to opportunity to `inspect` some output:
43
+
44
+ ```ruby
45
+ text = "Եվ ահա ես ստանում եմ մի զանգ պատահական տղայից"
46
+ WhatYouSay._?(text).inspect
47
+ #=> #<WhatYouSay::Info lang=#<WhatYouSay::Lang code="hye" name="Հայերեն" eng_name="Armenian"> script="Armenian" reliable=true confidence=1>
48
+ ```
49
+
40
50
  ## Development
41
51
 
42
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhatYouSay
4
- VERSION = "0.1.1"
4
+ VERSION = "0.3.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.1.1
4
+ version: 0.3.0
5
5
  platform: arm64-darwin
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-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake