chat_correct 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +208 -0
  8. data/Rakefile +4 -0
  9. data/chat_correct.gemspec +28 -0
  10. data/lib/chat_correct/capitalization.rb +13 -0
  11. data/lib/chat_correct/combine_multi_word_verbs.rb +51 -0
  12. data/lib/chat_correct/common_verb_mistake.rb +62 -0
  13. data/lib/chat_correct/contraction.rb +103 -0
  14. data/lib/chat_correct/correct.rb +352 -0
  15. data/lib/chat_correct/corrections_hash.rb +204 -0
  16. data/lib/chat_correct/mistake_analyzer.rb +40 -0
  17. data/lib/chat_correct/pluralization.rb +22 -0
  18. data/lib/chat_correct/possessive.rb +25 -0
  19. data/lib/chat_correct/punctuation.rb +17 -0
  20. data/lib/chat_correct/punctuation_masquerading_as_spelling_error.rb +14 -0
  21. data/lib/chat_correct/spelling.rb +20 -0
  22. data/lib/chat_correct/time.rb +14 -0
  23. data/lib/chat_correct/tokenize.rb +164 -0
  24. data/lib/chat_correct/verb.rb +65 -0
  25. data/lib/chat_correct/version.rb +3 -0
  26. data/lib/chat_correct.rb +16 -0
  27. data/spec/chat_correct/capitalization_spec.rb +17 -0
  28. data/spec/chat_correct/combine_multi_word_verbs_spec.rb +39 -0
  29. data/spec/chat_correct/common_verb_mistake_spec.rb +24 -0
  30. data/spec/chat_correct/contraction_spec.rb +259 -0
  31. data/spec/chat_correct/correct_spec.rb +1650 -0
  32. data/spec/chat_correct/mistake_analyzer_spec.rb +99 -0
  33. data/spec/chat_correct/pluralization_spec.rb +31 -0
  34. data/spec/chat_correct/possessive_spec.rb +31 -0
  35. data/spec/chat_correct/punctuation_masquerading_as_spelling_error_spec.rb +24 -0
  36. data/spec/chat_correct/punctuation_spec.rb +21 -0
  37. data/spec/chat_correct/spelling_spec.rb +59 -0
  38. data/spec/chat_correct/time_spec.rb +21 -0
  39. data/spec/chat_correct/tokenize_spec.rb +142 -0
  40. data/spec/chat_correct/verb_spec.rb +60 -0
  41. data/spec/spec_helper.rb +1 -0
  42. metadata +201 -0
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chat_correct
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kevin S. Dias
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: levenshtein-ffi
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: linguistics
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.0.2
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.0.2
83
+ - !ruby/object:Gem::Dependency
84
+ name: verbs
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: engtagger
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: A Ruby gem to help students improve their English. A teacher can correct
112
+ a student's sentence and this gem will automatically provide information on the
113
+ type of error (i.e. punctuation, spelling, etc.), the placement of the errors, and
114
+ the number of errors.
115
+ email:
116
+ - diasks2@gmail.com
117
+ executables: []
118
+ extensions: []
119
+ extra_rdoc_files: []
120
+ files:
121
+ - ".gitignore"
122
+ - ".rspec"
123
+ - ".travis.yml"
124
+ - Gemfile
125
+ - LICENSE.txt
126
+ - README.md
127
+ - Rakefile
128
+ - chat_correct.gemspec
129
+ - lib/chat_correct.rb
130
+ - lib/chat_correct/capitalization.rb
131
+ - lib/chat_correct/combine_multi_word_verbs.rb
132
+ - lib/chat_correct/common_verb_mistake.rb
133
+ - lib/chat_correct/contraction.rb
134
+ - lib/chat_correct/correct.rb
135
+ - lib/chat_correct/corrections_hash.rb
136
+ - lib/chat_correct/mistake_analyzer.rb
137
+ - lib/chat_correct/pluralization.rb
138
+ - lib/chat_correct/possessive.rb
139
+ - lib/chat_correct/punctuation.rb
140
+ - lib/chat_correct/punctuation_masquerading_as_spelling_error.rb
141
+ - lib/chat_correct/spelling.rb
142
+ - lib/chat_correct/time.rb
143
+ - lib/chat_correct/tokenize.rb
144
+ - lib/chat_correct/verb.rb
145
+ - lib/chat_correct/version.rb
146
+ - spec/chat_correct/capitalization_spec.rb
147
+ - spec/chat_correct/combine_multi_word_verbs_spec.rb
148
+ - spec/chat_correct/common_verb_mistake_spec.rb
149
+ - spec/chat_correct/contraction_spec.rb
150
+ - spec/chat_correct/correct_spec.rb
151
+ - spec/chat_correct/mistake_analyzer_spec.rb
152
+ - spec/chat_correct/pluralization_spec.rb
153
+ - spec/chat_correct/possessive_spec.rb
154
+ - spec/chat_correct/punctuation_masquerading_as_spelling_error_spec.rb
155
+ - spec/chat_correct/punctuation_spec.rb
156
+ - spec/chat_correct/spelling_spec.rb
157
+ - spec/chat_correct/time_spec.rb
158
+ - spec/chat_correct/tokenize_spec.rb
159
+ - spec/chat_correct/verb_spec.rb
160
+ - spec/spec_helper.rb
161
+ homepage: ''
162
+ licenses:
163
+ - MIT
164
+ metadata: {}
165
+ post_install_message:
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ requirements: []
180
+ rubyforge_project:
181
+ rubygems_version: 2.4.1
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: Returns the errors and error types when an incorrect English sentence is
185
+ diffed with a correct English sentence.
186
+ test_files:
187
+ - spec/chat_correct/capitalization_spec.rb
188
+ - spec/chat_correct/combine_multi_word_verbs_spec.rb
189
+ - spec/chat_correct/common_verb_mistake_spec.rb
190
+ - spec/chat_correct/contraction_spec.rb
191
+ - spec/chat_correct/correct_spec.rb
192
+ - spec/chat_correct/mistake_analyzer_spec.rb
193
+ - spec/chat_correct/pluralization_spec.rb
194
+ - spec/chat_correct/possessive_spec.rb
195
+ - spec/chat_correct/punctuation_masquerading_as_spelling_error_spec.rb
196
+ - spec/chat_correct/punctuation_spec.rb
197
+ - spec/chat_correct/spelling_spec.rb
198
+ - spec/chat_correct/time_spec.rb
199
+ - spec/chat_correct/tokenize_spec.rb
200
+ - spec/chat_correct/verb_spec.rb
201
+ - spec/spec_helper.rb