fonemas 0.0.10 → 0.0.11
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 +6 -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
|
+
NGRjNmZjZjVjMjg0YTE2NDFlMGEzOGU2ZmU1ZTZlZjMyZTU4MDhiMQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MDJlNzM3ZjYwYWJjZTRkN2Y0MjhkY2Y1ZGQyYWFiNzkxYjlhY2UwNA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MmViZTJhNjI4ZDMwMWRmMjY2MzlhMTI5YTNiMWMwY2JmNzQxNTI5ZTc5ZGMw
|
|
10
|
+
MTBhOThjYmQxYjM4NDQ2OTZhNWQ4ZmVmNjQ2NmM3YjU2Yzg5ZDljYjBjODgy
|
|
11
|
+
ZWY0NzU1NmUxNDBhOTc0ZmY2MzNlYmIwOGJlMTYwM2JhOWQ1ZTQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NGQ4ZDdlMzVkZTBmYzYwY2RjYzk2ZThiZTJkNTQ4NjgyZTdjZDY1YTRkMzk4
|
|
14
|
+
MDE3NjFjZWExMjdjYWIzYjNkYzA2NjM3YTU4ZjdhOWZkYTFmMmJiYjQ3ODMx
|
|
15
|
+
ODE0MzZlOTYwNDMzMzViYTlkMDI1YTVlZjg3MWVlODM1N2FhNGQ=
|
data/lib/fonemas.rb
CHANGED
|
@@ -42,9 +42,14 @@ module Fonemas
|
|
|
42
42
|
#acento ya existe en otra silaba
|
|
43
43
|
return false
|
|
44
44
|
else
|
|
45
|
+
#puts es.visualize(w)
|
|
45
46
|
if hh.size == 1
|
|
47
|
+
if lastVocal(w,w.size-1) == word[i]
|
|
48
|
+
return true
|
|
49
|
+
else
|
|
50
|
+
return false
|
|
51
|
+
end
|
|
46
52
|
#monosilabos
|
|
47
|
-
return true
|
|
48
53
|
elsif hh.size == 2
|
|
49
54
|
#agudas, se acentuan en n,s o vocal
|
|
50
55
|
if w =~ /[nsaeiou]$/
|
data/lib/fonemas/version.rb
CHANGED
data/spec/fonemas/fonema_spec.rb
CHANGED
|
@@ -6,6 +6,7 @@ describe Fonemas do
|
|
|
6
6
|
Fonemas.fonemas('torta')[0].should eql("t oo r t a")
|
|
7
7
|
Fonemas.fonemas('ungüento')[0].should eql("u n g u ee n t o")
|
|
8
8
|
Fonemas.fonemas('abuela').should include('a g u ee l a')
|
|
9
|
+
Fonemas.fonemas('aro').should include('aa r o')
|
|
9
10
|
|
|
10
11
|
for i in Fonemas.fonemas('adskribir')
|
|
11
12
|
i.should end_with('ii r')
|