fonemas 0.0.12 → 0.0.13
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 +2 -1
- data/lib/fonemas/version.rb +1 -1
- data/spec/fonemas/fonema_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NzQ3YzY0MTgwYjY3YmY4MDZjZTcyNGRhNDM3YzY5ZTE3YTI0ZGNhMQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ODM2NmRkOGI0YzBkM2ZjOTdhOWNmNWFhYjE3YjRhNTBiNWU5YTA2OQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NjY5NGNmZjEwYjk4NDMyYjVmZDAzOTdkMWY0OGYzOTM4M2I3M2Y4ODE0Mjgx
|
|
10
|
+
NWFlZjU4YmMyZGVjMDU0ODFiNTE0OGVhNDE2M2UzOTViM2VkMTdiNDg5MGRk
|
|
11
|
+
MGRmOGY5MWRmYjBkM2ZmN2Q3NTEzNDdhOGNiMGI0NTZiMjk2NjQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MzViMDk2N2FmZjM0NzRkYjM2ZWUyMzhjNmViYjdjMTFkZGUzNmJjNGIzMzg5
|
|
14
|
+
ZTdlNDYxNmJhMjdjZWE0ZTQ1NDYwY2I1YThmYmQ0NGNlNGIxZjJlMGQyNjMw
|
|
15
|
+
YzhiMTFjNmY2ZGIzYWNiZjY1YjlhNDBlNThmZTY2NWM3ZTg5ODA=
|
data/lib/fonemas.rb
CHANGED
|
@@ -39,7 +39,7 @@ module Fonemas
|
|
|
39
39
|
#puts es.visualize(w)
|
|
40
40
|
hh = es.visualize(w).split("-")
|
|
41
41
|
#puts hh.size
|
|
42
|
-
if
|
|
42
|
+
if w =~ /[áéíóú]/
|
|
43
43
|
#acento ya existe en otra silaba
|
|
44
44
|
return false
|
|
45
45
|
else
|
|
@@ -287,6 +287,7 @@ module Fonemas
|
|
|
287
287
|
fonema << ['gu','']
|
|
288
288
|
elsif word[i-1] == 'q' or word[i-1] == 'g'
|
|
289
289
|
#nada
|
|
290
|
+
|
|
290
291
|
elsif isTonica(word,i)
|
|
291
292
|
fonema << 'uu'
|
|
292
293
|
else
|
data/lib/fonemas/version.rb
CHANGED
data/spec/fonemas/fonema_spec.rb
CHANGED
|
@@ -8,6 +8,7 @@ describe Fonemas do
|
|
|
8
8
|
Fonemas.fonemas('abuela').should include('a g u ee l a')
|
|
9
9
|
Fonemas.fonemas('aro').should include('aa r o')
|
|
10
10
|
Fonemas.fonemas('bondad').should include('b o n D aa d')
|
|
11
|
+
Fonemas.fonemas('gestión').should include('j e s t i oo n')
|
|
11
12
|
|
|
12
13
|
for i in Fonemas.fonemas('adskribir')
|
|
13
14
|
i.should end_with('ii r')
|