fonemas 0.0.3 → 0.0.4
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 +3 -3
- data/lib/fonemas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWYxMmMwZTA1OGI2NjgyMDY1ZGI3ZGZlYWRjYTBhYzlmNzRmZDU1OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzQyODI3OWZiN2NjOTdlN2ZmNTY2Y2JjZjQwMjRkOGVhZDM3MzRiOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWE5MmE5MDhlNDIxMzBjNzhkNWFlM2JiNTBmYmQwMDNjZTgzNmE2NWFhYWE2
|
10
|
+
N2QzMWZjZDM0OTZlM2ZhY2ZlNjA5NWY4NDc0MThmN2FkYzNiYTdkNWQ3MjQx
|
11
|
+
ZWQ3ZjdkYTgzNjJmMTdjNmM4ODU2ODZiYzUzZDI4Y2I5MzA3NTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmJhODMzMWE1MGUwMjE5MjlhZTkyZTdjYjNkYjI4NzFjNGY3M2JjNzJkNGM2
|
14
|
+
NDQ2YWI1N2QwOTZlYThiOGQ5YmM1Y2YzNDM2YTNjMTQ5MWQyYTZhNzRmMmEz
|
15
|
+
YzU1ZWQ5MWE2NmY1YjRiZjViMjc3YjhmMDNlYjgwYTI4MTc1MjM=
|
data/lib/fonemas.rb
CHANGED
@@ -30,7 +30,7 @@ module Fonemas
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.entreVocales(word,i)
|
33
|
-
if i == 0
|
33
|
+
if i == 0 or word.size - 1 == i
|
34
34
|
return false
|
35
35
|
else
|
36
36
|
return (isVocal(word,i-1) and isVocal(word,i+1))
|
@@ -129,7 +129,7 @@ module Fonemas
|
|
129
129
|
fonema << ['ch','sh','tch']
|
130
130
|
end
|
131
131
|
when 'd' then
|
132
|
-
if entreVocales(word,i)
|
132
|
+
if entreVocales(word,i) or i == word.size-1
|
133
133
|
fonema << ['d','']
|
134
134
|
elsif entreVocalyConsonante(word,i)
|
135
135
|
fonema << ['D','d']
|
@@ -214,7 +214,7 @@ module Fonemas
|
|
214
214
|
if word[i-1] == 'q' or word[i-1] == 'g'
|
215
215
|
#nada
|
216
216
|
else
|
217
|
-
if word[i-1] == 'g'
|
217
|
+
if word[i-1] == 'g' or i == 0
|
218
218
|
fonema << 'gu'
|
219
219
|
elsif isTonica(word,i)
|
220
220
|
fonema << 'uu'
|
data/lib/fonemas/version.rb
CHANGED