fonemas 0.3.1 → 0.3.2
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 -2
- 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
|
+
MGNhZjA4ZWJkZDFjY2ViYTEzYjljOGFlODI5ZmNlNDMxNzAxNDM2OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWFjMmNhZjA1NTA0MDA2YTljOTIyNDU3MmFiNTI1NTAxNjUyYjM2Zg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmEyZWVhNTRiNzQ2YTA0NDE4OGY1ZGU4MWNkZWQ2MmUxMzM0ZmI5N2I2Yzg2
|
10
|
+
NTdkNjAzMDg3ZTE3MmExYWI5NDg4YzAyMWY4Y2NiZmUwNzdmZThmYjM1YTRi
|
11
|
+
NmVhMTZkNDc0ZWRiNWZjYWJlZDFhMjJkNGQwNjZmNGRjMWE3NmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzU3N2JjOGYzZmYzMTZmZmViYTIyNzI3NDRlNzc4MDg4N2QxMWY2MGRmZjAw
|
14
|
+
MmI5ZThmMDYzYjZkZWJlNDc3Y2RkNzQ4Y2Y5ZjUyMTMwYjEwZGQ2YTk4OGFk
|
15
|
+
NWMzZDI2YzVjODJhNTY5NGFiNzhhNWE0NzkwOTk2MzhkMThkOTA=
|
data/lib/fonemas.rb
CHANGED
@@ -36,7 +36,7 @@ module Fonemas
|
|
36
36
|
def self.isTonica(word,i)
|
37
37
|
#falta considerar las palabras que poseen acento pero no tilde
|
38
38
|
return true if word.size == 1
|
39
|
-
tildes = %w(á é í ó ú)
|
39
|
+
tildes = %w(á é í ó ú ã)
|
40
40
|
w = word.join
|
41
41
|
if tildes.include? word[i]
|
42
42
|
return true
|
@@ -211,7 +211,7 @@ module Fonemas
|
|
211
211
|
for i in 0..(word.length-1)
|
212
212
|
letra = word[i]
|
213
213
|
case letra
|
214
|
-
when 'á' then
|
214
|
+
when 'á','ã' then
|
215
215
|
fonema << 'aa'
|
216
216
|
when 'é' then
|
217
217
|
fonema << 'ee'
|
data/lib/fonemas/version.rb
CHANGED