linguistics 1.0.9 → 2.0.0

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.
Files changed (69) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.gemtest +0 -0
  3. data/ChangeLog +849 -342
  4. data/History.rdoc +11 -0
  5. data/LICENSE +9 -9
  6. data/Manifest.txt +44 -0
  7. data/README.rdoc +226 -0
  8. data/Rakefile +32 -349
  9. data/examples/endocs.rb +272 -0
  10. data/examples/generalize_sentence.rb +2 -1
  11. data/examples/klingon.rb +22 -0
  12. data/lib/linguistics.rb +130 -292
  13. data/lib/linguistics/en.rb +337 -1628
  14. data/lib/linguistics/en/articles.rb +138 -0
  15. data/lib/linguistics/en/conjugation.rb +2245 -0
  16. data/lib/linguistics/en/conjunctions.rb +202 -0
  17. data/lib/linguistics/en/{infinitive.rb → infinitives.rb} +41 -55
  18. data/lib/linguistics/en/linkparser.rb +41 -49
  19. data/lib/linguistics/en/numbers.rb +483 -0
  20. data/lib/linguistics/en/participles.rb +33 -0
  21. data/lib/linguistics/en/pluralization.rb +810 -0
  22. data/lib/linguistics/en/stemmer.rb +75 -0
  23. data/lib/linguistics/en/titlecase.rb +121 -0
  24. data/lib/linguistics/en/wordnet.rb +63 -97
  25. data/lib/linguistics/inflector.rb +89 -0
  26. data/lib/linguistics/iso639.rb +534 -448
  27. data/lib/linguistics/languagebehavior.rb +36 -0
  28. data/lib/linguistics/monkeypatches.rb +42 -0
  29. data/spec/lib/constants.rb +15 -0
  30. data/spec/lib/helpers.rb +38 -0
  31. data/spec/linguistics/en/articles_spec.rb +797 -0
  32. data/spec/linguistics/en/conjugation_spec.rb +2083 -0
  33. data/spec/linguistics/en/conjunctions_spec.rb +154 -0
  34. data/spec/linguistics/en/infinitives_spec.rb +518 -0
  35. data/spec/linguistics/en/linkparser_spec.rb +66 -0
  36. data/spec/linguistics/en/numbers_spec.rb +1295 -0
  37. data/spec/linguistics/en/participles_spec.rb +55 -0
  38. data/spec/linguistics/en/pluralization_spec.rb +4636 -0
  39. data/spec/linguistics/en/stemmer_spec.rb +72 -0
  40. data/spec/linguistics/en/titlecase_spec.rb +841 -0
  41. data/spec/linguistics/en/wordnet_spec.rb +85 -0
  42. data/spec/linguistics/en_spec.rb +45 -167
  43. data/spec/linguistics/inflector_spec.rb +40 -0
  44. data/spec/linguistics/iso639_spec.rb +49 -53
  45. data/spec/linguistics/monkeypatches_spec.rb +40 -0
  46. data/spec/linguistics_spec.rb +46 -76
  47. metadata +241 -113
  48. metadata.gz.sig +0 -0
  49. data/README +0 -166
  50. data/README.english +0 -245
  51. data/rake/191_compat.rb +0 -26
  52. data/rake/dependencies.rb +0 -76
  53. data/rake/documentation.rb +0 -123
  54. data/rake/helpers.rb +0 -502
  55. data/rake/hg.rb +0 -318
  56. data/rake/manual.rb +0 -787
  57. data/rake/packaging.rb +0 -129
  58. data/rake/publishing.rb +0 -341
  59. data/rake/style.rb +0 -62
  60. data/rake/svn.rb +0 -668
  61. data/rake/testing.rb +0 -152
  62. data/rake/verifytask.rb +0 -64
  63. data/tests/en/infinitive.tests.rb +0 -207
  64. data/tests/en/inflect.tests.rb +0 -1389
  65. data/tests/en/lafcadio.tests.rb +0 -77
  66. data/tests/en/linkparser.tests.rb +0 -42
  67. data/tests/en/lprintf.tests.rb +0 -77
  68. data/tests/en/titlecase.tests.rb +0 -73
  69. data/tests/en/wordnet.tests.rb +0 -95
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env spec -cfs
2
+
3
+ BEGIN {
4
+ require 'pathname'
5
+ basedir = Pathname.new( __FILE__ ).dirname.parent.parent
6
+
7
+ libdir = basedir + "lib"
8
+
9
+ $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
10
+ $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
11
+ }
12
+
13
+ require 'rspec'
14
+ require 'spec/lib/helpers'
15
+
16
+ require 'linguistics'
17
+ require 'linguistics/monkeypatches'
18
+
19
+
20
+ describe Array, "extended with Linguistics::ArrayExtensions" do
21
+
22
+ it "can return a copy of itself with a separator between each element" do
23
+ ary = %w[one two three]
24
+ ary.separate( 'and' ).should == [ 'one', 'and', 'two', 'and', 'three' ]
25
+ end
26
+
27
+ it "can return a copy of itself with each element separated by the return value of a block" do
28
+ ary = %w[thumpy lippy barky tiger]
29
+ result = ary.separate {|left, right| (left > right) ? '>' : '<' }
30
+ result.should == [ 'thumpy', '>', 'lippy', '>', 'barky', '<', 'tiger' ]
31
+ end
32
+
33
+ it "provides a mutator variant of #separate" do
34
+ ary = %w[one two three]
35
+ result = ary.separate!( nil )
36
+ result.should equal( ary )
37
+ result.should == [ 'one', nil, 'two', nil, 'three' ]
38
+ end
39
+
40
+ end
@@ -6,102 +6,72 @@ BEGIN {
6
6
 
7
7
  libdir = basedir + "lib"
8
8
 
9
- $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
9
+ $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
10
+ $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
10
11
  }
11
12
 
12
- begin
13
- require 'spec/runner'
14
- require 'linguistics'
15
- rescue LoadError
16
- unless Object.const_defined?( :Gem )
17
- require 'rubygems'
18
- retry
19
- end
20
- raise
21
- end
13
+ require 'rspec'
14
+ require 'spec/lib/helpers'
22
15
 
16
+ require 'linguistics'
23
17
 
24
- describe Linguistics do
25
18
 
26
- TestArray = %w{stone stick hammer stone lantern}
27
- TestString = "banner"
28
- TestNumber = 5
19
+ describe Linguistics do
29
20
 
30
21
  before( :all ) do
31
- Linguistics.use( :en )
22
+ setup_logging()
32
23
  end
33
24
 
25
+ after( :each ) do
26
+ reset_logging()
27
+ end
34
28
 
35
- it "loads a language's linguistic functions via variants of its ISO639 code" do
36
29
 
37
- [:en, :EN, 'en', 'EN', 'En', 'eN'].each do |code|
38
- res = Linguistics.use( code )
39
- res.should have(3).members
40
- res.should include(Array)
41
- res.should include(String)
42
- res.should include(Numeric)
43
- end
44
- end
30
+ describe "version methods" do
45
31
 
32
+ it "returns a version string if asked" do
33
+ Linguistics.version_string.should =~ /\w+ [\d.]+/
34
+ end
46
35
 
47
- it "raises an error when a language that doesn't exist is requested" do
48
- [ :zz, :ry, :qi ].each do |code|
49
- lambda {
50
- Linguistics.use( code )
51
- }.should raise_error( RuntimeError, /unknown language code/i )
36
+ it "returns a version string with a build number if asked" do
37
+ Linguistics.version_string(true).should =~ /\w+ [\d.]+ \(build [[:xdigit:]]+\)/
52
38
  end
53
39
  end
54
-
55
-
56
- it "raises an error for valid languages that don't have any linguistic functions to load" do
57
- [ :ja, :fr, :es ].each do |code|
58
- lambda {
59
- Linguistics.use( code )
60
- }.should raise_error( LoadError, /failed to load language extension/i )
61
- end
62
40
 
63
- end
64
41
 
42
+ describe "language-loading functions" do
65
43
 
66
- it "adds a method with the same name as the language code to Array that returns an inflector" +
67
- " proxy for that language" do
68
- TestArray.should respond_to( :en )
69
- TestArray.en.should be_a_kind_of( Linguistics::LanguageProxyClass )
70
- end
71
-
72
-
73
- it "adds a method with the same name as the language code to String that returns an inflector" +
74
- " proxy for that language" do
75
- TestString.should respond_to( :en )
76
- TestString.en.should be_a_kind_of( Linguistics::LanguageProxyClass )
77
- end
78
-
79
-
80
- it "adds a method with the same name as the language code to Numeric that returns an inflector" +
81
- " proxy for that language" do
82
- TestNumber.should respond_to( :en )
83
- TestNumber.en.should be_a_kind_of( Linguistics::LanguageProxyClass )
84
- end
85
-
86
-
87
- it "allows one to extend an additional class by passing it in the ':classes' argument to ::use" do
88
- Linguistics.use( :en, :classes => Symbol )
89
- :foo.should respond_to( :en )
90
- :foo.en.should be_a_kind_of( Linguistics::LanguageProxyClass )
91
- end
92
-
44
+ it "load a language's linguistic functions via variants of its ISO639 code" do
45
+ testclass = Class.new
46
+ Linguistics.use( :eng, :classes => testclass ).should == [ testclass ]
47
+ testclass.new.should respond_to( :eng )
48
+ testclass.new.should respond_to( :en )
49
+ end
93
50
 
94
- it "allows one to extend multiple additional classes by passing them in an Array in the "+
95
- " ':classes' argument to ::use" do
96
- Linguistics.use( :en, :classes => [IO, Class, Range] )
97
- $stderr.should respond_to( :en )
98
- $stderr.en.should be_a_kind_of( Linguistics::LanguageProxyClass )
51
+ it "load a language's linguistic functions via the 2-letter variant of its ISO639 code" do
52
+ testclass = Class.new
53
+ Linguistics.use( :en, :classes => testclass ).should == [ testclass ]
54
+ testclass.new.should respond_to( :eng )
55
+ testclass.new.should respond_to( :en )
56
+ end
99
57
 
100
- Object.should respond_to( :en )
101
- Object.en.should be_a_kind_of( Linguistics::LanguageProxyClass )
58
+ it "default to extending a default set of classes" do
59
+ Linguistics.use( :eng ).should == Linguistics::DEFAULT_EXT_CLASSES
60
+ [].should respond_to( :eng )
61
+ end
62
+
63
+ it "raise an error when a language that doesn't exist is requested" do
64
+ expect {
65
+ Linguistics.use( :zz )
66
+ }.to raise_error( RuntimeError, /unknown ISO639-2 language code/i )
67
+ end
68
+
69
+ it "raise an error for valid languages that don't have any linguistic functions to load" do
70
+ expect {
71
+ Linguistics.use( :ja )
72
+ }.to raise_error( LoadError, /failed to load a language extension/i )
73
+ end
102
74
 
103
- (0..155).should respond_to( :en )
104
- (0..155).en.should be_a_kind_of( Linguistics::LanguageProxyClass )
105
75
  end
106
-
76
+
107
77
  end
metadata CHANGED
@@ -1,135 +1,263 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: linguistics
3
- version: !ruby/object:Gem::Version
4
- hash: 5
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 9
10
- version: 1.0.9
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Michael Granger
14
9
  autorequire:
15
10
  bindir: bin
