latinverb 0.9.5 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +73 -28
- data/Rakefile +1 -7
- data/latinverb.gemspec +23 -4
- data/lib/latinverb/imperative_block/imperative_rule_factory.rb +1 -0
- data/lib/latinverb/imperative_block.rb +1 -2
- data/lib/latinverb/latinverb.rb +62 -0
- data/lib/latinverb/paradigmatic_verbs.rb +1 -0
- data/lib/latinverb/querent_mutators/deponent/infinitive_mutator.rb +24 -0
- data/lib/latinverb/querent_mutators/deponent/participle_mutator.rb +24 -0
- data/lib/latinverb/{tense_method_applicator/mutators/present_only.rb → querent_mutators/impersonal.rb} +5 -2
- data/lib/latinverb/querent_mutators/semideponent.rb +22 -0
- data/lib/latinverb/tense_block.rb +8 -7
- data/lib/latinverb/tense_block_names.rb +32 -0
- data/lib/latinverb/{components/validator.rb → validator.rb} +1 -3
- data/lib/latinverb/version.rb +1 -1
- data/lib/latinverb.rb +21 -77
- data/test/integration/ambiguous_lookups_test.rb +1 -7
- data/test/integration/cluster_resolution_test.rb +1 -7
- data/test/integration/data_structures_test.rb +2 -9
- data/test/integration/defect_semi_imp_test.rb +4 -10
- data/test/integration/deponent_first_conjugation_test.rb +7 -9
- data/test/integration/deponent_fourth_conjugation_test.rb +6 -9
- data/test/integration/deponent_second_conjugation_test.rb +12 -11
- data/test/integration/deponent_third_conjugation_test.rb +1 -9
- data/test/integration/deponent_third_io_conjugation_test.rb +6 -9
- data/test/integration/first_conjugation_test.rb +8 -14
- data/test/integration/fourth_conjugation_test.rb +7 -7
- data/test/integration/freakish_verb_test.rb +86 -0
- data/test/integration/freakish_vs.rb_test.rb +1 -1
- data/test/integration/imperative_block_test.rb +1 -9
- data/test/integration/irregular_sum_test.rb +1 -10
- data/test/integration/irregulars_test.rb +1 -10
- data/test/integration/macron_rules_test.rb +1 -8
- data/test/integration/second_conjugation_test.rb +8 -8
- data/test/integration/third_conjugation_test.rb +8 -6
- data/test/integration/third_io_conjugation_test.rb +6 -6
- metadata +262 -107
- data/lib/latinverb/components/chart_presenter.rb +0 -81
- data/lib/latinverb/components/classifier/strategies/defective_verb_classification_strategy.rb +0 -19
- data/lib/latinverb/components/classifier/strategies/deponent_verb_classification_strategy.rb +0 -19
- data/lib/latinverb/components/classifier/strategies/impersonal_verb_classification_strategy.rb +0 -19
- data/lib/latinverb/components/classifier/strategies/irregular_verb_classification_strategy.rb +0 -19
- data/lib/latinverb/components/classifier/strategies/present_only_verb_classification_strategy.rb +0 -21
- data/lib/latinverb/components/classifier/strategies/regular_verb_classification_strategy.rb +0 -19
- data/lib/latinverb/components/classifier/strategies/semideponent_verb_classification_strategy.rb +0 -19
- data/lib/latinverb/components/classifier/strategies/verb_classification_strategy.rb +0 -31
- data/lib/latinverb/components/classifier/strategies/very_irregular_verb_classification_strategy.rb +0 -20
- data/lib/latinverb/components/classifier.rb +0 -76
- data/lib/latinverb/components/imperatives_handler.rb +0 -40
- data/lib/latinverb/components/infinitivizer.rb +0 -50
- data/lib/latinverb/components/participler.rb +0 -58
- data/lib/latinverb/components/passive_infinitive_factory.rb +0 -42
- data/lib/latinverb/components/present_only_checker.rb +0 -32
- data/lib/latinverb/components/principal_parts_extractor.rb +0 -35
- data/lib/latinverb/components/stem_deriver.rb +0 -81
- data/lib/latinverb/components/type_evaluator.rb +0 -35
- data/lib/latinverb/components.rb +0 -9
- data/lib/latinverb/dynamic_method_resolver.rb +0 -41
- data/lib/latinverb/errors.rb +0 -10
- data/lib/latinverb/serialization/hash.rb +0 -17
- data/lib/latinverb/serialization/json.rb +0 -41
- data/lib/latinverb/serialization/yaml.rb +0 -15
- data/lib/latinverb/serialization.rb +0 -3
- data/lib/latinverb/tense_method_applicator/defective_checker.rb +0 -21
- data/lib/latinverb/tense_method_applicator/deponent_string_deriver.rb +0 -80
- data/lib/latinverb/tense_method_applicator/first_builder.rb +0 -98
- data/lib/latinverb/tense_method_applicator/fourth.rb +0 -100
- data/lib/latinverb/tense_method_applicator/fourth_builder.rb +0 -100
- data/lib/latinverb/tense_method_applicator/irregular_builder.rb +0 -117
- data/lib/latinverb/tense_method_applicator/mutator_for_classification_factory.rb +0 -38
- data/lib/latinverb/tense_method_applicator/mutator_for_verb_type.rb +0 -38
- data/lib/latinverb/tense_method_applicator/mutators/deponent/imperative_mutator.rb +0 -49
- data/lib/latinverb/tense_method_applicator/mutators/deponent/infinitive_mutator.rb +0 -42
- data/lib/latinverb/tense_method_applicator/mutators/deponent/participle_mutator.rb +0 -47
- data/lib/latinverb/tense_method_applicator/mutators/deponent/tense_block_mutator.rb +0 -55
- data/lib/latinverb/tense_method_applicator/mutators/deponent.rb +0 -41
- data/lib/latinverb/tense_method_applicator/mutators/impersonal.rb +0 -27
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_imperative_mood_future_tense_strategy.rb +0 -29
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_imperative_mood_present_tense_strategy.rb +0 -29
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_indicative_mood_future_tense_strategy.rb +0 -35
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_indicative_mood_futureperfect_tense_strategy.rb +0 -28
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_indicative_mood_imperfect_tense_strategy.rb +0 -24
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_indicative_mood_pastperfect_tense_strategy.rb +0 -28
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_indicative_mood_perfect_tense_strategy.rb +0 -29
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_indicative_mood_present_tense_strategy.rb +0 -24
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_subjunctive_mood_imperfect_tense_strategy.rb +0 -29
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_subjunctive_mood_pastperfect_tense_strategy.rb +0 -30
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_subjunctive_mood_perfect_tense_strategy.rb +0 -30
- data/lib/latinverb/tense_method_applicator/mutators/invariant/active_voice_subjunctive_mood_present_tense_strategy.rb +0 -24
- data/lib/latinverb/tense_method_applicator/mutators/invariant/imperatives.rb +0 -53
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_indicative_mood_future_tense_strategy.rb +0 -24
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_indicative_mood_futureperfect_tense_strategy.rb +0 -27
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_indicative_mood_imperfect_tense_strategy.rb +0 -24
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_indicative_mood_pastperfect_tense_strategy.rb +0 -27
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_indicative_mood_perfect_tense_strategy.rb +0 -27
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_indicative_mood_present_tense_strategy.rb +0 -24
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_subjunctive_mood_imperfect_tense_strategy.rb +0 -30
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_subjunctive_mood_pastperfect_tense_strategy.rb +0 -33
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_subjunctive_mood_perfect_tense_strategy.rb +0 -33
- data/lib/latinverb/tense_method_applicator/mutators/invariant/passive_voice_subjunctive_mood_present_tense_strategy.rb +0 -24
- data/lib/latinverb/tense_method_applicator/mutators/invariant/triplicate_and_pluralize_formatters.rb +0 -26
- data/lib/latinverb/tense_method_applicator/mutators/invariant.rb +0 -65
- data/lib/latinverb/tense_method_applicator/mutators/irregular/infinitives_builder.rb +0 -35
- data/lib/latinverb/tense_method_applicator/mutators/irregular/json_deserializer.rb +0 -52
- data/lib/latinverb/tense_method_applicator/mutators/irregular/json_revivifier.rb +0 -48
- data/lib/latinverb/tense_method_applicator/mutators/irregular/participles_builder.rb +0 -35
- data/lib/latinverb/tense_method_applicator/mutators/irregular/present_only_irregular_mask.rb +0 -37
- data/lib/latinverb/tense_method_applicator/mutators/irregular.rb +0 -25
- data/lib/latinverb/tense_method_applicator/mutators/regular.rb +0 -17
- data/lib/latinverb/tense_method_applicator/mutators/semideponent.rb +0 -88
- data/lib/latinverb/tense_method_applicator/perfect_tense_remover.rb +0 -26
- data/lib/latinverb/tense_method_applicator/second_builder.rb +0 -105
- data/lib/latinverb/tense_method_applicator/tense_methods_vectorizer.rb +0 -73
- data/lib/latinverb/tense_method_applicator/third_builder.rb +0 -93
- data/lib/latinverb/tense_method_applicator/thirdio_builder.rb +0 -100
- data/lib/latinverb/tense_method_applicator.rb +0 -55
- data/test/integration/latin_verb_test.rb +0 -166
- data/test/unit/latinverb_accessible_reader_test.rb +0 -18
- data/test/unit/principal_parts_extractor_test.rb +0 -33
@@ -1,14 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
require 'linguistics_latin'
|
8
|
-
|
9
|
-
# Internal dependencies
|
10
|
-
|
11
|
-
class TestDeponent < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class DeponentTest < Minitest::Test # :nodoc:
|
12
4
|
def setup
|
13
5
|
@aDep = Linguistics::Latin::Verb::LatinVerb.new 'mīror mīrārī mīrātum'
|
14
6
|
end
|
@@ -60,5 +52,11 @@ class TestDeponent < MiniTest::Unit::TestCase # :nodoc:
|
|
60
52
|
assert_equal 'mīrātū', @aDep.supine[:ablative]
|
61
53
|
end
|
62
54
|
|
55
|
+
def test_querent
|
56
|
+
assert @aDep.querent, "Should find to a querent object"
|
57
|
+
assert_equal 6, @aDep.querent.active_voice_indicative_mood_present_tense.length
|
58
|
+
assert_equal "mīror", @aDep.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
59
|
+
end
|
60
|
+
|
63
61
|
|
64
62
|
end
|
@@ -1,14 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
require 'linguistics_latin'
|
8
|
-
|
9
|
-
# Internal dependencies
|
10
|
-
|
11
|
-
class TestDeponentFourthConjugation < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class DeponentFourthConjugationTest < Minitest::Test # :nodoc:
|
12
4
|
def setup
|
13
5
|
@aDep = Linguistics::Latin::Verb::LatinVerb.new 'partior partīrī partītum'
|
14
6
|
end
|
@@ -60,5 +52,10 @@ class TestDeponentFourthConjugation < MiniTest::Unit::TestCase # :nodoc:
|
|
60
52
|
assert_equal 'partītū', @aDep.supine[:ablative]
|
61
53
|
end
|
62
54
|
|
55
|
+
def test_querent
|
56
|
+
assert @aDep.querent, "Should find to a querent object"
|
57
|
+
assert_equal 6, @aDep.querent.active_voice_indicative_mood_present_tense.length
|
58
|
+
assert_equal "partior", @aDep.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
59
|
+
end
|
63
60
|
|
64
61
|
end
|
@@ -1,18 +1,14 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
require 'linguistics_latin'
|
8
|
-
|
9
|
-
# Internal dependencies
|
10
|
-
|
11
|
-
class TestDeponentSecondConjugation < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class DeponentSecondConjugationTest < Minitest::Test # :nodoc:
|
12
4
|
def setup
|
13
5
|
@aDep = Linguistics::Latin::Verb::LatinVerb.new 'vereor verērī veritum'
|
14
6
|
end
|
15
7
|
|
8
|
+
def test_fu
|
9
|
+
assert_equal 'verēris', @aDep.active_voice_indicative_mood_present_tense_second_person_singular_number
|
10
|
+
end
|
11
|
+
|
16
12
|
def test_depo
|
17
13
|
assert_equal(Linguistics::Latin::Verb::Classification::Deponent, @aDep.classification)
|
18
14
|
|
@@ -37,8 +33,8 @@ class TestDeponentSecondConjugation < MiniTest::Unit::TestCase # :nodoc:
|
|
37
33
|
|
38
34
|
# Imperatives
|
39
35
|
assert_equal 'verēre', @aDep.active_voice_imperative_mood_present_tense_second_person_singular_number
|
40
|
-
assert_equal 'verēminī',
|
41
|
-
assert_equal 'verētor',
|
36
|
+
assert_equal 'verēminī', @aDep.active_voice_imperative_mood_present_tense_second_person_plural_number
|
37
|
+
assert_equal 'verētor', @aDep.active_voice_imperative_mood_future_tense_second_person_singular_number
|
42
38
|
|
43
39
|
# Infinitives
|
44
40
|
|
@@ -60,5 +56,10 @@ class TestDeponentSecondConjugation < MiniTest::Unit::TestCase # :nodoc:
|
|
60
56
|
assert_equal 'veritū', @aDep.supine[:ablative]
|
61
57
|
end
|
62
58
|
|
59
|
+
def test_querent
|
60
|
+
assert @aDep.querent, "Should find to a querent object"
|
61
|
+
assert_equal 6, @aDep.querent.active_voice_indicative_mood_present_tense.length
|
62
|
+
assert_equal "vereor", @aDep.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
63
|
+
end
|
63
64
|
|
64
65
|
end
|
@@ -1,14 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
require 'linguistics_latin'
|
8
|
-
|
9
|
-
# Internal dependencies
|
10
|
-
|
11
|
-
class TestDeponentThirdConjugation < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class DeponentThirdConjugationTest < Minitest::Test # :nodoc:
|
12
4
|
def setup
|
13
5
|
@aDep = Linguistics::Latin::Verb::LatinVerb.new 'sequor sequī secūtum'
|
14
6
|
end
|
@@ -1,14 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
require 'linguistics_latin'
|
8
|
-
|
9
|
-
# Internal dependencies
|
10
|
-
|
11
|
-
class TestDeponentThirdConjugation < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class DeponentThirdConjugationTest < Minitest::Test # :nodoc:
|
12
4
|
def setup
|
13
5
|
@aDep = Linguistics::Latin::Verb::LatinVerb.new 'patior patī passum'
|
14
6
|
end
|
@@ -60,5 +52,10 @@ class TestDeponentThirdConjugation < MiniTest::Unit::TestCase # :nodoc:
|
|
60
52
|
assert_equal 'passū', @aDep.supine[:ablative]
|
61
53
|
end
|
62
54
|
|
55
|
+
def test_querent
|
56
|
+
assert @aDep.querent, "Should find to a querent object"
|
57
|
+
assert_equal 6, @aDep.querent.active_voice_indicative_mood_present_tense.length
|
58
|
+
assert_equal "patior", @aDep.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
59
|
+
end
|
63
60
|
|
64
61
|
end
|
@@ -1,13 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
|
8
|
-
# Internal dependencies
|
9
|
-
|
10
|
-
class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class LatinVerbFirstConjTest < Minitest::Test # :nodoc:
|
11
4
|
def setup
|
12
5
|
@aFirst = Linguistics::Latin::Verb::LatinVerb.new 'amō amāre amāvī amatum'
|
13
6
|
end
|
@@ -369,16 +362,17 @@ class TestLatinVerbFirstConj < MiniTest::Unit::TestCase # :nodoc:
|
|
369
362
|
assert_equal "amatus, amata, amatum esse", a.perfect_passive_infinitive
|
370
363
|
end
|
371
364
|
|
372
|
-
def test_meaning
|
365
|
+
def test_meaning
|
373
366
|
assert @aFirst.active_voice_indicative_mood_present_tense.meaning
|
374
367
|
end
|
375
368
|
|
376
|
-
def test_chart
|
377
|
-
assert @aFirst.respond_to? :chart, "Should respond to chart method"
|
378
|
-
assert @aFirst.respond_to? :c, "Should respond to c alias to chart method"
|
379
|
-
end
|
380
|
-
|
381
369
|
def test_chart_infinitives
|
382
370
|
#assert_equal @aFirst.c, nil
|
383
371
|
end
|
372
|
+
|
373
|
+
def test_querent
|
374
|
+
assert @aFirst.querent, "Should find to a querent object"
|
375
|
+
assert_equal 6, @aFirst.querent.active_voice_indicative_mood_present_tense.length
|
376
|
+
assert_equal "amō", @aFirst.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
377
|
+
end
|
384
378
|
end
|
@@ -1,12 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
|
8
|
-
|
9
|
-
class TestLatinVerbFourthConj < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class LatinVerbFourthConjTest < Minitest::Test # :nodoc:
|
10
4
|
def setup
|
11
5
|
@aFourth = Linguistics::Latin::Verb::LatinVerb.new 'audiō audīre audīvī auditum'
|
12
6
|
end
|
@@ -187,4 +181,10 @@ class TestLatinVerbFourthConj < MiniTest::Unit::TestCase # :nodoc:
|
|
187
181
|
assert_equal "auditum īrī", @aFourth.future_passive_infinitive
|
188
182
|
end
|
189
183
|
|
184
|
+
def test_querent
|
185
|
+
assert @aFourth.querent, "Should find to a querent object"
|
186
|
+
assert_equal 6, @aFourth.querent.active_voice_indicative_mood_present_tense.length
|
187
|
+
assert_equal "audiō", @aFourth.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
188
|
+
end
|
189
|
+
|
190
190
|
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#encoding: UTF-8
|
2
|
+
|
3
|
+
class FreakishVerbsTest < Minitest::Test # :nodoc:
|
4
|
+
def test_present_only?
|
5
|
+
v = Linguistics::Latin::Verb::LatinVerb.new 'maerō maēre maīvī maestum'
|
6
|
+
assert v.present_only?, "Must be present_only: was #{v.classification}"
|
7
|
+
assert_equal 6, v.active_voice_indicative_mood_perfect_tense.length, "active.indicative.perfect should have length of 6"
|
8
|
+
assert_equal '', v.active_voice_indicative_mood_perfect_tense_first_person_singular_number, "a perfect tense for a present only verb should be empty"
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_present_only_from_sing
|
12
|
+
v = Linguistics::Latin::Verb::LatinVerb.new 'aiō'
|
13
|
+
assert v.present_only?, "Must be present_only: was #{v.classification}"
|
14
|
+
|
15
|
+
# Primary use of this verb
|
16
|
+
|
17
|
+
assert_equal 'ait', v.active_voice_indicative_mood_present_tense_third_person_singular_number,
|
18
|
+
"Must respond to active_voice_indicative_mood_present_tense_third_person_singular_number"
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_very_odd_verbs
|
23
|
+
choices = %w( quaesō ovāre )
|
24
|
+
|
25
|
+
choices.each do |v|
|
26
|
+
vi = Linguistics::Latin::Verb::LatinVerb.new v
|
27
|
+
assert vi.present_only?, "Must be present_only: was #{vi.classification}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_impersonal
|
32
|
+
v = Linguistics::Latin::Verb::LatinVerb.new('pluit')
|
33
|
+
assert_equal Linguistics::Latin::Verb::Classification::Impersonal, v.classification
|
34
|
+
assert_equal 'pluit', v.active_voice_indicative_mood_present_tense_third_person_singular_number, "Impersonal verb must return third_person_singular_number"
|
35
|
+
end
|
36
|
+
|
37
|
+
=begin rdoc
|
38
|
+
* 191 - Irregular deponent verbs
|
39
|
+
|
40
|
+
This section in A&G says that the following are irregular deponents,
|
41
|
+
nevertheless a preliminary test on fruor did not show that. I'm storing
|
42
|
+
these here for reference, but do not believe this is a real issue to be
|
43
|
+
addressed.
|
44
|
+
|
45
|
+
adsentior, -īrī, adsēnsus, assent
|
46
|
+
oblīvīscor, -ī, oblītus, forget.
|
47
|
+
apīscor, (-ip-), -ī, aptus (-eptus), get
|
48
|
+
opperior, -īrī, oppertus, await.
|
49
|
+
dēfetīscor, -ī, -fessus, faint
|
50
|
+
órdior, -īrī, órsus, begin.
|
51
|
+
expergīscor, -ī, -perrēctus, rouse
|
52
|
+
orior, -īrī, ortus (oritūrus), rise (3d
|
53
|
+
experior, -īrī, expertus, try
|
54
|
+
conjugation in most forms).
|
55
|
+
fateor, -ērī, fassus, confess
|
56
|
+
pacīscor, -ī, pactus, bargain.
|
57
|
+
fruor, -ī, frūctus (fruitus), enjoy
|
58
|
+
patior (-petior), -ī, passus (-pessus),
|
59
|
+
fungor, -ī, fūnctus, fulfil
|
60
|
+
gradior (-gredior), -ī, gressus, step
|
61
|
+
-plector, -ī, -plexus, clasp.
|
62
|
+
īrāscor, -ī, īrātus, be angry
|
63
|
+
proficīscor, -ī, profectus, set out.
|
64
|
+
lābor, -ī, lāpsus, fall
|
65
|
+
queror, -ī, questus, complain.
|
66
|
+
loquor, -ī, locūtus, speak
|
67
|
+
reor, rērī, ratus, think.
|
68
|
+
mētior, -īrī, mēnsus, measure
|
69
|
+
revertor, -ī, reversus, return.
|
70
|
+
-minīscor, -ī, -mentus, think
|
71
|
+
ringor, -ī, rictus, snarl.
|
72
|
+
morior, -ī, (-īrī), mortuus (moritūrus), die
|
73
|
+
sequor, -ī, secūtus, follow.
|
74
|
+
nancīscor, -ī, nactus (nānctus), find
|
75
|
+
tueor, -ērī, tuitus (tūtus), defend.
|
76
|
+
nāscor, -ī, nātus, be born
|
77
|
+
ulcīscor, -ī, ultus, avenge.
|
78
|
+
nītor, -ī, nīsus (nīxus), strive
|
79
|
+
ūtor, -ī, ūsus, use, employ.
|
80
|
+
=end
|
81
|
+
|
82
|
+
def test_irregular_deponents
|
83
|
+
v = Linguistics::Latin::Verb::LatinVerb.new 'fruor fruī frūctus '
|
84
|
+
assert 'fruitur', v.active_voice_indicative_mood_present_tense_third_person_singular_number
|
85
|
+
end
|
86
|
+
end
|
@@ -9,7 +9,7 @@ require 'linguistics_latin'
|
|
9
9
|
|
10
10
|
# Internal dependencies
|
11
11
|
|
12
|
-
class TestFreakishVerbs < MiniTest::
|
12
|
+
class TestFreakishVerbs < MiniTest::Test
|
13
13
|
def test_present_only?
|
14
14
|
v = Linguistics::Latin::Verb::LatinVerb.new 'maerō maēre maīvī maestum'
|
15
15
|
assert v.present_only?, "Must be present_only: was #{v.classification}"
|
@@ -1,19 +1,11 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
|
8
|
-
# Internal dependencies
|
9
|
-
|
10
|
-
class TestImperfectBlock < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class ImperfectBlockTest < Minitest::Test # :nodoc:
|
11
4
|
def setup
|
12
5
|
@aFirst = Linguistics::Latin::Verb::LatinVerb.new 'amō amāre amāvī amatum'
|
13
6
|
end
|
14
7
|
|
15
8
|
def test_basic
|
16
|
-
require 'pp'
|
17
9
|
assert @aFirst.active_voice_indicative_mood_present_tense_second_person_plural_number
|
18
10
|
assert "amāte", @aFirst.active_voice_imperative_mood_present_tense_second_person_plural_number
|
19
11
|
assert "amā", @aFirst.active_voice_imperative_mood_present_tense_second_person_singular_number
|
@@ -1,15 +1,6 @@
|
|
1
1
|
#encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
require 'json'
|
5
|
-
|
6
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
7
|
-
require 'latinverb'
|
8
|
-
require 'linguistics_latin'
|
9
|
-
|
10
|
-
# Internal dependencies
|
11
|
-
|
12
|
-
class TestIrregularSum < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class IrregularSumTest < Minitest::Test # :nodoc:
|
13
4
|
def setup
|
14
5
|
@toBe = Linguistics::Latin::Verb::LatinVerb.new 'sum esse fuī futūrus'
|
15
6
|
end
|
@@ -1,15 +1,6 @@
|
|
1
1
|
#encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
require 'json'
|
5
|
-
|
6
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
7
|
-
require 'latinverb'
|
8
|
-
require 'linguistics_latin'
|
9
|
-
|
10
|
-
# Internal dependencies
|
11
|
-
|
12
|
-
class TestIrregulars< MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class IrregularsTest< Minitest::Test # :nodoc:
|
13
4
|
def test_to_give
|
14
5
|
v = Linguistics::Latin::Verb::LatinVerb.new 'dō dāre dedī datum'
|
15
6
|
assert_equal Linguistics::Latin::Verb::Classification::Irregular, v.classification
|
@@ -1,13 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
|
8
|
-
# Internal dependencies
|
9
|
-
|
10
|
-
class TestMacronRules < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class MacronRulesTest < Minitest::Test # :nodoc:
|
11
4
|
def test_basic
|
12
5
|
aFirst = Linguistics::Latin::Verb::LatinVerb.new 'amō amāre amāvī amatum'
|
13
6
|
|
@@ -1,12 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
|
8
|
-
|
9
|
-
class TestLatinVerbSecondConj < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class LatinVerbSecondConjTest < Minitest::Test # :nodoc:
|
10
4
|
def setup
|
11
5
|
@aSecond = Linguistics::Latin::Verb::LatinVerb.new 'moneō monēre monuī monitum'
|
12
6
|
end
|
@@ -185,5 +179,11 @@ class TestLatinVerbSecondConj < MiniTest::Unit::TestCase # :nodoc:
|
|
185
179
|
assert_equal "monērī", @aSecond.present_passive_infinitive
|
186
180
|
assert_equal "monitus, monita, monitum esse", @aSecond.perfect_passive_infinitive
|
187
181
|
assert_equal "monitum īrī", @aSecond.future_passive_infinitive
|
188
|
-
|
182
|
+
end
|
183
|
+
|
184
|
+
def test_querent
|
185
|
+
assert @aSecond.querent, "Should find to a querent object"
|
186
|
+
assert_equal 6, @aSecond.querent.active_voice_indicative_mood_present_tense.length
|
187
|
+
assert_equal "moneō", @aSecond.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
188
|
+
end
|
189
189
|
end
|
@@ -1,10 +1,6 @@
|
|
1
|
-
|
1
|
+
#encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
require 'latinverb'
|
5
|
-
|
6
|
-
|
7
|
-
class TestLatinVerbThirdConj < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class LatinVerbThirdConjTest < Minitest::Test # :nodoc:
|
8
4
|
def setup
|
9
5
|
@aThird = Linguistics::Latin::Verb::LatinVerb.new 'agō agere ēgī actum'
|
10
6
|
end
|
@@ -185,4 +181,10 @@ class TestLatinVerbThirdConj < MiniTest::Unit::TestCase # :nodoc:
|
|
185
181
|
assert_equal "actum īrī", @aThird.future_passive_infinitive
|
186
182
|
end
|
187
183
|
|
184
|
+
def test_querent
|
185
|
+
assert @aThird.querent, "Should find to a querent object"
|
186
|
+
assert_equal 6, @aThird.querent.active_voice_indicative_mood_present_tense.length
|
187
|
+
assert_equal "agō", @aThird.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
188
|
+
end
|
189
|
+
|
188
190
|
end
|
@@ -1,11 +1,6 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
6
|
-
require 'latinverb'
|
7
|
-
|
8
|
-
class TestLatinVerbThirdIOConj < MiniTest::Unit::TestCase # :nodoc:
|
3
|
+
class LatinVerbThirdIOConjTest < Minitest::Test # :nodoc:
|
9
4
|
def setup
|
10
5
|
@aThirdIO = Linguistics::Latin::Verb::LatinVerb.new 'capiō capere cēpī captum'
|
11
6
|
end
|
@@ -184,7 +179,12 @@ class TestLatinVerbThirdIOConj < MiniTest::Unit::TestCase # :nodoc:
|
|
184
179
|
assert_equal "capī", @aThirdIO.present_passive_infinitive
|
185
180
|
assert_equal "captus, capta, captum esse", @aThirdIO.perfect_passive_infinitive
|
186
181
|
assert_equal "captum īrī", @aThirdIO.future_passive_infinitive
|
182
|
+
end
|
187
183
|
|
184
|
+
def test_querent
|
185
|
+
assert @aThirdIO.querent, "Should find to a querent object"
|
186
|
+
assert_equal 6, @aThirdIO.querent.active_voice_indicative_mood_present_tense.length
|
187
|
+
assert_equal "capiō", @aThirdIO.querent.active_voice_indicative_mood_present_tense_first_person_singular_number
|
188
188
|
end
|
189
189
|
|
190
190
|
end
|