fonemas 0.1.11 → 0.1.12
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.
- checksums.yaml +8 -8
- data/lib/fonemas.rb +4 -1
- data/lib/fonemas/version.rb +1 -1
- data/spec/fonemas/fonema_spec.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzRmMWMxMmZiNjc1MzlhZDRkYTUxZmI1ZTA4OTAzMTM1NDcxYTI3YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDVmYTQ4ZTg4NDU1YTUzY2Q5YThiMjdlZWQ2MWUwMTFjMWM3ZTE0Ng==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjhjNmJhYWZkNTEzNTUxOTMzYTQwYjYyZWQzYTQ0MTc0ZTdjYTQ5MDYzN2Ez
|
10
|
+
MThiODE4YWU5YmU1NmVlN2M0YzcyY2ZmY2I0YTQzMTZmMTNlZDRlMmRiOTE5
|
11
|
+
ZDYwYWI1ZTRlN2RjMTkxZTE5NzEwZWVhZTYxNThhYTVjNTI3OGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2M0MTM5N2JkZDAwZDY3OTVhNzNmZjIxYTg4MGJhNjExOThiYjdkNmU4ZTFk
|
14
|
+
MWRiZDIyZmY0Y2ZiZjVjZTNlMmNhZDFiMzRkYThmZWQ0OWMyZjIwMDBjZWE4
|
15
|
+
MzBkNDg4MDlhMjAzYWU2YWIzNzljYzA5OTMxZmVjNTc4YTY2OTY=
|
data/lib/fonemas.rb
CHANGED
@@ -215,7 +215,10 @@ module Fonemas
|
|
215
215
|
fonema << ['ch','sh','tch']
|
216
216
|
end
|
217
217
|
when 'd' then
|
218
|
-
if
|
218
|
+
if word.size == 1
|
219
|
+
fonema << 'd'
|
220
|
+
fonema << 'e'
|
221
|
+
elsif i == 0 and isVocal(word,i+1)
|
219
222
|
fonema << ['D','d']
|
220
223
|
elsif entreVocales(word,i) or i == word.size-1
|
221
224
|
fonema << ['d','']
|
data/lib/fonemas/version.rb
CHANGED
data/spec/fonemas/fonema_spec.rb
CHANGED
@@ -24,6 +24,8 @@ describe Fonemas do
|
|
24
24
|
Fonemas.fonemas('obvio').should include('oo B b i o')
|
25
25
|
Fonemas.fonemas('obvio').should include('oo b i o')
|
26
26
|
Fonemas.fonemas('guerra').should_not include('ee R a')
|
27
|
+
Fonemas.fonemas('d').should_not include('')
|
28
|
+
Fonemas.fonemas('d').should include('d e')
|
27
29
|
|
28
30
|
|
29
31
|
|