16
- cert_chain:
17
- - |
18
- -----BEGIN CERTIFICATE-----
19
- MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQwwCgYDVQQDDANnZWQx
20
- FzAVBgoJkiaJk/IsZAEZFgdfYWVyaWVfMRMwEQYKCZImiZPyLGQBGRYDb3JnMB4X
21
- DTEwMDkxNjE0NDg1MVoXDTExMDkxNjE0NDg1MVowPDEMMAoGA1UEAwwDZ2VkMRcw
22
- FQYKCZImiZPyLGQBGRYHX2FlcmllXzETMBEGCgmSJomT8ixkARkWA29yZzCCASIw
23
- DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALy//BFxC1f/cPSnwtJBWoFiFrir
24
- h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
25
- vDn7Uvhb2muFVqq6+vobeTkILBEO6pionWDG8jSbo3qKm1RjKJDwg9p4wNKhPuu8
26
- KGue/BFb67KflqyApPmPeb3Vdd9clspzqeFqp7cUBMEpFS6LWxy4Gk+qvFFJBJLB
27
- BUHE/LZVJMVzfpC5Uq+QmY7B+FH/QqNndn3tOHgsPadLTNimuB1sCuL1a4z3Pepd
28
- TeLBEFmEao5Dk3K/Q8o8vlbIB/jBDTUx6Djbgxw77909x6gI9doU4LD5XMcCAwEA
29
- AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJeoGkOr9l4B
30
- +saMkW/ZXT4UeSvVMA0GCSqGSIb3DQEBBQUAA4IBAQBG2KObvYI2eHyyBUJSJ3jN
31
- vEnU3d60znAXbrSd2qb3r1lY1EPDD3bcy0MggCfGdg3Xu54z21oqyIdk8uGtWBPL
32
- HIa9EgfFGSUEgvcIvaYqiN4jTUtidfEFw+Ltjs8AP9gWgSIYS6Gr38V0WGFFNzIH
33
- aOD2wmu9oo/RffW4hS/8GuvfMzcw7CQ355wFR4KB/nyze+EsZ1Y5DerCAagMVuDQ
34
- U0BLmWDFzPGGWlPeQCrYHCr+AcJz+NRnaHCKLZdSKj/RHuTOt+gblRex8FAh8NeA
35
- cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
36
- -----END CERTIFICATE-----
37
-
38
- date: 2011-09-02 00:00:00 Z
39
- dependencies: []
40
-
41
- description: |-
42
- in any language. It includes a generic language-independant front end, a
43
- module for mapping language codes into language names, and a module which
44
- contains various English-language utilities.
45
- email:
11
+ cert_chain:
12
+ - !binary |-
13
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURMRENDQWhTZ0F3SUJB
14
+ Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREE4TVF3d0NnWURWUVFEREFOblpX
15
+ UXgKRnpBVkJnb0praWFKay9Jc1pBRVpGZ2RmWVdWeWFXVmZNUk13RVFZS0Na
16
+ SW1pWlB5TEdRQkdSWURiM0puTUI0WApEVEV3TURreE5qRTBORGcxTVZvWERU
17
+ RXhNRGt4TmpFME5EZzFNVm93UERFTU1Bb0dBMVVFQXd3RFoyVmtNUmN3CkZR
18
+ WUtDWkltaVpQeUxHUUJHUllIWDJGbGNtbGxYekVUTUJFR0NnbVNKb21UOGl4
19
+ a0FSa1dBMjl5WnpDQ0FTSXcKRFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURD
20
+ Q0FRb0NnZ0VCQUx5Ly9CRnhDMWYvY1BTbnd0SkJXb0ZpRnJpcgpoN1JpY0kr
21
+ am9xL29jVlhRcUk0VERXUHlGLzh0cWt2dCtyRDk5WDlxczJZZVI4Q1UvWWlJ
22
+ cExXclFPWVNUNzBKCnZEbjdVdmhiMm11RlZxcTYrdm9iZVRrSUxCRU82cGlv
23
+ bldERzhqU2JvM3FLbTFSaktKRHdnOXA0d05LaFB1dTgKS0d1ZS9CRmI2N0tm
24
+ bHF5QXBQbVBlYjNWZGQ5Y2xzcHpxZUZxcDdjVUJNRXBGUzZMV3h5NEdrK3F2
25
+ RkZKQkpMQgpCVUhFL0xaVkpNVnpmcEM1VXErUW1ZN0IrRkgvUXFObmRuM3RP
26
+ SGdzUGFkTFROaW11QjFzQ3VMMWE0ejNQZXBkClRlTEJFRm1FYW81RGszSy9R
27
+ OG84dmxiSUIvakJEVFV4NkRqYmd4dzc3OTA5eDZnSTlkb1U0TEQ1WE1jQ0F3
28
+ RUEKQWFNNU1EY3dDUVlEVlIwVEJBSXdBREFMQmdOVkhROEVCQU1DQkxBd0hR
29
+ WURWUjBPQkJZRUZKZW9Ha09yOWw0Qgorc2FNa1cvWlhUNFVlU3ZWTUEwR0NT
30
+ cUdTSWIzRFFFQkJRVUFBNElCQVFCRzJLT2J2WUkyZUh5eUJVSlNKM2pOCnZF
31
+ blUzZDYwem5BWGJyU2QycWIzcjFsWTFFUEREM2JjeTBNZ2dDZkdkZzNYdTU0
32
+ ejIxb3F5SWRrOHVHdFdCUEwKSElhOUVnZkZHU1VFZ3ZjSXZhWXFpTjRqVFV0
33
+ aWRmRUZ3K0x0anM4QVA5Z1dnU0lZUzZHcjM4VjBXR0ZGTnpJSAphT0Qyd211
34
+ OW9vL1JmZlc0aFMvOEd1dmZNemN3N0NRMzU1d0ZSNEtCL255emUrRXNaMVk1
35
+ RGVyQ0FhZ01WdURRClUwQkxtV0RGelBHR1dsUGVRQ3JZSENyK0FjSnorTlJu
36
+ YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
37
+ Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
38
+ cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
+ date: 2012-10-10 00:00:00.000000000 Z
40
+ dependencies:
41
+ - !ruby/object:Gem::Dependency
42
+ name: hoe-mercurial
43
+ requirement: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ~>
47
+ - !ruby/object:Gem::Version
48
+ version: 1.4.0
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: 1.4.0
57
+ - !ruby/object:Gem::Dependency
58
+ name: hoe-highline
59
+ requirement: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ~>
63
+ - !ruby/object:Gem::Version
64
+ version: 0.1.0
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ version: 0.1.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: rdoc
75
+ requirement: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: '3.10'
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: '3.10'
89
+ - !ruby/object:Gem::Dependency
90
+ name: hoe-deveiate
91
+ requirement: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '0.1'
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ version: '0.1'
105
+ - !ruby/object:Gem::Dependency
106
+ name: linkparser
107
+ requirement: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ~>
111
+ - !ruby/object:Gem::Version
112
+ version: '1.1'
113
+ type: :development
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '1.1'
121
+ - !ruby/object:Gem::Dependency
122
+ name: wordnet
123
+ requirement: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ~>
127
+ - !ruby/object:Gem::Version
128
+ version: '0.99'
129
+ type: :development
130
+ prerelease: false
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ~>
135
+ - !ruby/object:Gem::Version
136
+ version: '0.99'
137
+ - !ruby/object:Gem::Dependency
138
+ name: ruby-stemmer
139
+ requirement: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ~>
143
+ - !ruby/object:Gem::Version
144
+ version: '0.9'
145
+ type: :development
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '0.9'
153
+ - !ruby/object:Gem::Dependency
154
+ name: hoe
155
+ requirement: !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ~>
159
+ - !ruby/object:Gem::Version
160
+ version: '3.0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ none: false
165
+ requirements:
166
+ - - ~>
167
+ - !ruby/object:Gem::Version
168
+ version: '3.0'
169
+ description: ! "Linguistics is a framework for building linguistic utilities for Ruby\nobjects
170
+ in any language. It includes a generic language-independant\nfront end, a module
171
+ for mapping language codes into language names, and\na module which contains various
172
+ English-language utilities.\n\nHere are a few whimsical examples:\n\n Linguistics.use(
173
+ :en )\n # \n \n puts \"Head of State\".en.quantify( 11 )'"
174
+ email:
46
175
  - ged@FaerieMUD.org
