wordnet 0.0.5 → 1.0.0.pre.126

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/.gemtest +0 -0
  2. data/History.rdoc +5 -0
  3. data/LICENSE +9 -9
  4. data/Manifest.txt +39 -0
  5. data/README.rdoc +60 -0
  6. data/Rakefile +47 -267
  7. data/TODO +9 -0
  8. data/WordNet30-license.txt +31 -0
  9. data/examples/add-laced-boots.rb +35 -0
  10. data/examples/clothes-with-collars.rb +42 -0
  11. data/examples/clothesWithTongues.rb +0 -0
  12. data/examples/domainTree.rb +0 -0
  13. data/examples/memberTree.rb +0 -0
  14. data/lib/wordnet/constants.rb +259 -296
  15. data/lib/wordnet/lexicallink.rb +34 -0
  16. data/lib/wordnet/lexicon.rb +158 -386
  17. data/lib/wordnet/mixins.rb +62 -0
  18. data/lib/wordnet/model.rb +78 -0
  19. data/lib/wordnet/morph.rb +25 -0
  20. data/lib/wordnet/semanticlink.rb +52 -0
  21. data/lib/wordnet/sense.rb +55 -0
  22. data/lib/wordnet/sumoterm.rb +21 -0
  23. data/lib/wordnet/synset.rb +404 -859
  24. data/lib/wordnet/utils.rb +126 -0
  25. data/lib/wordnet/word.rb +119 -0
  26. data/lib/wordnet.rb +113 -76
  27. data/spec/lib/helpers.rb +102 -133
  28. data/spec/linguawordnet.tests.rb +38 -0
  29. data/spec/wordnet/lexicon_spec.rb +96 -186
  30. data/spec/wordnet/model_spec.rb +59 -0
  31. data/spec/wordnet/semanticlink_spec.rb +42 -0
  32. data/spec/wordnet/synset_spec.rb +27 -256
  33. data/spec/wordnet/word_spec.rb +58 -0
  34. data/spec/wordnet_spec.rb +52 -0
  35. data.tar.gz.sig +0 -0
  36. metadata +227 -188
  37. metadata.gz.sig +0 -0
  38. data/ChangeLog +0 -720
  39. data/README +0 -93
  40. data/Rakefile.local +0 -46
  41. data/convertdb.rb +0 -417
  42. data/examples/addLacedBoots.rb +0 -27
  43. data/examples/clothesWithCollars.rb +0 -36
  44. data/rake/dependencies.rb +0 -76
  45. data/rake/helpers.rb +0 -384
  46. data/rake/manual.rb +0 -755
  47. data/rake/packaging.rb +0 -112
  48. data/rake/publishing.rb +0 -303
  49. data/rake/rdoc.rb +0 -35
  50. data/rake/style.rb +0 -62
  51. data/rake/svn.rb +0 -469
  52. data/rake/testing.rb +0 -192
  53. data/rake/verifytask.rb +0 -64
  54. data/utils.rb +0 -838
metadata CHANGED
@@ -1,171 +1,196 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: wordnet
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.pre.126
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Michael Granger
8
9
  autorequire:
9
10
  bindir: bin
10
- cert_chain: []
11
-
12
- date: 2008-09-05 00:00:00 -07:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: text-format
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 1.0.0
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: termios
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: rubyforge
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: "0"
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: rspec
11
+ cert_chain:
12
+ - !binary |-
13
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURMRENDQWhTZ0F3SUJB
14
+ Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREE4TVF3d0NnWURWUVFEREFOblpX
15
+ UXgKRn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IzcjFsWTFFUEREM2JjeTBNZ2dDZkdkZzNYdTU0
32
+ ejIxb3F5SWRrOHVHdFdCUEwKSElhOUVnZkZHU1VFZ3ZjSXZhWXFpTjRqVFV0
33
+ aWRmRUZ3K0x0anM4QVA5Z1dnU0lZUzZHcjM4VjBXR0ZGTnpJSAphT0Qyd211
34
+ OW9vL1JmZlc0aFMvOEd1dmZNemN3N0NRMzU1d0ZSNEtCL255emUrRXNaMVk1
35
+ RGVyQ0FhZ01WdURRClUwQkxtV0RGelBHR1dsUGVRQ3JZSENyK0FjSnorTlJu
36
+ YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
37
+ Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
38
+ cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
+ date: 2012-05-01 00:00:00.000000000 Z
40
+ dependencies:
41
+ - !ruby/object:Gem::Dependency
42
+ name: sequel
43
+ requirement: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ~>
47
+ - !ruby/object:Gem::Version
48
+ version: '3.29'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: '3.29'
57
+ - !ruby/object:Gem::Dependency
58
+ name: hoe-mercurial
59
+ requirement: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ~>
63
+ - !ruby/object:Gem::Version
64
+ version: 1.4.0
47
65
  type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: "0"
54
- version:
55
- - !ruby/object:Gem::Dependency
56
- name: rake
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ version: 1.4.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: hoe-highline
75
+ requirement: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: 0.0.1
57
81
  type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: 0.8.1
64
- version:
65
- - !ruby/object:Gem::Dependency
66
- name: libxml-ruby
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: 0.0.1
89
+ - !ruby/object:Gem::Dependency
90
+ name: rdoc
91
+ requirement: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '3.10'
67
97
  type: :development
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 0.8.3
74
- version:
75
- - !ruby/object:Gem::Dependency
76
- name: ultraviolet
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ version: '3.10'
105
+ - !ruby/object:Gem::Dependency
106
+ name: sqlite3
107
+ requirement: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ~>
111
+ - !ruby/object:Gem::Version
112
+ version: '1.3'
77
113
  type: :development
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 0.10.2
84
- version:
85
- - !ruby/object:Gem::Dependency
86
- name: tmail
87
- type: :development
88
- version_requirement:
89
- version_requirements: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- version: 1.2.3.1
94
- version:
95
- - !ruby/object:Gem::Dependency
96
- name: amatch
97
- type: :development
98
- version_requirement:
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: 0.2.3
104
- version:
105
- - !ruby/object:Gem::Dependency
106
- name: rcov
107
- type: :development
108
- version_requirement:
109
- version_requirements: !ruby/object:Gem::Requirement
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- version: "0"
114
- version:
115
- - !ruby/object:Gem::Dependency
116
- name: RedCloth
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '1.3'
121
+ - !ruby/object:Gem::Dependency
122
+ name: rspec
123
+ requirement: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ~>
127
+ - !ruby/object:Gem::Version
128
+ version: '2.7'
117
129
  type: :development
118
- version_requirement:
119
- version_requirements: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: 4.0.3
124
- version:
125
- - !ruby/object:Gem::Dependency
126
- name: rcodetools
130
+ prerelease: false
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ~>
135
+ - !ruby/object:Gem::Version
136
+ version: '2.7'
137
+ - !ruby/object:Gem::Dependency
138
+ name: hoe
139
+ requirement: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ~>
143
+ - !ruby/object:Gem::Version
144
+ version: '3.0'
127
145
  type: :development
128
- version_requirement:
129
- version_requirements: !ruby/object:Gem::Requirement
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- version: 0.7.0.0
134
- version:
135
- description: A Ruby implementation of the WordNet lexical dictionary an online lexical reference system whose design is inspired by current psycholinguistic theories of human lexical memory.
136
- email: ged@FaerieMUD.org
137
- executables: []
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '3.0'
153
+ description: ! 'This library is a Ruby interface to WordNet®. WordNet® is an online
154
+ lexical
138
155
 
139
- extensions: []
156
+ reference system whose design is inspired by current psycholinguistic theories
140
157
 
141
- extra_rdoc_files: []
158
+ of human lexical memory. English nouns, verbs, adjectives and adverbs are
142
159
 
143
- files:
144
- - Rakefile
145
- - ChangeLog
146
- - README
160
+ organized into synonym sets, each representing one underlying lexical
161
+
162
+ concept. Different relations link the synonym sets.
163
+
164
+
165
+ It uses WordNet-SQL, which is a conversion of the lexicon flatfiles into a
166
+
167
+ relational database format. You can either install the ''wordnet-defaultdb'' gem,
168
+
169
+ which packges up the SQLite3 version of WordNet-SQL, or install your own and
170
+
171
+ point the lexicon at it by passing a Sequel URL to the constructor.
172
+
173
+
174
+ TO-DO: More details and better writing later.'
175
+ email:
176
+ - ged@FaerieMUD.org
177
+ executables: []
178
+ extensions: []
179
+ extra_rdoc_files:
180
+ - History.rdoc
181
+ - Manifest.txt
182
+ - README.rdoc
183
+ - WordNet30-license.txt
184
+ files:
185
+ - History.rdoc
147
186
  - LICENSE
148
- - spec/wordnet/lexicon_spec.rb
149
- - spec/wordnet/synset_spec.rb
150
- - spec/lib/helpers.rb
151
- - lib/wordnet/constants.rb
152
- - lib/wordnet/lexicon.rb
153
- - lib/wordnet/synset.rb
154
- - lib/wordnet.rb
155
- - rake/dependencies.rb
156
- - rake/helpers.rb
157
- - rake/manual.rb
158
- - rake/packaging.rb
159
- - rake/publishing.rb
160
- - rake/rdoc.rb
161
- - rake/style.rb
162
- - rake/svn.rb
163
- - rake/testing.rb
164
- - rake/verifytask.rb
165
- - convertdb.rb
166
- - utils.rb
167
- - examples/addLacedBoots.rb
168
- - examples/clothesWithCollars.rb
187
+ - Manifest.txt
188
+ - README.rdoc
189
+ - Rakefile
190
+ - TODO
191
+ - WordNet30-license.txt
192
+ - examples/add-laced-boots.rb
193
+ - examples/clothes-with-collars.rb
169
194
  - examples/clothesWithTongues.rb
170
195
  - examples/distance.rb
171
196
  - examples/domainTree.rb
@@ -175,42 +200,56 @@ files:
175
200
  - examples/hyponymTree.rb
176
201
  - examples/memberTree.rb
177
202
  - examples/meronymTree.rb
178
- - Rakefile.local
179
- has_rdoc: true
203
+ - lib/wordnet.rb
204
+ - lib/wordnet/constants.rb
205
+ - lib/wordnet/lexicallink.rb
206
+ - lib/wordnet/lexicon.rb
207
+ - lib/wordnet/mixins.rb
208
+ - lib/wordnet/model.rb
209
+ - lib/wordnet/morph.rb
210
+ - lib/wordnet/semanticlink.rb
211
+ - lib/wordnet/sense.rb
212
+ - lib/wordnet/sumoterm.rb
213
+ - lib/wordnet/synset.rb
214
+ - lib/wordnet/utils.rb
215
+ - lib/wordnet/word.rb
216
+ - spec/lib/helpers.rb
217
+ - spec/linguawordnet.tests.rb
218
+ - spec/wordnet/lexicon_spec.rb
219
+ - spec/wordnet/model_spec.rb
220
+ - spec/wordnet/semanticlink_spec.rb
221
+ - spec/wordnet/synset_spec.rb
222
+ - spec/wordnet/word_spec.rb
223
+ - spec/wordnet_spec.rb
224
+ - .gemtest
180
225
  homepage: http://deveiate.org/projects/Ruby-WordNet
181
- post_install_message:
182
- rdoc_options:
183
- - -w
184
- - "4"
185
- - -SHN
186
- - -i
187
- - .
188
- - -m
189
- - README
190
- - -W
191
- - http://deveiate.org/projects/Ruby-WordNet/browser/trunk/
192
- require_paths:
226
+ licenses:
227
+ - BSD
228
+ post_install_message: ! "\nIf you don't already have a WordNet database installed
229
+ somewhere, \nyou'll need to either download and install one from:\n\n http://wnsql.sourceforge.net/\n\nor
230
+ just install the 'wordnet-defaultdb' gem, which will install\nthe SQLite version
231
+ for you.\n\n"
232
+ rdoc_options:
233
+ - --main
234
+ - README.rdoc
235
+ require_paths:
193
236
  - lib
194
- required_ruby_version: !ruby/object:Gem::Requirement
195
- requirements:
196
- - - ">="
197
- - !ruby/object:Gem::Version
198
- version: "0"
199
- version:
200
- required_rubygems_version: !ruby/object:Gem::Requirement
201
- requirements:
202
- - - ">="
203
- - !ruby/object:Gem::Version
204
- version: "0"
205
- version:
206
- requirements:
207
- - bdb >= 0.6.5
237
+ required_ruby_version: !ruby/object:Gem::Requirement
238
+ none: false
239
+ requirements:
240
+ - - ! '>='
241
+ - !ruby/object:Gem::Version
242
+ version: 1.9.2
243
+ required_rubygems_version: !ruby/object:Gem::Requirement
244
+ none: false
245
+ requirements:
246
+ - - ! '>='
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
249
+ requirements: []
208
250
  rubyforge_project: wordnet
209
- rubygems_version: 1.2.0
251
+ rubygems_version: 1.8.21
210
252
  signing_key:
211
- specification_version: 2
212
- summary: a Ruby interface to the WordNet Lexical Database
213
- test_files:
214
- - spec/wordnet/lexicon_spec.rb
215
- - spec/wordnet/synset_spec.rb
216
- - spec/lib/helpers.rb
253
+ specification_version: 3
254
+ summary: This library is a Ruby interface to WordNet®
255
+ test_files: []
metadata.gz.sig ADDED
Binary file