rwordnet 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ require File.dirname(__FILE__) + "/../test_helper.rb"
2
+
3
+ class TestWordNetDB < Test::Unit::TestCase
4
+ include WordNet
5
+
6
+ test 'set and read path' do
7
+ WordNetDB.path = WordNetPath
8
+ assert_equal WordNetPath,WordNetDB.path
9
+ end
10
+
11
+ test 'find a word' do
12
+ WordNetDB.path = WordNetPath
13
+ lemmas = WordNetDB.find("fruit")
14
+ assert_equal 2,lemmas.size
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rwordnet
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Trevor Fountain
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-18 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: A pure Ruby interface to the WordNet database
17
+ email: doches@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.markdown
24
+ files:
25
+ - History.txt
26
+ - README.markdown
27
+ - WordNet-3.0/AUTHORS
28
+ - WordNet-3.0/COPYING
29
+ - WordNet-3.0/LICENSE
30
+ - WordNet-3.0/README
31
+ - WordNet-3.0/dict/data.adj
32
+ - WordNet-3.0/dict/data.adv
33
+ - WordNet-3.0/dict/data.noun
34
+ - WordNet-3.0/dict/data.verb
35
+ - WordNet-3.0/dict/index.adj
36
+ - WordNet-3.0/dict/index.adv
37
+ - WordNet-3.0/dict/index.noun
38
+ - WordNet-3.0/dict/index.verb
39
+ - examples/dictionary.rb
40
+ - examples/full_hypernym.rb
41
+ - lib/wordnet.rb
42
+ - lib/wordnet/index.rb
43
+ - lib/wordnet/lemma.rb
44
+ - lib/wordnet/pointer.rb
45
+ - lib/wordnet/pointers.rb
46
+ - lib/wordnet/pos.rb
47
+ - lib/wordnet/synset.rb
48
+ - lib/wordnet/wordnetdb.rb
49
+ - test/test_helper.rb
50
+ - test/unit/index_test.rb
51
+ - test/unit/synset_test.rb
52
+ - test/unit/wordnetdb_test.rb
53
+ has_rdoc: true
54
+ homepage: http://github.com/doches/rwordnet
55
+ licenses: []
56
+
57
+ post_install_message:
58
+ rdoc_options:
59
+ - --charset=UTF-8
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: "0"
67
+ version:
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: "0"
73
+ version:
74
+ requirements: []
75
+
76
+ rubyforge_project:
77
+ rubygems_version: 1.3.5
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: A pure Ruby interface to the WordNet database
81
+ test_files:
82
+ - test/test_helper.rb
83
+ - test/unit/index_test.rb
84
+ - test/unit/synset_test.rb
85
+ - test/unit/wordnetdb_test.rb
86
+ - examples/dictionary.rb
87
+ - examples/full_hypernym.rb