rginger 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +11 -0
- data/Gemfile.lock +21 -0
- data/README.md +15 -2
- data/lib/rginger/version.rb +1 -1
- data/rginger.gemspec +4 -4
- metadata +15 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1573e53497666e5ee2b887023786a5e5ee18022
|
4
|
+
data.tar.gz: 790a9f7049f115a3e29ceb435e092af2b43cbb4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5522058ed3f1209426dad4d57760b27ba63fb7230969d87e1a44e32ef64669b01c046fa82ee9eec1607acb9c88e5417add681fa42746ce615646b568b8e06eb4
|
7
|
+
data.tar.gz: 2b40ef0499c2f026770edc476da185116c6c69b2c494cac0fc38f573d95e388bb8425d74fbdd0388238d560bec4adae20f6604dd99de00866f6275fab59a5bfa
|
data/.gitignore
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rginger (0.1.1)
|
5
|
+
rainbow
|
6
|
+
trollop
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
rainbow (1.1.4)
|
12
|
+
rake (10.1.0)
|
13
|
+
trollop (2.0)
|
14
|
+
|
15
|
+
PLATFORMS
|
16
|
+
ruby
|
17
|
+
|
18
|
+
DEPENDENCIES
|
19
|
+
bundler
|
20
|
+
rake
|
21
|
+
rginger!
|
data/README.md
CHANGED
@@ -30,9 +30,10 @@ RGinger takes an English sentence and gives correction and rephrasing suggestion
|
|
30
30
|
## Library Usage
|
31
31
|
|
32
32
|
require 'rginger'
|
33
|
-
|
33
|
+
|
34
|
+
text = "I looking forward meet you"
|
34
35
|
ginger = RGinger::Parser.new
|
35
|
-
result = ginger.correct
|
36
|
+
result = ginger.correct text
|
36
37
|
|
37
38
|
# {"original"=>"I looking forward meet you",
|
38
39
|
# "data"=>
|
@@ -49,6 +50,18 @@ RGinger takes an English sentence and gives correction and rephrasing suggestion
|
|
49
50
|
# "reverse_to"=>-5,
|
50
51
|
# "new"=>"to meet"}],
|
51
52
|
# "corrected"=>"I am looking forward to meet you"}
|
53
|
+
|
54
|
+
result = ginger.rephrase text
|
55
|
+
|
56
|
+
# {"original"=>"I looking forward meet you",
|
57
|
+
# "alternatives"=>
|
58
|
+
# ["I was looking forward to meet you",
|
59
|
+
# "I look forward to meeting you",
|
60
|
+
# "I'm looking forward to meeting you",
|
61
|
+
# "I'm looking forward to meet you",
|
62
|
+
# "I look forwarding to meeting you",
|
63
|
+
# "I'm looking forwarding to meeting you",
|
64
|
+
# "I look forward to meeting you all"]}
|
52
65
|
|
53
66
|
### References
|
54
67
|
|
data/lib/rginger/version.rb
CHANGED
data/rginger.gemspec
CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.test_files = gem.files.grep(%r{^(test|gem|features)/})
|
22
22
|
gem.require_paths = ["lib"]
|
23
23
|
|
24
|
-
gem.add_development_dependency "bundler"
|
25
|
-
gem.add_development_dependency "rake"
|
26
|
-
gem.
|
27
|
-
gem.
|
24
|
+
gem.add_development_dependency "bundler", '~> 0'
|
25
|
+
gem.add_development_dependency "rake", '~> 0'
|
26
|
+
gem.add_runtime_dependency "trollop", '~> 0'
|
27
|
+
gem.add_runtime_dependency "rainbow", '~> 0'
|
28
28
|
end
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rginger
|
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
|
- Yoichiro Hasebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: trollop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rainbow
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: RGinger takes an English sentence and gives correction and rephrasing
|
@@ -75,7 +75,9 @@ executables:
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
+
- ".gitignore"
|
78
79
|
- Gemfile
|
80
|
+
- Gemfile.lock
|
79
81
|
- README.md
|
80
82
|
- Rakefile
|
81
83
|
- bin/rginger
|
@@ -94,17 +96,17 @@ require_paths:
|
|
94
96
|
- lib
|
95
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
98
|
requirements:
|
97
|
-
- -
|
99
|
+
- - ">="
|
98
100
|
- !ruby/object:Gem::Version
|
99
101
|
version: '0'
|
100
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
103
|
requirements:
|
102
|
-
- -
|
104
|
+
- - ">="
|
103
105
|
- !ruby/object:Gem::Version
|
104
106
|
version: '0'
|
105
107
|
requirements: []
|
106
108
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.2.2
|
108
110
|
signing_key:
|
109
111
|
specification_version: 4
|
110
112
|
summary: RGinger takes an English sentence and gives correction and rephrasing suggestions
|