latinirb 0.4.0 → 1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c57bbd86b3d1dd4c0c91df4d40df713380ef70be
4
- data.tar.gz: 1a9145e1b89143f1a093bcfc4b192d6738b30e41
3
+ metadata.gz: 26c28da700591da547c227b0c872dc69179f5e9b
4
+ data.tar.gz: 1762ad672e1d1b6c1dc9aa82f9faeb02930e755c
5
5
  SHA512:
6
- metadata.gz: bb77e235b525e3ee59ffcae5effac435b4776fb9472c3cc05974201fe997cbd80e47e611fe7d81c5e4f8e2fdeff68ca7a58752db2cdb590486db46d296e9699f
7
- data.tar.gz: 7a9a02f0eb9634e8a94e9f8ca02501c7b86b95173fb1af94f80c44aa4113e9eb6962c2a9399a118ac963110a55f31cf80e86c2ad5aa6d40d392a8060ceb0bcd2
6
+ metadata.gz: bef10232d02563166f7262a16900e776ba5b67f16309d89809da6da205fd6dbd25d9f2c817b72cbc3e737127b796038a5f0971d1a82a05ba285741c033d181b3
7
+ data.tar.gz: 2d12c578621937282d98958166913e86bd0a58691419181b3ddf66bd2af5cb624086af4e707213ad44fb610f5ff1df73a879842881a8b051d728b64e69248080
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in latinirb.gemspec
4
4
  gemspec
5
+ gem 'byebug'
data/Gemfile.lock CHANGED
@@ -1,41 +1,83 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- latinirb (0.3.4)
4
+ latinirb (0.4.0)
5
5
  activesupport (>= 4)
6
6
  latinverb (~> 0.9.5)
7
+ latinverb_chart_presenter
8
+ linguistics_latin
9
+ macronconversions
7
10
 
8
11
  GEM
9
12
  remote: http://rubygems.org/
10
13
  specs:
11
- activesupport (4.0.0)
12
- i18n (~> 0.6, >= 0.6.4)
13
- minitest (~> 4.2)
14
- multi_json (~> 1.3)
14
+ activesupport (4.1.2)
15
+ i18n (~> 0.6, >= 0.6.9)
16
+ json (~> 1.7, >= 1.7.7)
17
+ minitest (~> 5.1)
15
18
  thread_safe (~> 0.1)
16
- tzinfo (~> 0.3.37)
17
- atomic (1.1.14)
18
- i18n (0.6.5)
19
- json (1.8.0)
19
+ tzinfo (~> 1.1)
20
+ byebug (3.1.2)
21
+ columnize (~> 0.8)
22
+ debugger-linecache (~> 1.2)
23
+ columnize (0.8.9)
24
+ debugger-linecache (1.2.0)
25
+ i18n (0.6.9)
26
+ json (1.8.1)
20
27
  latinverb (0.9.5)
21
- activesupport
22
- linguistics_latin
28
+ latinverb_classifier (= 1.0.0.pre.1)
29
+ latinverb_deponent_string_deriver
30
+ latinverb_imperative_block
31
+ latinverb_irregular_imperatives_retriever
32
+ latinverb_irregular_infinitives_retriever
33
+ latinverb_irregular_participles_retriever
34
+ latinverb_irregular_verb_definition_consumer
35
+ latinverb_principal_parts_extractor
36
+ latinverb_querent_for_classification_builder
37
+ latinverb_stem_deriver
38
+ latinverb_type_evaluator
39
+ linguistics_latin (~> 0.0.2)
40
+ linguistics_latin_tense_block
23
41
  macronconversions
42
+ multi_json (~> 1.8)
24
43
  rake
25
- rdoc
26
- linguistics_latin (0.0.1)
44
+ latinverb_chart_presenter (0.0.1)
45
+ latinverb_classifier (1.0.0.pre.1)
46
+ linguistics_latin (~> 0.0.2)
47
+ latinverb_deponent_string_deriver (1.0.0.pre.1)
48
+ latinverb_imperative_block (0.0.1)
49
+ linguistics_latin (~> 0.0.2)
50
+ latinverb_irregular_imperatives_retriever (0.0.1)
51
+ latinverb_irregular_infinitives_retriever (0.0.1)
52
+ latinverb_irregular_verb_definition_consumer
53
+ linguistics_latin
54
+ latinverb_irregular_participles_retriever (0.0.1)
55
+ latinverb_irregular_verb_definition_consumer (0.0.1)
56
+ linguistics_latin
57
+ latinverb_principal_parts_extractor (0.0.1)
58
+ latinverb_querent_for_classification_builder (0.0.1)
59
+ latinverb_irregular_infinitives_retriever
60
+ linguistics_latin (~> 0.0.2)
61
+ linguistics_latin_tense_block
62
+ latinverb_stem_deriver (0.0.1)
63
+ latinverb_deponent_string_deriver
64
+ latinverb_type_evaluator (0.0.1)
65
+ latinverb_deponent_string_deriver
66
+ linguistics_latin (~> 0.0.2)
67
+ linguistics_latin (0.0.2)
68
+ linguistics_latin_tense_block (0.0.1)
69
+ linguistics_latin
27
70
  macronconversions (0.0.1)
28
- minitest (4.3.2)
29
- multi_json (1.8.2)
30
- rake (10.1.0)
31
- rdoc (4.0.1)
32
- json (~> 1.4)
33
- thread_safe (0.1.3)
34
- atomic
35
- tzinfo (0.3.38)
71
+ minitest (5.3.5)
72
+ multi_json (1.10.1)
73
+ rake (10.3.2)
74
+ thread_safe (0.3.4)
75
+ tzinfo (1.2.1)
76
+ thread_safe (~> 0.1)
36
77
 
37
78
  PLATFORMS
38
79
  ruby
39
80
 
40
81
  DEPENDENCIES
82
+ byebug
41
83
  latinirb!
data/README.markdown CHANGED
@@ -2,22 +2,21 @@
2
2
 
3
3
  ## DESCRIPTION
4
4
 
5
- LatinIRB is an IRB session in which a user can interact with paradigmatic
6
- Latin verbs (`@aFirst`, `@aSecond`, `@aThird`, `@aThirdIO`, `@aFourth`) as
7
- calculated heuristically by the
8
- [LatinVerb](https://github.com/sgharms/LatinVerb) library.
5
+ LatinIRB is an IRB session in which a user can interact with paradigmatic Latin
6
+ verbs (`@aFirst`, `@aSecond`, `@aThird`, `@aThirdIO`, `@aFourth`) as calculated
7
+ heuristically by the [LatinVerb](https://github.com/sgharms/LatinVerb) library.
9
8
 
10
9
  The methods of chief interest will be those that are _vectors_ within the
11
10
  LatinVerb parlance i.e. methods that uniquely identify a specific conjugated
12
11
  form of a verb.
13
12
 
14
13
  An primary use case would be:
15
-
16
- @aFirst.active\_voice\_indicative\_mood\_present\_tense\_first\_person\_singular\_number #=> amō
14
+
15
+ @aFirst.active\_voice\_indicative\_mood\_present\_tense\_first\_person\_singular\_number #=> amō
17
16
 
18
17
  Upon opening the session, the student may play with verbs offered for
19
- exploration. These are the standard paradigmatics verbs presented in
20
- Wheelock as well as three core irregular verbs:
18
+ exploration. These are the standard paradigmatics verbs presented in Wheelock
19
+ as well as three core irregular verbs:
21
20
 
22
21
  <table>
23
22
  <tr><th>Varible </th> <th>Parts </th> <th> Meaning</th></tr>
@@ -39,18 +38,18 @@ macron data so that the heuristics work. To this end, you may use
39
38
  MacronConversions to convert ASCII TeX-style transliterations of macronized
40
39
  vowels to produce the correct string:
41
40
 
42
- lv = LatinVerb.new(Text::Latex::Util::Macronconversions.convert('am\={o} am\={a}re am\={a}v\={i} amatum', :mc))
43
- lv.active\_voice\_indicative\_mood\_present\_tense\_first\_person\_singular\_number #=> amō
41
+ lv = LatinVerb.new(Text::Latex::Util::Macronconversions.convert('am\={o} am\={a}re am\={a}v\={i} amatum', :mc))
42
+ lv.active\_voice\_indicative\_mood\_present\_tense\_first\_person\_singular\_number #=> amō
44
43
 
45
44
  ## VIEWING
46
45
 
47
46
  The environment takes advantage of Ruby's UTF-8 support to display the verbs
48
47
  with macrons (notation representing the quantity of the vowels). I recommend
49
- that you use urxvt or Apple's Terminal.app for viewing these entries.
48
+ that you use iTerm2, urxvt, or Apple's Terminal.app for viewing these entries.
50
49
 
51
50
  ## GENERATING VERBS
52
51
 
53
- Typically, in the code I have used the macron-ized character because Textmate and my Terminal of choice
52
+ Typically, in the code I have used the macron-ized character because `vim` and my terminal of choice
54
53
  both understand it.
55
54
 
56
55
  LatinVerb.new %w(amō amāre amāvī amatum)
@@ -58,7 +57,7 @@ both understand it.
58
57
  ### CHART VIEW
59
58
 
60
59
  To view the chart of a verb, use LatinVerb.chart. This is a basic
61
- chart that will look familiar to students.
60
+ chart that will look familiar to students.
62
61
 
63
62
  ## EXECUTING METHODS
64
63
 
@@ -69,7 +68,7 @@ number / and person.
69
68
 
70
69
  As such methods are of the form:
71
70
 
72
- (active|passive)\_voice\_(indicative|subjunctive)\_mood\_(present|imperfect|perfect|pastperfect|futureperfect|etc.)tense\_(first|second|third)\_person\_(singular|plural)\_number
71
+ (active|passive)\_voice\_(indicative|subjunctive)\_mood\_(present|imperfect|perfect|pastperfect|futureperfect|etc.)tense\_(first|second|third)\_person\_(singular|plural)\_number
73
72
 
74
73
  This will return a single value. Where the result is ambiguous (e.g. 'number'
75
74
  is not provided) multiple values are returned. an exhaustive list of options
@@ -88,150 +87,150 @@ such as "present tense." For their invocation, see below
88
87
  * LatinVerb.active\_voice\_indicative\_mood\_present\_tense\_first\_person\_plural\_number
89
88
  * LatinVerb.active\_voice\_indicative\_mood\_present\_tense\_second\_person\_plural\_number
90
89
  * LatinVerb.active\_voice\_indicative\_mood\_present\_tense\_third\_person\_plural\_number
91
-
90
+
92
91
  * LatinVerb.active\_voice\_indicative\_mood\_imperfect\_tense\_first\_person\_singular\_number
93
92
  * LatinVerb.active\_voice\_indicative\_mood\_imperfect\_tense\_second\_person\_singular\_number
94
93
  * LatinVerb.active\_voice\_indicative\_mood\_imperfect\_tense\_third\_person\_singular\_number
95
94
  * LatinVerb.active\_voice\_indicative\_mood\_imperfect\_tense\_first\_person\_plural\_number
96
95
  * LatinVerb.active\_voice\_indicative\_mood\_imperfect\_tense\_second\_person\_plural\_number
97
96
  * LatinVerb.active\_voice\_indicative\_mood\_imperfect\_tense\_third\_person\_plural\_number
98
-
97
+
99
98
  * LatinVerb.active\_voice\_indicative\_mood\_future\_tense\_first\_person\_singular\_number
100
99
  * LatinVerb.active\_voice\_indicative\_mood\_future\_tense\_second\_person\_singular\_number
101
100
  * LatinVerb.active\_voice\_indicative\_mood\_future\_tense\_third\_person\_singular\_number
102
101
  * LatinVerb.active\_voice\_indicative\_mood\_future\_tense\_first\_person\_plural\_number
103
102
  * LatinVerb.active\_voice\_indicative\_mood\_future\_tense\_second\_person\_plural\_number
104
103
  * LatinVerb.active\_voice\_indicative\_mood\_future\_tense\_third\_person\_plural\_number
105
-
104
+
106
105
  * LatinVerb.active\_voice\_indicative\_mood\_perfect\_tense\_first\_person\_singular\_number
107
106
  * LatinVerb.active\_voice\_indicative\_mood\_perfect\_tense\_second\_person\_singular\_number
108
107
  * LatinVerb.active\_voice\_indicative\_mood\_perfect\_tense\_third\_person\_singular\_number
109
108
  * LatinVerb.active\_voice\_indicative\_mood\_perfect\_tense\_first\_person\_plural\_number
110
109
  * LatinVerb.active\_voice\_indicative\_mood\_perfect\_tense\_second\_person\_plural\_number
111
110
  * LatinVerb.active\_voice\_indicative\_mood\_perfect\_tense\_third\_person\_plural\_number
112
-
111
+
113
112
  * LatinVerb.active\_voice\_indicative\_mood\_pastperfect\_tense\_first\_person\_singular\_number
114
113
  * LatinVerb.active\_voice\_indicative\_mood\_pastperfect\_tense\_second\_person\_singular\_number
115
114
  * LatinVerb.active\_voice\_indicative\_mood\_pastperfect\_tense\_third\_person\_singular\_number
116
115
  * LatinVerb.active\_voice\_indicative\_mood\_pastperfect\_tense\_first\_person\_plural\_number
117
116
  * LatinVerb.active\_voice\_indicative\_mood\_pastperfect\_tense\_second\_person\_plural\_number
118
117
  * LatinVerb.active\_voice\_indicative\_mood\_pastperfect\_tense\_third\_person\_plural\_number
119
-
118
+
120
119
  * LatinVerb.active\_voice\_indicative\_mood\_futureperfect\_tense\_first\_person\_singular\_number
121
120
  * LatinVerb.active\_voice\_indicative\_mood\_futureperfect\_tense\_second\_person\_singular\_number
122
121
  * LatinVerb.active\_voice\_indicative\_mood\_futureperfect\_tense\_third\_person\_singular\_number
123
122
  * LatinVerb.active\_voice\_indicative\_mood\_futureperfect\_tense\_first\_person\_plural\_number
124
123
  * LatinVerb.active\_voice\_indicative\_mood\_futureperfect\_tense\_second\_person\_plural\_number
125
124
  * LatinVerb.active\_voice\_indicative\_mood\_futureperfect\_tense\_third\_person\_plural\_number
126
-
125
+
127
126
  * LatinVerb.passive\_voice\_indicative\_mood\_present\_tense\_first\_person\_singular\_number
128
127
  * LatinVerb.passive\_voice\_indicative\_mood\_present\_tense\_second\_person\_singular\_number
129
128
  * LatinVerb.passive\_voice\_indicative\_mood\_present\_tense\_third\_person\_singular\_number
130
129
  * LatinVerb.passive\_voice\_indicative\_mood\_present\_tense\_first\_person\_plural\_number
131
130
  * LatinVerb.passive\_voice\_indicative\_mood\_present\_tense\_second\_person\_plural\_number
132
131
  * LatinVerb.passive\_voice\_indicative\_mood\_present\_tense\_third\_person\_plural\_number
133
-
132
+
134
133
  * LatinVerb.passive\_voice\_indicative\_mood\_imperfect\_tense\_first\_person\_singular\_number
135
134
  * LatinVerb.passive\_voice\_indicative\_mood\_imperfect\_tense\_second\_person\_singular\_number
136
135
  * LatinVerb.passive\_voice\_indicative\_mood\_imperfect\_tense\_third\_person\_singular\_number
137
136
  * LatinVerb.passive\_voice\_indicative\_mood\_imperfect\_tense\_first\_person\_plural\_number
138
137
  * LatinVerb.passive\_voice\_indicative\_mood\_imperfect\_tense\_second\_person\_plural\_number
139
138
  * LatinVerb.passive\_voice\_indicative\_mood\_imperfect\_tense\_third\_person\_plural\_number
140
-
139
+
141
140
  * LatinVerb.passive\_voice\_indicative\_mood\_future\_tense\_first\_person\_singular\_number
142
141
  * LatinVerb.passive\_voice\_indicative\_mood\_future\_tense\_second\_person\_singular\_number
143
142
  * LatinVerb.passive\_voice\_indicative\_mood\_future\_tense\_third\_person\_singular\_number
144
143
  * LatinVerb.passive\_voice\_indicative\_mood\_future\_tense\_first\_person\_plural\_number
145
144
  * LatinVerb.passive\_voice\_indicative\_mood\_future\_tense\_second\_person\_plural\_number
146
145
  * LatinVerb.passive\_voice\_indicative\_mood\_future\_tense\_third\_person\_plural\_number
147
-
146
+
148
147
  * LatinVerb.passive\_voice\_indicative\_mood\_perfect\_tense\_first\_person\_singular\_number
149
148
  * LatinVerb.passive\_voice\_indicative\_mood\_perfect\_tense\_second\_person\_singular\_number
150
149
  * LatinVerb.passive\_voice\_indicative\_mood\_perfect\_tense\_third\_person\_singular\_number
151
150
  * LatinVerb.passive\_voice\_indicative\_mood\_perfect\_tense\_first\_person\_plural\_number
152
151
  * LatinVerb.passive\_voice\_indicative\_mood\_perfect\_tense\_second\_person\_plural\_number
153
- * LatinVerb.passive\_voice\_indicative\_mood\_perfect\_tense\_third\_person\_plural\_number.to\_s)
154
-
152
+ * LatinVerb.passive\_voice\_indicative\_mood\_perfect\_tense\_third\_person\_plural\_number.to\_s)
153
+
155
154
  * LatinVerb.passive\_voice\_indicative\_mood\_pastperfect\_tense\_first\_person\_singular\_number
156
155
  * LatinVerb.passive\_voice\_indicative\_mood\_pastperfect\_tense\_second\_person\_singular\_number
157
156
  * LatinVerb.passive\_voice\_indicative\_mood\_pastperfect\_tense\_third\_person\_singular\_number
158
157
  * LatinVerb.passive\_voice\_indicative\_mood\_pastperfect\_tense\_first\_person\_plural\_number
159
158
  * LatinVerb.passive\_voice\_indicative\_mood\_pastperfect\_tense\_second\_person\_plural\_number
160
- * LatinVerb.passive\_voice\_indicative\_mood\_pastperfect\_tense\_third\_person\_plural\_number.to\_s)
161
-
159
+ * LatinVerb.passive\_voice\_indicative\_mood\_pastperfect\_tense\_third\_person\_plural\_number.to\_s)
160
+
162
161
  * LatinVerb.passive\_voice\_indicative\_mood\_futureperfect\_tense\_first\_person\_singular\_number
163
162
  * LatinVerb.passive\_voice\_indicative\_mood\_futureperfect\_tense\_second\_person\_singular\_number
164
163
  * LatinVerb.passive\_voice\_indicative\_mood\_futureperfect\_tense\_third\_person\_singular\_number
165
164
  * LatinVerb.passive\_voice\_indicative\_mood\_futureperfect\_tense\_first\_person\_plural\_number
166
165
  * LatinVerb.passive\_voice\_indicative\_mood\_futureperfect\_tense\_second\_person\_plural\_number
167
166
  * LatinVerb.passive\_voice\_indicative\_mood\_futureperfect\_tense\_third\_person\_plural\_number
168
-
169
-
167
+
168
+
170
169
  * LatinVerb.active\_voice\_subjunctive\_mood\_present\_tense\_first\_person\_singular\_number
171
170
  * LatinVerb.active\_voice\_subjunctive\_mood\_present\_tense\_second\_person\_singular\_number
172
171
  * LatinVerb.active\_voice\_subjunctive\_mood\_present\_tense\_third\_person\_singular\_number
173
172
  * LatinVerb.active\_voice\_subjunctive\_mood\_present\_tense\_first\_person\_plural\_number
174
173
  * LatinVerb.active\_voice\_subjunctive\_mood\_present\_tense\_second\_person\_plural\_number
175
174
  * LatinVerb.active\_voice\_subjunctive\_mood\_present\_tense\_third\_person\_plural\_number
176
-
175
+
177
176
  * LatinVerb.active\_voice\_subjunctive\_mood\_imperfect\_tense\_first\_person\_singular\_number
178
177
  * LatinVerb.active\_voice\_subjunctive\_mood\_imperfect\_tense\_second\_person\_singular\_number
179
178
  * LatinVerb.active\_voice\_subjunctive\_mood\_imperfect\_tense\_third\_person\_singular\_number
180
179
  * LatinVerb.active\_voice\_subjunctive\_mood\_imperfect\_tense\_first\_person\_plural\_number
181
180
  * LatinVerb.active\_voice\_subjunctive\_mood\_imperfect\_tense\_second\_person\_plural\_number
182
181
  * LatinVerb.active\_voice\_subjunctive\_mood\_imperfect\_tense\_third\_person\_plural\_number
183
-
182
+
184
183
  * LatinVerb.active\_voice\_subjunctive\_mood\_perfect\_tense\_first\_person\_singular\_number
185
184
  * LatinVerb.active\_voice\_subjunctive\_mood\_perfect\_tense\_second\_person\_singular\_number
186
185
  * LatinVerb.active\_voice\_subjunctive\_mood\_perfect\_tense\_third\_person\_singular\_number
187
186
  * LatinVerb.active\_voice\_subjunctive\_mood\_perfect\_tense\_first\_person\_plural\_number
188
187
  * LatinVerb.active\_voice\_subjunctive\_mood\_perfect\_tense\_second\_person\_plural\_number
189
188
  * LatinVerb.active\_voice\_subjunctive\_mood\_perfect\_tense\_third\_person\_plural\_number
190
-
189
+
191
190
  * LatinVerb.active\_voice\_subjunctive\_mood\_pastperfect\_tense\_first\_person\_singular\_number
192
191
  * LatinVerb.active\_voice\_subjunctive\_mood\_pastperfect\_tense\_second\_person\_singular\_number
193
192
  * LatinVerb.active\_voice\_subjunctive\_mood\_pastperfect\_tense\_third\_person\_singular\_number
194
193
  * LatinVerb.active\_voice\_subjunctive\_mood\_pastperfect\_tense\_first\_person\_plural\_number
195
194
  * LatinVerb.active\_voice\_subjunctive\_mood\_pastperfect\_tense\_second\_person\_plural\_number
196
195
  * LatinVerb.active\_voice\_subjunctive\_mood\_pastperfect\_tense\_third\_person\_plural\_number
197
-
196
+
198
197
  * LatinVerb.passive\_voice\_subjunctive\_mood\_present\_tense\_first\_person\_singular\_number
199
198
  * LatinVerb.passive\_voice\_subjunctive\_mood\_present\_tense\_second\_person\_singular\_number
200
199
  * LatinVerb.passive\_voice\_subjunctive\_mood\_present\_tense\_third\_person\_singular\_number
201
200
  * LatinVerb.passive\_voice\_subjunctive\_mood\_present\_tense\_first\_person\_plural\_number
202
201
  * LatinVerb.passive\_voice\_subjunctive\_mood\_present\_tense\_second\_person\_plural\_number
203
202
  * LatinVerb.passive\_voice\_subjunctive\_mood\_present\_tense\_third\_person\_plural\_number
204
-
203
+
205
204
  * LatinVerb.passive\_voice\_subjunctive\_mood\_imperfect\_tense\_first\_person\_singular\_number
206
205
  * LatinVerb.passive\_voice\_subjunctive\_mood\_imperfect\_tense\_second\_person\_singular\_number
207
206
  * LatinVerb.passive\_voice\_subjunctive\_mood\_imperfect\_tense\_third\_person\_singular\_number
208
207
  * LatinVerb.passive\_voice\_subjunctive\_mood\_imperfect\_tense\_first\_person\_plural\_number
209
208
  * LatinVerb.passive\_voice\_subjunctive\_mood\_imperfect\_tense\_second\_person\_plural\_number
210
209
  * LatinVerb.passive\_voice\_subjunctive\_mood\_imperfect\_tense\_third\_person\_plural\_number
211
-
210
+
212
211
  * LatinVerb.passive\_voice\_subjunctive\_mood\_perfect\_tense\_first\_person\_singular\_number
213
212
  * LatinVerb.passive\_voice\_subjunctive\_mood\_perfect\_tense\_second\_person\_singular\_number
214
213
  * LatinVerb.passive\_voice\_subjunctive\_mood\_perfect\_tense\_third\_person\_singular\_number
215
214
  * LatinVerb.passive\_voice\_subjunctive\_mood\_perfect\_tense\_first\_person\_plural\_number
216
215
  * LatinVerb.passive\_voice\_subjunctive\_mood\_perfect\_tense\_second\_person\_plural\_number
217
216
  * LatinVerb.passive\_voice\_subjunctive\_mood\_perfect\_tense\_third\_person\_plural\_number
218
-
217
+
219
218
  * LatinVerb.passive\_voice\_subjunctive\_mood\_pastperfect\_tense\_first\_person\_singular\_number
220
219
  * LatinVerb.passive\_voice\_subjunctive\_mood\_pastperfect\_tense\_second\_person\_singular\_number
221
220
  * LatinVerb.passive\_voice\_subjunctive\_mood\_pastperfect\_tense\_third\_person\_singular\_number
222
221
  * LatinVerb.passive\_voice\_subjunctive\_mood\_pastperfect\_tense\_first\_person\_plural\_number
223
222
  * LatinVerb.passive\_voice\_subjunctive\_mood\_pastperfect\_tense\_second\_person\_plural\_number
224
223
  * LatinVerb.passive\_voice\_subjunctive\_mood\_pastperfect\_tense\_third\_person\_plural\_number
225
-
224
+
226
225
  * LatinVerb.active\_voice\_imperative\_mood\_future\_tense
227
226
  * LatinVerb.active\_voice\_imperative\_mood\_present\_tense
228
227
  * LatinVerb.imperatives (_aggregator method_)
229
228
 
230
- * LatinVerb.present\_active\_participle
229
+ * LatinVerb.present\_active\_participle
231
230
  * LatinVerb.future\_active\_participle
232
231
  * LatinVerb.perfect\_passive\_participle
233
232
  * LatinVerb.future\_passive\_participle
234
-
233
+
235
234
  * LatinVerb.infinitives (_aggregator method_ : returns a keyed hash)
236
235
  * LatinVerb.future\_active\_infinitive
237
236
  * LatinVerb.future\_passive\_infinitive
@@ -241,6 +240,7 @@ such as "present tense." For their invocation, see below
241
240
  * LatinVerb.present\_passive\_infinitive
242
241
 
243
242
  ### Ambiguous Methods
243
+
244
244
  A voice, mood, and tense are all required for resolution of answers.
245
245
  LatinVerb does not repsect ambiguity in those vectors. It _does_ respect
246
246
  ambiguity in the person and number specifiers. Thus, you *may* say:
@@ -276,15 +276,14 @@ such as "present tense." For their invocation, see below
276
276
  * LatinVerb.passive\_voice\_subjunctive\_mood\_perfect\_tense
277
277
  * LatinVerb.passive\_voice\_subjunctive\_mood\_present\_tense
278
278
 
279
-
280
279
  ## AUTHOR
281
280
 
