n_2_w 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +25 -14
- data/lib/n_2_w/version.rb +1 -1
- data/n_2_w.gemspec +3 -2
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba707b9ba1677a9b6cf6f296b04a1163b8241b7f
|
|
4
|
+
data.tar.gz: d0f7882d40358f5ab864c6f34b0d0a2f3e0d5524
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 092d350ebc8b8c4004599f01fba02238b8a46400c83cf884797d6838eaded2a02ae79aee7ceba88257f9c894a14065c1cb0a4de5ad8772905c0f72daacd2b081
|
|
7
|
+
data.tar.gz: 9b9e2521a8671814503ad6c75d06f058c34bf90b2d59ee88e4d175bbaf7dedf23958876ce30e97015c500756ebe6849921502ba7255de267ced29964e3efda21
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# N2W
|
|
1
|
+
# N2W (number_to_word!)
|
|
2
2
|
|
|
3
3
|
--Convert numeric data into friendly, human-like verbal expressions that match
|
|
4
4
|
the occasion!
|
|
@@ -13,26 +13,37 @@ giving your rails app, the ability to express large volumes of numerical data in
|
|
|
13
13
|
words, in a way that sounds more natural.
|
|
14
14
|
|
|
15
15
|
This might be useful to people for example who have a large database of phone
|
|
16
|
-
numbers and they use
|
|
16
|
+
numbers and they use text-to-speech technology in order to communicate their data phonetically
|
|
17
17
|
with their clients. This might be also useful to people who work with educational tts
|
|
18
|
-
resources and they want to
|
|
19
|
-
no. of pages) read out loud during a presentation, in a more human-like
|
|
20
|
-
than
|
|
21
|
-
|
|
22
|
-
Finally, this might be useful in order to communicate various other data types with a more
|
|
23
|
-
or less standard format, like zips post codes, ISBN's and twelve || sixteen digit
|
|
24
|
-
activation tokens.
|
|
18
|
+
resources and they want to readily transform scores of scientific data (float readings, co-ordinates or
|
|
19
|
+
no. of pages) into words that can be read out loud during a presentation, in a more human-like
|
|
20
|
+
fashion than one single digit after the other.
|
|
25
21
|
|
|
26
22
|
This facility already includes class methods for the explicit expression of the following
|
|
27
|
-
numerical data structures and is scheduled to feature the options marked with a
|
|
23
|
+
numerical data structures and is scheduled to feature the options marked with a in
|
|
28
24
|
the near future:
|
|
29
25
|
|
|
30
|
-
Integers (0..999*10
|
|
26
|
+
--Integers: (0..999*10^48), takes either a string or an integer.
|
|
31
27
|
|
|
32
|
-
--
|
|
28
|
+
--Telephone numbers: this feature uses reg expressions to discover phonetic patterns in your data
|
|
29
|
+
in order to make tel numbers more memorable!
|
|
30
|
+
|
|
31
|
+
The program also uses three modes in order to verbally express tel. numbers:
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
a) patterns: "0589998850">>zero five eight, triple nine, double eight, five zero
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
b) suggestive: "////222-108-2822"">>triple two, one zero, eight two eight, double two
|
|
33
38
|
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
|
|
40
|
+
c) standard: "51371082918">>fifty one, three seven one, zero eighty two, nine one eight
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
and it has a little sorting algorithm at the top of it all in order to decide whether to go with a, b or c.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
--Soon to come: Floats/Scientific measurements
|
|
36
47
|
|
|
37
48
|
--Soon to come: Zips && Post Codes
|
|
38
49
|
|
data/lib/n_2_w/version.rb
CHANGED
data/n_2_w.gemspec
CHANGED
|
@@ -11,8 +11,9 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{"--Convert numeric data into friendly, human-like verbal expressions that match
|
|
13
13
|
the occasion!"}
|
|
14
|
-
spec.description = %q{"
|
|
15
|
-
|
|
14
|
+
spec.description = %q{"--Convert numeric data into friendly, human-like verbal expressions that match
|
|
15
|
+
the occasion!"}
|
|
16
|
+
spec.homepage = "https://github.com/alexandros84/n_2_w"
|
|
16
17
|
spec.license = "MIT"
|
|
17
18
|
|
|
18
19
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: n_2_w
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- alexandros84
|
|
@@ -52,7 +52,8 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.0'
|
|
55
|
-
description:
|
|
55
|
+
description: "\"--Convert numeric data into friendly, human-like verbal expressions
|
|
56
|
+
that match \nthe occasion!\""
|
|
56
57
|
email:
|
|
57
58
|
- alexandros.management@outlook.com
|
|
58
59
|
executables: []
|
|
@@ -73,7 +74,7 @@ files:
|
|
|
73
74
|
- lib/n_2_w/tel.rb
|
|
74
75
|
- lib/n_2_w/version.rb
|
|
75
76
|
- n_2_w.gemspec
|
|
76
|
-
homepage:
|
|
77
|
+
homepage: https://github.com/alexandros84/n_2_w
|
|
77
78
|
licenses:
|
|
78
79
|
- MIT
|
|
79
80
|
metadata: {}
|