what_you_say 0.1.1-x64-mingw-ucrt → 0.3.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: 026d3040c02530982082930d33e58b69f5fd74c96c71e00bfe5bb13d83f3d06c
4
- data.tar.gz: bc3ab415d215cde4125e15fc8df63775e664b6f093ee2399009df2ec4ec1d4fd
3
+ metadata.gz: 46ac2cd05811c0df4712e959c00d97e3a1145fb2c1f569dfed42eaf203d36cba
4
+ data.tar.gz: dacca48d1ef72fc84acd945c70211cc433a3b552e122d9e33bb19e0a1eadd6b9
5
5
  SHA512:
6
- metadata.gz: 75403321b814f0d7b4f665c846c706b62e7a45b6afa9167cc1f40bf82baaf64c540767ed2f39bfc136d83839c593f163f9fadb9394dcbc039a894d6c44ea10a5
7
- data.tar.gz: 96c8b32ecd66ad333c816a55b1bf0f96f7781d01a324cfa7229cdb59df65339108bb394f27ad0a62e1923cd74cf5d33fbdd634e7b72a9c4849e07b175f421020
6
+ metadata.gz: 8680be40db864dd821b82efa69cfc22ef00888337897f9b8de9fafc5009f2b4e0e53892f8b103965cddb838390c6d2a9ea857c03ec13554cb9fa77843a002935
7
+ data.tar.gz: cd8a39fb2250e0282fd6a7429e2be2442d47de7c039e4940febf3767d7fc01c8c6a45ed4c0e62bcaf059fab35c52f696d637df5c91e7b52e8eff4e77a69153a8
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.
Binary file
Binary file
@@ -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: 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-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake