latinverb 0.9.2 → 0.9.3
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/Gemfile +4 -1
- data/Gemfile.lock +24 -0
- data/Guardfile +10 -0
- data/README.markdown +1 -1
- data/Rakefile +12 -9
- data/latinverb.gemspec +4 -0
- data/lib/latinverb/chart.rb +5 -5
- data/lib/latinverb/version.rb +1 -1
- data/lib/latinverb.rb +266 -534
- data/lib/linguistics/latin/verb/classification_types.rb +19 -17
- data/lib/linguistics/latin/verb/constants.rb +14 -14
- data/lib/linguistics/latin/verb/deponent_tense_methods.rb +8 -21
- data/lib/linguistics/latin/verb/imperative_block.rb +118 -0
- data/lib/linguistics/latin/verb/infinitive_block.rb +39 -0
- data/lib/linguistics/latin/verb/infinitives.rb +181 -181
- data/lib/linguistics/latin/verb/irregulars.rb +74 -74
- data/lib/linguistics/latin/verb/latinverb/classmethods.rb +36 -117
- data/lib/linguistics/latin/verb/latinverb/data.rb +12 -15
- data/lib/linguistics/latin/verb/latinverb/defective_checker.rb +17 -0
- data/lib/linguistics/latin/verb/latinverb/deponent.rb +159 -0
- data/lib/linguistics/latin/verb/latinverb/display.rb +1 -2
- data/lib/linguistics/latin/verb/latinverb/impersonal.rb +34 -0
- data/lib/linguistics/latin/verb/latinverb/irregular.rb +83 -0
- data/lib/linguistics/latin/verb/latinverb/latin_verb_type_evaluator.rb +32 -0
- data/lib/linguistics/latin/verb/latinverb/latinverb_classifier.rb +100 -0
- data/lib/linguistics/latin/verb/latinverb/latinverb_input_sanitizer.rb +32 -0
- data/lib/linguistics/latin/verb/latinverb/latinverb_pp_extractor.rb +106 -0
- data/lib/linguistics/latin/verb/latinverb/metaprogramming.rb +30 -29
- data/lib/linguistics/latin/verb/latinverb/semideponent.rb +28 -0
- data/lib/linguistics/latin/verb/latinverb/validation.rb +5 -29
- data/lib/linguistics/latin/verb/latinverb/verbvector_description.rb +50 -0
- data/lib/linguistics/latin/verb/participle_block.rb +36 -0
- data/lib/linguistics/latin/verb/participles.rb +25 -25
- data/lib/linguistics/latin/verb/phonographia.rb +51 -51
- data/lib/linguistics/latin/verb/supine.rb +6 -6
- data/lib/linguistics/latin/verb/tense_block.rb +227 -0
- data/lib/linguistics/latin/verb/tense_definitions/first.rb +92 -0
- data/lib/linguistics/latin/verb/tense_definitions/fourth.rb +92 -0
- data/lib/linguistics/latin/verb/tense_definitions/impersonal.rb +25 -0
- data/lib/linguistics/latin/verb/tense_definitions/invariant.rb +613 -0
- data/lib/linguistics/latin/verb/tense_definitions/irregular.rb +82 -0
- data/lib/linguistics/latin/verb/tense_definitions/second.rb +97 -0
- data/lib/linguistics/latin/verb/tense_definitions/third.rb +86 -0
- data/lib/linguistics/latin/verb/tense_definitions/third_io.rb +91 -0
- data/test/testClusterResolution.rb +0 -1
- data/test/testDataStructures.rb +8 -5
- data/test/testDefectSemiImp.rb +9 -10
- data/test/testDeponentFirstConjugation.rb +2 -2
- data/test/testDeponentFourthConjugation.rb +2 -2
- data/test/testDeponentSecondConjugation.rb +2 -2
- data/test/testDeponentThirdConjugation.rb +2 -2
- data/test/testDeponentThirdIOConjugation.rb +2 -2
- data/test/testDeserializeInfinitives.rb +2 -4
- data/test/testFirstConjugation.rb +53 -53
- data/test/testFourthConjugation.rb +11 -11
- data/test/testFreakishVerbs.rb +12 -11
- data/test/testIrregulars.rb +24 -23
- data/test/testLatinVerb.rb +46 -55
- data/test/testSecondConjugation.rb +27 -27
- data/test/testThirdConjugation.rb +14 -14
- data/test/testThirdIOConjugation.rb +13 -13
- metadata +95 -53
- data/lib/linguistics/latin/verb/latinverb/auxiliary_classes.rb +0 -208
- data/lib/linguistics/latin/verb/tense_methods.rb +0 -950
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
latinverb (0.9.2)
|
|
5
|
+
macronconversions
|
|
6
|
+
rdoc
|
|
7
|
+
verbvector
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: http://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
autotest-standalone (4.5.10)
|
|
13
|
+
json (1.7.5)
|
|
14
|
+
macronconversions (0.0.1)
|
|
15
|
+
rdoc (3.12)
|
|
16
|
+
json (~> 1.4)
|
|
17
|
+
verbvector (0.0.1)
|
|
18
|
+
|
|
19
|
+
PLATFORMS
|
|
20
|
+
ruby
|
|
21
|
+
|
|
22
|
+
DEPENDENCIES
|
|
23
|
+
autotest-standalone
|
|
24
|
+
latinverb!
|
data/Guardfile
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# A sample Guardfile
|
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
|
3
|
+
|
|
4
|
+
guard 'coffeescript', :input => 'app/assets/javascripts'
|
|
5
|
+
|
|
6
|
+
guard 'coffeescript', :input => 'app/assets/javascripts'
|
|
7
|
+
|
|
8
|
+
guard 'sass', :input => 'sass', :output => 'css'
|
|
9
|
+
|
|
10
|
+
guard 'sass', :input => 'sass', :output => 'css'
|
data/README.markdown
CHANGED
|
@@ -17,7 +17,7 @@ LatinVerb also has tolerances for ambiguity. Where
|
|
|
17
17
|
passive\_voice\_subjunctive\_mood\_imperfect\_tense\_third\_person\_singular\_number
|
|
18
18
|
is considered a "full" vector that uniquely identifies one value, it is
|
|
19
19
|
possible to pass "incomplete" vectors such as
|
|
20
|
-
`
|
|
20
|
+
`passive_voice_subjunctive_mood_imperfect_tense_third_person` which
|
|
21
21
|
would return two values (`amārētur` and `amārentur`). Similarly, the person
|
|
22
22
|
could be dropped and the number included and three values would be returned:
|
|
23
23
|
`amārētur`, `amārēris`, and `amārer`.
|
data/Rakefile
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
require 'bundler'
|
|
2
|
-
require
|
|
2
|
+
require 'rdoc/task'
|
|
3
|
+
require 'rake/testtask'
|
|
3
4
|
|
|
4
5
|
Bundler::GemHelper.install_tasks
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
Rake::RDocTask.new do |rd|
|
|
8
|
-
rd.rdoc_files.include("lib/**/*.rb")
|
|
9
|
-
rd.rdoc_dir = "rdoc"
|
|
10
|
-
end
|
|
7
|
+
task :default => :test
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
RDoc::Task.new do | rd |
|
|
10
|
+
rd.rdoc_dir = "rdoc"
|
|
11
|
+
rd.rdoc_files.include("lib/**/*.rb")
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
Rake::TestTask.new do |t|
|
|
15
|
+
t.ruby_opts = [ '-rminitest/pride' ]
|
|
16
|
+
t.verbose = true
|
|
17
|
+
end
|
data/latinverb.gemspec
CHANGED
|
@@ -19,4 +19,8 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
20
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
21
21
|
s.require_paths = ["lib"]
|
|
22
|
+
|
|
23
|
+
s.add_dependency("macronconversions")
|
|
24
|
+
s.add_dependency("verbvector")
|
|
25
|
+
s.add_dependency("rdoc")
|
|
22
26
|
end
|
data/lib/latinverb/chart.rb
CHANGED
|
@@ -19,7 +19,7 @@ module Linguistics
|
|
|
19
19
|
def chart
|
|
20
20
|
f="%9s%15s%15s%15s\n"
|
|
21
21
|
f_subjunctive="%9s%15s%15s%15s%15s\n"
|
|
22
|
-
c_prep "Present System", [
|
|
22
|
+
c_prep "Present System", [
|
|
23
23
|
self.active_voice_indicative_mood_present_tense,
|
|
24
24
|
self.active_voice_indicative_mood_imperfect_tense,
|
|
25
25
|
self.active_voice_indicative_mood_future_tense
|
|
@@ -30,7 +30,7 @@ module Linguistics
|
|
|
30
30
|
self.active_voice_indicative_mood_futureperfect_tense
|
|
31
31
|
], %w/Perfect Past-Perfect Future-Perfect/,f
|
|
32
32
|
puts "\n"
|
|
33
|
-
c_prep "Passive Present System", [
|
|
33
|
+
c_prep "Passive Present System", [
|
|
34
34
|
self.passive_voice_indicative_mood_present_tense,
|
|
35
35
|
self.passive_voice_indicative_mood_imperfect_tense,
|
|
36
36
|
self.passive_voice_indicative_mood_future_tense
|
|
@@ -73,15 +73,15 @@ module Linguistics
|
|
|
73
73
|
# Get the length of the first array to be verticalized
|
|
74
74
|
length = opts[:rays][0].length-1
|
|
75
75
|
|
|
76
|
-
# Storage
|
|
76
|
+
# Storage
|
|
77
77
|
returnTemp = []
|
|
78
78
|
|
|
79
79
|
# Verticalize
|
|
80
80
|
0.upto(length).each do |n|
|
|
81
81
|
temp = []
|
|
82
82
|
temp << opts[:label][n] unless opts[:label].empty?
|
|
83
|
-
opts[:rays].collect do |r|
|
|
84
|
-
temp << r[n]
|
|
83
|
+
opts[:rays].collect do |r|
|
|
84
|
+
temp << r[n]
|
|
85
85
|
end
|
|
86
86
|
returnTemp << temp
|
|
87
87
|
end
|