meiou 0.2.2 → 0.2.3

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: c11e761b258e7e95deb2ca2badce10818656a2590915a7bb8b95deca80eaa3d5
4
- data.tar.gz: 14b51bb1add83d79f04131d49a762728a105fdfd118b61b372e971468b28086c
3
+ metadata.gz: 900db46715e9b0f68dcf7b5bcc7bcb18e7c03ce6a0f79dd4c151a187ae390ef1
4
+ data.tar.gz: ef1395218d79c4dec9eb966673b593459acefa26ce4ce14724e47ec037acf669
5
5
  SHA512:
6
- metadata.gz: b19f436bc911e72d214784f55e850b5cc842be75260aa3de654d864415b5a16f6d9312938eb4d7d78bd94559fb1e86f13efa166eb3d317d6dea7f023728e79a9
7
- data.tar.gz: c08b1fa8cc62969454e46d17fc1ddf172dadb7cad7a44740c86d6461918fb063ba33cd484e167b99876259829cbf76e5179214ffbef1c9ba13c879dd8c78abe6
6
+ metadata.gz: 3e24b1ef5aef8218e2cedb284f7f8305af1ada5e9f536ce362497e23e1df42fb37d1b0b53a57ece3b3c6f2ddc466708cf0b381112724b1224c81772de923950e
7
+ data.tar.gz: 4f322c8d2801e6d9a272238353f6e8b77e4166c91fec3fb9bd5bd35959b397b38e0343b5e92ac4acb7287b006ce9948fb5aed43e9cc6f83bb291d0ad8a6a8aa1
data/README.md CHANGED
@@ -24,3 +24,41 @@ Finally you can do the following:
24
24
  Meiou.compile!
25
25
  ```
26
26
  Then you can use as normal, but also giving references to given text snippets.
27
+
28
+
29
+ ## Utilities
30
+
31
+ ### Toki Pona
32
+ Toki Pona is a constructed language with only 125 words.
33
+
34
+ ```
35
+ s = Meiou.to_toki "I Love toki pona"
36
+ Meiou.from_toki s
37
+ ```
38
+
39
+ ### dictionary
40
+ ```
41
+ Meiou.extract("A string of input.") # extract keywords.
42
+ Meiou.extract("A string of input.") { |word| } # extract keywords and process.
43
+ Meiou.define("A string of input.") # define keywords of input.
44
+ Meiou.example("A string of input.") # find example from books.
45
+ Meiou.cite("A string of input.") # Cite example from books.
46
+ ```
47
+
48
+ ### mood
49
+ ```
50
+ Meiou.mood["A string of input."]
51
+ ```
52
+
53
+ ### emoji-fy
54
+ ```
55
+ Meiou.simplify("A string of input.")
56
+ ```
57
+
58
+ ### astronomy
59
+ ```
60
+ Meiou.astronomy # astronomy object reference
61
+ Meiou.zodiac["year/month/day hour:minute"] # zodiac lookup by date
62
+ ```
63
+
64
+
@@ -57,7 +57,7 @@ module ASTRO
57
57
  [:mercury,:venus,:mars,:vesta,:ceres,:jupiter,:saturn,:uranus,:neptune,:pluto]
58
58
  end
59
59
  def self.init!
60
- File.open("books/astronomy.txt",'w') { |f| f.write(ASTRO.to_s) }
60
+ File.open("books/astronomy_fortune-tellers.txt",'w') { |f| f.write(ASTRO.to_s) }
61
61
  end
62
62
 
63
63
  end
@@ -58,7 +58,7 @@ module Meiou
58
58
  end
59
59
 
60
60
  def self.[] k
61
- DICT.know(k, define: true, example: true)
61
+ DICT.know(k, define: true, example: true).uniq
62
62
  end
63
63
  def self.define k
64
64
  DICT.know(k, define: true)
data/lib/meiou/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meiou
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
data/meiou.gemspec CHANGED
@@ -42,3 +42,4 @@ Gem::Specification.new do |spec|
42
42
  # For more information and examples about making a new gem, check out our
43
43
  # guide at: https://bundler.io/guides/creating_gem.html
44
44
  end
45
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meiou
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-21 00:00:00.000000000 Z
11
+ date: 2024-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wikipedia-client
@@ -141,7 +141,7 @@ files:
141
141
  - books/Doctor_and_Patient.txt
142
142
  - books/Roman_Farm_Management.txt
143
143
  - books/Social_Organization.txt
144
- - books/astronomy.txt
144
+ - books/astronomy_fortune-tellers.txt
145
145
  - books/interpretation_of_dreams.txt
146
146
  - books/the_prince.txt
147
147
  - lang/tokipona.yaml
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.3.15
182
+ rubygems_version: 3.4.20
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: A way of gathering knowledge.