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.
- data.tar.gz.sig +0 -0
- data/.gemtest +0 -0
- data/ChangeLog +849 -342
- data/History.rdoc +11 -0
- data/LICENSE +9 -9
- data/Manifest.txt +44 -0
- data/README.rdoc +226 -0
- data/Rakefile +32 -349
- data/examples/endocs.rb +272 -0
- data/examples/generalize_sentence.rb +2 -1
- data/examples/klingon.rb +22 -0
- data/lib/linguistics.rb +130 -292
- data/lib/linguistics/en.rb +337 -1628
- data/lib/linguistics/en/articles.rb +138 -0
- data/lib/linguistics/en/conjugation.rb +2245 -0
- data/lib/linguistics/en/conjunctions.rb +202 -0
- data/lib/linguistics/en/{infinitive.rb → infinitives.rb} +41 -55
- data/lib/linguistics/en/linkparser.rb +41 -49
- data/lib/linguistics/en/numbers.rb +483 -0
- data/lib/linguistics/en/participles.rb +33 -0
- data/lib/linguistics/en/pluralization.rb +810 -0
- data/lib/linguistics/en/stemmer.rb +75 -0
- data/lib/linguistics/en/titlecase.rb +121 -0
- data/lib/linguistics/en/wordnet.rb +63 -97
- data/lib/linguistics/inflector.rb +89 -0
- data/lib/linguistics/iso639.rb +534 -448
- data/lib/linguistics/languagebehavior.rb +36 -0
- data/lib/linguistics/monkeypatches.rb +42 -0
- data/spec/lib/constants.rb +15 -0
- data/spec/lib/helpers.rb +38 -0
- data/spec/linguistics/en/articles_spec.rb +797 -0
- data/spec/linguistics/en/conjugation_spec.rb +2083 -0
- data/spec/linguistics/en/conjunctions_spec.rb +154 -0
- data/spec/linguistics/en/infinitives_spec.rb +518 -0
- data/spec/linguistics/en/linkparser_spec.rb +66 -0
- data/spec/linguistics/en/numbers_spec.rb +1295 -0
- data/spec/linguistics/en/participles_spec.rb +55 -0
- data/spec/linguistics/en/pluralization_spec.rb +4636 -0
- data/spec/linguistics/en/stemmer_spec.rb +72 -0
- data/spec/linguistics/en/titlecase_spec.rb +841 -0
- data/spec/linguistics/en/wordnet_spec.rb +85 -0
- data/spec/linguistics/en_spec.rb +45 -167
- data/spec/linguistics/inflector_spec.rb +40 -0
- data/spec/linguistics/iso639_spec.rb +49 -53
- data/spec/linguistics/monkeypatches_spec.rb +40 -0
- data/spec/linguistics_spec.rb +46 -76
- metadata +241 -113
- metadata.gz.sig +0 -0
- data/README +0 -166
- data/README.english +0 -245
- data/rake/191_compat.rb +0 -26
- data/rake/dependencies.rb +0 -76
- data/rake/documentation.rb +0 -123
- data/rake/helpers.rb +0 -502
- data/rake/hg.rb +0 -318
- data/rake/manual.rb +0 -787
- data/rake/packaging.rb +0 -129
- data/rake/publishing.rb +0 -341
- data/rake/style.rb +0 -62
- data/rake/svn.rb +0 -668
- data/rake/testing.rb +0 -152
- data/rake/verifytask.rb +0 -64
- data/tests/en/infinitive.tests.rb +0 -207
- data/tests/en/inflect.tests.rb +0 -1389
- data/tests/en/lafcadio.tests.rb +0 -77
- data/tests/en/linkparser.tests.rb +0 -42
- data/tests/en/lprintf.tests.rb +0 -77
- data/tests/en/titlecase.tests.rb +0 -73
- 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
|
data/spec/linguistics_spec.rb
CHANGED
@@ -6,102 +6,72 @@ BEGIN {
|
|
6
6
|
|
7
7
|
libdir = basedir + "lib"
|
8
8
|
|
9
|
-
$LOAD_PATH.unshift(
|
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
|
-
|
13
|
-
|
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
|
-
|
27
|
-
TestString = "banner"
|
28
|
-
TestNumber = 5
|
19
|
+
describe Linguistics do
|
29
20
|
|
30
21
|
before( :all ) do
|
31
|
-
|
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
|
-
|
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
|
-
|
48
|
-
|
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
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
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
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
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
|
-
|
101
|
-
|
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
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
-
|
178
|
+
extra_rdoc_files:
|
179
|
+
- History.rdoc
|
180
|
+
- Manifest.txt
|
181
|
+
- README.rdoc
|
182
|
+
files:
|
52
183
|
- ChangeLog
|
53
|
-
-
|
54
|
-
- README.english
|
184
|
+
- History.rdoc
|
55
185
|
- LICENSE
|
56
|
-
|
186
|
+
- Manifest.txt
|
187
|
+
- README.rdoc
|
57
188
|
- Rakefile
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
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/
|
205
|
+
- lib/linguistics/inflector.rb
|
76
206
|
- lib/linguistics/iso639.rb
|
77
|
-
- lib/linguistics.rb
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
|
93
|
-
|
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
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
-
|
103
|
-
|
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
|
-
|
111
|
-
|
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
|
-
|
122
|
-
segments:
|
123
|
-
- 0
|
124
|
-
version: "0"
|
252
|
+
requirements:
|
253
|
+
- - ! '>='
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: '0'
|
125
256
|
requirements: []
|
126
|
-
|
127
|
-
|
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
|
-
|
133
|
-
|
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: []
|