282
- Steven G. Harms (http://stevengharms.com)
281
+ [Steven G. Harms](http://stevengharms.com)
283
282
 
284
283
  ## THANKS
285
284
 
286
285
  Thanks to the Austin Ruby coders group who answered questions that helped me put this all together. Thanks also
287
286
  to the Reject^{2} conference at the Lone Star Ruby Conference 2008 who helped me think through some of the
288
287
  metaprogrammatic approaches. Thanks to Professor James Burleson of Austin Community College who insisted,
289
- old-style, of a mastery of the rote basics of Latin. Thanks also to Lauren Roth ( http://www.laurennroth.com)
288
+ old-style, of a mastery of the rote basics of Latin. Thanks also to [Lauren Roth](http://www.laurennroth.com)
290
289
  for her support and encouragement and understanding of my pre-dawn hack sessions.
data/Rakefile CHANGED
@@ -1,14 +1,12 @@
1
- require 'bundler'
2
- require "rdoc/task"
3
1
  require "rake/testtask"
4
-
5
- Bundler::GemHelper.install_tasks
2
+ require "bundler/gem_tasks"
6
3
 
7
4
  task :default => :test
8
5
 
9
- RDoc::Task.new do |rd|
10
- rd.rdoc_dir = "rdoc"
11
- rd.rdoc_files.include("lib/**/*.rb")
6
+ Rake::TestTask.new do |t|
7
+ t.ruby_opts = [ '-rminitest/autorun', '-rminitest/pride' ]
8
+ t.libs << "test"
9
+ t.test_files = FileList['test/*test*.rb']
10
+ t.verbose = true
12
11
  end
13
12
 
14
- Rake::TestTask.new(:test)
data/bin/latinirb CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'active_support/all'
4
- require 'LatinIRB'
4
+ require 'latinirb'
5
+ require 'pp'
6
+
5
7
  Linguistics::Latin::Util::LatinIRB.begin
data/latinirb.gemspec CHANGED
@@ -17,6 +17,9 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_runtime_dependency 'latinverb', '~> 0.9.5'
21
20
  s.add_runtime_dependency 'activesupport', '>= 4'
21
+ s.add_runtime_dependency 'latinverb', '~> 0.9.5'
22
+ s.add_runtime_dependency 'linguistics_latin'
23
+ s.add_runtime_dependency 'macronconversions'
24
+ s.add_runtime_dependency 'latinverb_chart_presenter'
22
25
  end
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'irb'
4
4
  require 'irb/completion'
5
- require 'latinverb'
6
5
 
7
6
  module Linguistics
8
7
  module Latin
@@ -49,7 +48,7 @@ module Linguistics
49
48
  # This will be the script IRB sources on execution. You can
50
49
  # pre-define variables (@aFirst, etc.) and convenience methods here.
51
50
 
52
- @CONF[:SCRIPT]=File.join(File.dirname(__FILE__), %w|latirb.rb|)
51
+ @CONF[:SCRIPT]=File.join(File.dirname(__FILE__), %w|latinirb_paradigmatic_verbs.rb|)
53
52
 
54
53
  # No, do not tell me what you read in
55
54
  @CONF[:ECHO]=false
@@ -68,24 +67,37 @@ module Linguistics
68
67
  end
69
68
 
70
69
  def self.print_prelude
71
- puts "Beginning a LatinVerb session."
72
- puts "The following verbs have been made available to this session:"
73
- self.irb_ivars.each{|x| puts " * #{x}"}
74
- puts "Tab-completion of the conjugation \"vectors\" is supported."
75
- puts ""
76
- end
70
+ puts <<-EOT
71
+ The following verbs have been made available to this session:
77
72
 
78
- def self.irb_ivars
79
- File::open(@irb.context.io.file_name).readlines.grep(/^@/).map do |x|
80
- x.sub(/(@\w+)\s.*\n/, "\\1")
81
- end
73
+ * AFIRST / AFIRST_DEP
74
+ * ASECOND / ASECOND_DEP
75
+ * ATHIRD / ATHIRD_DEP
76
+ * ATHIRDIO / ATHIRDIO_DEP
77
+ * AFOURTH / AFOURTH_DEP
78
+
79
+ As well as some primary irregulars:
80
+
81
+ * TO_BE
82
+ * TO_CARRY
83
+ * TO_COME
84
+
85
+ Tab-completion of the conjugation \"vectors\" is supported.
86
+
87
+ Helpful methods `chart(verb)` which prints a verb's chart as well as `b(verb)`
88
+ which prints the
89
+ `active_voice_indicative_mood_present_tense_first_person_singular_number` of
90
+ `verb`.
91
+
92
+ Verb strings can be entered using the LaTeX-style ASCII representations of
93
+ macron-bearing letters e.g.: \\={e}, \\={a}, and NB: \\={\\i}
94
+ EOT
82
95
  end
83
96
 
84
97
  def self.set_required_main_irb_context
85
98
  # Unless this is set, eval_input will fail.
86
99
  @CONF[:MAIN_CONTEXT] = @irb.context
87
100
  end
88
-
89
101
  end
90
102
  end
91
103
  end
@@ -0,0 +1,35 @@
1
+ # Popular Irregulars
2
+ TO_BE = Linguistics::Latin::Verb::LatinVerb.new %q(sum esse fuī futūrus)
3
+ TO_CARRY = Linguistics::Latin::Verb::LatinVerb.new %q(ferō ferre tulī lātum)
4
+ TO_COME = Linguistics::Latin::Verb::LatinVerb.new %q(eō īre ivī itum)
5
+
6
+ AFIRST_ASCII_STRING = 'am\={o}, am\={a}re, am\={a}v\={\i}, amatum'
7
+ AFIRST_STRING = Text::Latex::Util::Macronconversions.convert(AFIRST_ASCII_STRING, 'mc')
8
+
9
+ def j
10
+ puts AFIRST.active_voice_indicative_mood_present_tense_first_person_singular_number
11
+ end
12
+
13
+ def b(f)
14
+ puts f.active_voice_indicative_mood_present_tense_first_person_singular_number
15
+ end
16
+
17
+ module Kernel
18
+ def chart(latin_verb=nil)
19
+ puts "USAGE: chart (a_latin_verb|latin_verb_string)" if latin_verb.nil?
20
+ verb = is_latinverb?(latin_verb) ? verb : verb_for_string(latin_verb)
21
+ puts Linguistics::Latin::Verb::LatinVerb::ChartPresenter.new(verb).chart
22
+ end
23
+
24
+ def is_latinverb?(possible_latin_verb)
25
+ possible_latin_verb.methods.any?{|m| m.match(/.*voice.*mood.*tense/)}
26
+ end
27
+
28
+ def verb_for_string(verb_string)
29
+ macronized_string = Text::Latex::Util::Macronconversions.convert(verb_string, 'mc').gsub(',', '')
30
+ Linguistics::Latin::Verb::LatinVerb.new(macronized_string)
31
+ end
32
+ end
33
+
34
+ # Start up the REPL
35
+ irb
@@ -2,7 +2,7 @@ module Linguistics
2
2
  module Latin
3
3
  module Util
4
4
  class LatinIRB
5
- VERSION = "0.4.0"
5
+ VERSION = "1.0.pre"
6
6
  end
7
7
  end
8
8
  end
data/lib/latinirb.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'forwardable'
2
+
3
+ require 'macronconversions'
4
+ require 'linguistics_latin'
5
+
6
+ require 'latinverb'
7
+ require 'latinverb_chart_presenter'
8
+
9
+ require 'latinirb/version'
10
+ require 'latinirb/LatinIRB'
metadata CHANGED
@@ -1,43 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: latinirb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 1.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven G. Harms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-23 00:00:00.000000000 Z
11
+ date: 2014-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: latinverb
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ~>
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
33
  version: 0.9.5
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ~>
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
40
  version: 0.9.5
27
41
  - !ruby/object:Gem::Dependency
28
- name: activesupport
42
+ name: linguistics_latin
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '4'
47
+ version: '0'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '4'
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: macronconversions
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: latinverb_chart_presenter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
41
83
  description: This gem takes initial data describing a LatinVerb and allows this is
42
84
  be instantiated into an IRB session. Here the verb can be queried or displayed.
43
85
  email:
@@ -47,16 +89,17 @@ executables:
47
89
  extensions: []
48
90
  extra_rdoc_files: []
49
91
  files:
50
- - .gitignore
92
+ - ".gitignore"
51
93
  - Gemfile
52
94
  - Gemfile.lock
53
95
  - README.markdown
54
96
  - Rakefile
55
97
  - bin/latinirb
56
98
  - latinirb.gemspec
57
- - lib/LatinIRB.rb
99
+ - lib/latinirb.rb
100
+ - lib/latinirb/LatinIRB.rb
101
+ - lib/latinirb/latinirb_paradigmatic_verbs.rb
58
102
  - lib/latinirb/version.rb
59
- - lib/latirb.rb
60
103
  homepage: http://rubygems.org/gems/latinverb
61
104
  licenses: []
62
105
  metadata: {}
@@ -66,17 +109,17 @@ require_paths:
66
109
  - lib
67
110
  required_ruby_version: !ruby/object:Gem::Requirement
68
111
  requirements:
69
- - - '>='
112
+ - - ">="
70
113
  - !ruby/object:Gem::Version
71
114
  version: '0'
72
115
  required_rubygems_version: !ruby/object:Gem::Requirement
73
116
  requirements:
74
- - - '>='
117
+ - - ">"
75
118
  - !ruby/object:Gem::Version
76
- version: '0'
119
+ version: 1.3.1
77
120
  requirements: []
78
121
  rubyforge_project:
79
- rubygems_version: 2.0.3
122
+ rubygems_version: 2.2.2
80
123
  signing_key:
81
124
  specification_version: 4
82
125
  summary: Gem designed to explore verbs created by LatinVerb
data/lib/latirb.rb DELETED
@@ -1,22 +0,0 @@
1
- # Basic definitions
2
- @aFirst = Linguistics::Latin::Verb::LatinVerb.new %q(amō amāre amāvī amatum)
3
- @aSecond = Linguistics::Latin::Verb::LatinVerb.new %q(moneō monēre monvī monitum)
4
- @aThird = Linguistics::Latin::Verb::LatinVerb.new %q(agō agere ēgī actum)
5
- @aThirdIO = Linguistics::Latin::Verb::LatinVerb.new %q(capiō capere cēpī captum)
6
- @aFourth = Linguistics::Latin::Verb::LatinVerb.new %q(audiō audīre audīvī auditum)
7
-
8
- # Popular Irregulars
9
- @toBe = Linguistics::Latin::Verb::LatinVerb.new %q(sum esse fuī futūrus)
10
- @toCarry = Linguistics::Latin::Verb::LatinVerb.new %q(ferō ferre tulī lātum)
11
- @toCome = Linguistics::Latin::Verb::LatinVerb.new %q(eō īre ivī itum)
12
-
13
- def j
14
- puts @aFirst.active_voice_indicative_mood_present_tense_first_person_singular_number
15
- end
16
-
17
- def b(f)
18
- puts f.active_voice_indicative_mood_present_tense_first_person_singular_number
19
- end
20
-
21
- # Start up the REPL
22
- irb