hablaba 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hablaba.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cf54a3e0ad6f99f14a80f75ebd9a7bce1c20214
|
4
|
+
data.tar.gz: eb85d6784efce8d69ee2c20abb74f883a7d05190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bef1df559194812d76d6f7e48de1368b65c84dc0f36d6074c830200435604ee276f3cd733c1d7a76e738c5b7f32f0508816570592f8c73f3b60147fc4e25264f
|
7
|
+
data.tar.gz: f4406a2918d782f46b32ba51a3edc3c611dafa4ba4acece710fcb2f111667c36fc3a49089cf8b92f83cf60532b618b4ff536edf15be5e97976bcca5e84261871
|
data/lib/hablaba.rb
CHANGED
@@ -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
|
|