what_you_say 0.1.0-arm64-darwin → 0.2.0-arm64-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: 5505a6b86415e1868d4491bbe1a99de1304fc11b68660678d68cad46bd27ce9c
4
- data.tar.gz: ec60500a9e9de758419df595b37951d7224a8baa278ab97ccbdd9756344b25e1
3
+ metadata.gz: 062a45e261d9614afacbcae146eff69612f5add68ab33464dabdde39d966a38a
4
+ data.tar.gz: b193d41cef9f7392415a56f7ff153b5b6ed702b1039c45560add96f4974881af
5
5
  SHA512:
6
- metadata.gz: 70efa588f3c2c984894615e9afbfc40404b958bc8b83f6cfdad87b2f492a390c5a61e9f5d8cc8995b8fae1198e1d2e54cd77c7f725db5fecc7180a16b087ee54
7
- data.tar.gz: e5d94881df4bbc2623ef3dd37abd5d0dc0e402b2f1a52679723b6b132fba5540a9de0f19f8c279dca4f516a8271ab015808de56f53a8609777c32da744165524
6
+ metadata.gz: '0493fa4fcb11d757c58dc77456e5f7872ef131c178e1f0e059359c237f70f60210fc8fc5528ca58d56d315bb888886fee6dffe29ea2ff8498b050f67a4f78d41'
7
+ data.tar.gz: 15dd9e8307f3deaade620290f99c4c5d90f8ea4f3a497ec9b0e9e9409f4a1ad4914d280efe3f1266e6f6372cc62415d3a6e05758e752d32958ee0ff63cf2a385
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.
@@ -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: 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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake