hablaba 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hablaba.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 999cfb467e3b8d4b9d44c9c53c62819da12a30fc
4
- data.tar.gz: 22c009cbffaffbb934cbfb11348e46edd1946abc
3
+ metadata.gz: 2cf54a3e0ad6f99f14a80f75ebd9a7bce1c20214
4
+ data.tar.gz: eb85d6784efce8d69ee2c20abb74f883a7d05190
5
5
  SHA512:
6
- metadata.gz: 8430685d0b27034bf1ebec4e16e6b63d27e3a89eaaa941eafcc2aa8c3422d6118c662892a923313859b52efc0160d7462ac172bd3016d814f6a0b932b02976fd
7
- data.tar.gz: 2875b7213bd3b72da1189800b293f6012fda3c935461b2c02f3108b9e1cd6df27e90ef6d18ed1b534dfdc36df42304faefce4d440462a4445296bf5bf56819c6
6
+ metadata.gz: bef1df559194812d76d6f7e48de1368b65c84dc0f36d6074c830200435604ee276f3cd733c1d7a76e738c5b7f32f0508816570592f8c73f3b60147fc4e25264f
7
+ data.tar.gz: f4406a2918d782f46b32ba51a3edc3c611dafa4ba4acece710fcb2f111667c36fc3a49089cf8b92f83cf60532b618b4ff536edf15be5e97976bcca5e84261871
@@ -123,8 +123,12 @@ class Hablaba
123
123
 
124
124
  def conjugate_in_the_imperfect_subjunctive(pronoun, verb)
125
125
  verb_ending, root = get_verb_ending_and_root(verb)
126
- # get the third person preterite
126
+ # get the third person preterite (e.g. rompieron) and then remove the on (rompier)
127
127
  third_person_root = conjugate_in_the_preterite('ellos', verb).gsub(/on\z|an\z/i, '')
128
+ if pronoun == 'nosotros'
129
+ third_person_root.gsub!(/ar\z/i, 'ár')
130
+ third_person_root.gsub!(/er\z/i, 'ér')
131
+ end
128
132
  third_person_root + %W[a as a amos ais an][pronoun_index(pronoun)]
129
133
  end
130
134
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hablaba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Duyzer