47
176
  executables: []
48
-
49
177
  extensions: []
50
-
51
- extra_rdoc_files:
178
+ extra_rdoc_files:
179
+ - History.rdoc
180
+ - Manifest.txt
181
+ - README.rdoc
182
+ files:
52
183
  - ChangeLog
53
- - README
54
- - README.english
184
+ - History.rdoc
55
185
  - LICENSE
56
- files:
186
+ - Manifest.txt
187
+ - README.rdoc
57
188
  - Rakefile
58
- - ChangeLog
59
- - README
60
- - README.english
61
- - LICENSE
62
- - spec/linguistics/en_spec.rb
63
- - spec/linguistics/iso639_spec.rb
64
- - spec/linguistics_spec.rb
65
- - tests/en/infinitive.tests.rb
66
- - tests/en/inflect.tests.rb
67
- - tests/en/lafcadio.tests.rb
68
- - tests/en/linkparser.tests.rb
69
- - tests/en/lprintf.tests.rb
70
- - tests/en/titlecase.tests.rb
71
- - tests/en/wordnet.tests.rb
72
- - lib/linguistics/en/infinitive.rb
189
+ - examples/endocs.rb
190
+ - examples/generalize_sentence.rb
191
+ - examples/klingon.rb
192
+ - lib/linguistics.rb
193
+ - lib/linguistics/en.rb
194
+ - lib/linguistics/en/articles.rb
195
+ - lib/linguistics/en/conjugation.rb
196
+ - lib/linguistics/en/conjunctions.rb
197
+ - lib/linguistics/en/infinitives.rb
73
198
  - lib/linguistics/en/linkparser.rb
