latinverb 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/Gemfile +4 -1
  2. data/Gemfile.lock +24 -0
  3. data/Guardfile +10 -0
  4. data/README.markdown +1 -1
  5. data/Rakefile +12 -9
  6. data/latinverb.gemspec +4 -0
  7. data/lib/latinverb/chart.rb +5 -5
  8. data/lib/latinverb/version.rb +1 -1
  9. data/lib/latinverb.rb +266 -534
  10. data/lib/linguistics/latin/verb/classification_types.rb +19 -17
  11. data/lib/linguistics/latin/verb/constants.rb +14 -14
  12. data/lib/linguistics/latin/verb/deponent_tense_methods.rb +8 -21
  13. data/lib/linguistics/latin/verb/imperative_block.rb +118 -0
  14. data/lib/linguistics/latin/verb/infinitive_block.rb +39 -0
  15. data/lib/linguistics/latin/verb/infinitives.rb +181 -181
  16. data/lib/linguistics/latin/verb/irregulars.rb +74 -74
  17. data/lib/linguistics/latin/verb/latinverb/classmethods.rb +36 -117
  18. data/lib/linguistics/latin/verb/latinverb/data.rb +12 -15
  19. data/lib/linguistics/latin/verb/latinverb/defective_checker.rb +17 -0
  20. data/lib/linguistics/latin/verb/latinverb/deponent.rb +159 -0
  21. data/lib/linguistics/latin/verb/latinverb/display.rb +1 -2
  22. data/lib/linguistics/latin/verb/latinverb/impersonal.rb +34 -0
  23. data/lib/linguistics/latin/verb/latinverb/irregular.rb +83 -0
  24. data/lib/linguistics/latin/verb/latinverb/latin_verb_type_evaluator.rb +32 -0
  25. data/lib/linguistics/latin/verb/latinverb/latinverb_classifier.rb +100 -0
  26. data/lib/linguistics/latin/verb/latinverb/latinverb_input_sanitizer.rb +32 -0
  27. data/lib/linguistics/latin/verb/latinverb/latinverb_pp_extractor.rb +106 -0
  28. data/lib/linguistics/latin/verb/latinverb/metaprogramming.rb +30 -29
  29. data/lib/linguistics/latin/verb/latinverb/semideponent.rb +28 -0
  30. data/lib/linguistics/latin/verb/latinverb/validation.rb +5 -29
  31. data/lib/linguistics/latin/verb/latinverb/verbvector_description.rb +50 -0
  32. data/lib/linguistics/latin/verb/participle_block.rb +36 -0
  33. data/lib/linguistics/latin/verb/participles.rb +25 -25
  34. data/lib/linguistics/latin/verb/phonographia.rb +51 -51
  35. data/lib/linguistics/latin/verb/supine.rb +6 -6
  36. data/lib/linguistics/latin/verb/tense_block.rb +227 -0
  37. data/lib/linguistics/latin/verb/tense_definitions/first.rb +92 -0
  38. data/lib/linguistics/latin/verb/tense_definitions/fourth.rb +92 -0
  39. data/lib/linguistics/latin/verb/tense_definitions/impersonal.rb +25 -0
  40. data/lib/linguistics/latin/verb/tense_definitions/invariant.rb +613 -0
  41. data/lib/linguistics/latin/verb/tense_definitions/irregular.rb +82 -0
  42. data/lib/linguistics/latin/verb/tense_definitions/second.rb +97 -0
  43. data/lib/linguistics/latin/verb/tense_definitions/third.rb +86 -0
  44. data/lib/linguistics/latin/verb/tense_definitions/third_io.rb +91 -0
  45. data/test/testClusterResolution.rb +0 -1
  46. data/test/testDataStructures.rb +8 -5
  47. data/test/testDefectSemiImp.rb +9 -10
  48. data/test/testDeponentFirstConjugation.rb +2 -2
  49. data/test/testDeponentFourthConjugation.rb +2 -2
  50. data/test/testDeponentSecondConjugation.rb +2 -2
  51. data/test/testDeponentThirdConjugation.rb +2 -2
  52. data/test/testDeponentThirdIOConjugation.rb +2 -2
  53. data/test/testDeserializeInfinitives.rb +2 -4
  54. data/test/testFirstConjugation.rb +53 -53
  55. data/test/testFourthConjugation.rb +11 -11
  56. data/test/testFreakishVerbs.rb +12 -11
  57. data/test/testIrregulars.rb +24 -23
  58. data/test/testLatinVerb.rb +46 -55
  59. data/test/testSecondConjugation.rb +27 -27
  60. data/test/testThirdConjugation.rb +14 -14
  61. data/test/testThirdIOConjugation.rb +13 -13
  62. metadata +95 -53
  63. data/lib/linguistics/latin/verb/latinverb/auxiliary_classes.rb +0 -208
  64. data/lib/linguistics/latin/verb/tense_methods.rb +0 -950
data/Gemfile CHANGED
@@ -2,4 +2,7 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in latinverb.gemspec
4
4
  gemspec
5
- macronconversions
5
+
6
+ group :development do
7
+ gem 'autotest-standalone'
8
+ end
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
- `passive\_voice\_subjunctive\_mood\_imperfect\_tense\_third\_person` which
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 "rake/rdoctask"
2
+ require 'rdoc/task'
3
+ require 'rake/testtask'
3
4
 
4
5
  Bundler::GemHelper.install_tasks
5
6
 
6
- # Generate documentation
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
- #Added to get testing working
13
- require 'rake/testtask'
14
- Rake::TestTask.new(:test)
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
@@ -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
@@ -2,7 +2,7 @@
2
2
  module Linguistics
3
3
  module Latin
4
4
  module Verb
5
- VERSION = "0.9.2" # :nodoc:
5
+ VERSION = "0.9.3" # :nodoc:
6
6
  class LatinVerb # :nodoc:
7
7
  end
8
8
  end