199
+ - lib/linguistics/en/numbers.rb
200
+ - lib/linguistics/en/participles.rb
201
+ - lib/linguistics/en/pluralization.rb
202
+ - lib/linguistics/en/stemmer.rb
203
+ - lib/linguistics/en/titlecase.rb
74
204
  - lib/linguistics/en/wordnet.rb
75
- - lib/linguistics/en.rb
205
+ - lib/linguistics/inflector.rb
76
206
  - lib/linguistics/iso639.rb
77
- - lib/linguistics.rb
78
- - rake/191_compat.rb
79
- - rake/dependencies.rb
80
- - rake/documentation.rb
81
- - rake/helpers.rb
82
- - rake/hg.rb
83
- - rake/manual.rb
84
- - rake/packaging.rb
85
- - rake/publishing.rb
86
- - rake/style.rb
87
- - rake/svn.rb
88
- - rake/testing.rb
89
- - rake/verifytask.rb
90
- - ./examples/generalize_sentence.rb
91
- - ./README.english
92
- homepage: http://deveiate.org/projects/Linguistics/
93
- licenses:
207
+ - lib/linguistics/languagebehavior.rb
208
+ - lib/linguistics/monkeypatches.rb
209
+ - spec/lib/constants.rb
210
+ - spec/lib/helpers.rb
211
+ - spec/linguistics/en/articles_spec.rb
212
+ - spec/linguistics/en/conjugation_spec.rb
213
+ - spec/linguistics/en/conjunctions_spec.rb
214
+ - spec/linguistics/en/infinitives_spec.rb
215
+ - spec/linguistics/en/linkparser_spec.rb
216
+ - spec/linguistics/en/numbers_spec.rb
217
+ - spec/linguistics/en/participles_spec.rb
218
+ - spec/linguistics/en/pluralization_spec.rb
219
+ - spec/linguistics/en/stemmer_spec.rb
220
+ - spec/linguistics/en/titlecase_spec.rb
221
+ - spec/linguistics/en/wordnet_spec.rb
222
+ - spec/linguistics/en_spec.rb
223
+ - spec/linguistics/inflector_spec.rb
224
+ - spec/linguistics/iso639_spec.rb
225
+ - spec/linguistics/monkeypatches_spec.rb
226
+ - spec/linguistics_spec.rb
227
+ - .gemtest
228
+ homepage: http://deveiate.org/code/linguistics
229
+ licenses:
94
230
  - BSD
95
- post_install_message:
96
- rdoc_options:
97
- - --tab-width=4
98
- - --show-hash
99
- - --include
100
- - .
101
- - --main=README
102
- - --title=linguistics
103
- require_paths:
231
+ post_install_message: ! 'This library also presents tie-ins for the ''linkparser''
232
+ and
233
+
234
+ ''wordnet'' libraries, which you can enable by installing the
235
+
236
+ gems of the same name.'
237
+ rdoc_options:
238
+ - -f
239
+ - fivefish
240
+ - -t
241
+ - Ruby Linguistics Toolkit
242
+ require_paths:
104
243
  - lib
105
- required_ruby_version: !ruby/object:Gem::Requirement
244
+ required_ruby_version: !ruby/object:Gem::Requirement
106
245
  none: false
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- hash: 57
111
- segments:
112
- - 1
113
- - 8
114
- - 7
115
- version: 1.8.7
116
- required_rubygems_version: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ! '>='
248
+ - !ruby/object:Gem::Version
249
+ version: 1.9.3
250
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
251
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- hash: 3
122
- segments:
123
- - 0
124
- version: "0"
252
+ requirements:
253
+ - - ! '>='
254
+ - !ruby/object:Gem::Version
255
+ version: '0'
125
256
  requirements: []
126
-
127
- rubyforge_project:
128
- rubygems_version: 1.8.5
257
+ rubyforge_project: linguistics
258
+ rubygems_version: 1.8.24
129
259
  signing_key:
130
260
  specification_version: 3
131
- summary: a framework for building linguistic utilities for Ruby objects
132
- test_files:
133
- - spec/linguistics/en_spec.rb
134
- - spec/linguistics/iso639_spec.rb
135
- - spec/linguistics_spec.rb
261
+ summary: Linguistics is a framework for building linguistic utilities for Ruby objects
262
+ in any language
263
+ test_files: []