fonemas 0.3.6 → 0.3.7
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/version.rb +1 -1
- data/lib/fonemas.rb +19 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDIwNzliZjY2ZTBkMTQ1MmY4OGFlZGMwZGM4OGNiOTVlNWM0NjA4Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDlkMWNkNDdmOTdkYzQ1Yzk3NGIxODlhOTBiNjU2NGMxOWMxYzQ2ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzFjNzNjZGZkMjRmMDBhZDIwMjk0YzhhMjFhZTQ1MTgwNGU2MjZkMGFjYWM1
|
10
|
+
MjYxYWI0M2JmNzk1YjA3NzYzNzZjMjA4MzM1ZmY2NDdhYzBiZDc5YzYzNDEz
|
11
|
+
NjA5MjQ3MDUzYzQ2MzRkMzljZDBlMjRlZDA2ODMwOGZkMWRlZjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWQyMTA3Nzk3MzIxODAzOWYwOTk1YWFiMDVjMWFiMzM1MzZmMWUwZDA2ZDI1
|
14
|
+
YzY3NjRhYmFlMmY3Y2M2ODQzNzY1ODk0ZjgzN2EwZWRjODU1YjdhYmYxYzZm
|
15
|
+
YzE4YTU4MmRhMjVjMDcyYjczNzM2OGY0YWQ3Y2Q3ODNkNmJmODA=
|
data/lib/fonemas/version.rb
CHANGED
data/lib/fonemas.rb
CHANGED
@@ -260,9 +260,11 @@ module Fonemas
|
|
260
260
|
end
|
261
261
|
when 'ch' then
|
262
262
|
if entreVocales(word,i)
|
263
|
-
fonema << ['ch','sh','tch','j']
|
263
|
+
#fonema << ['ch','sh','tch','j']
|
264
|
+
fonema << 'ch'
|
264
265
|
else
|
265
|
-
fonema <<
|
266
|
+
fonema << 'ch'
|
267
|
+
#fonema << ['ch','sh','tch']
|
266
268
|
end
|
267
269
|
when 'd' then
|
268
270
|
if i == 0 and isVocal(word,i+1)
|
@@ -319,7 +321,8 @@ module Fonemas
|
|
319
321
|
when 'l' then
|
320
322
|
fonema << 'l'
|
321
323
|
when 'll' then
|
322
|
-
fonema << ['ll','lli','i']
|
324
|
+
#fonema << ['ll','lli','i']
|
325
|
+
fonema << ['ll','i']
|
323
326
|
when 'm' then
|
324
327
|
fonema << 'm'
|
325
328
|
when 'n' then
|
@@ -346,11 +349,14 @@ module Fonemas
|
|
346
349
|
fonema << 'rr'
|
347
350
|
when 's' then
|
348
351
|
if word[i-1] == 'r' or word[i-1] == 'd' or i == word.size-1
|
349
|
-
fonema << ['s','','h']
|
352
|
+
#fonema << ['s','','h']
|
353
|
+
fonema << ['s','']
|
350
354
|
elsif entreVocalyConsonante(word,i)
|
351
|
-
fonema << ['s','h']
|
355
|
+
#fonema << ['s','h']
|
356
|
+
fonema << 's'
|
352
357
|
elsif word[i-1] == 'b' and word[i+1] == 't'
|
353
|
-
fonema << ['s','h']
|
358
|
+
#fonema << ['s','h']
|
359
|
+
fonema << 's'
|
354
360
|
elsif word[i-1] == 'b'
|
355
361
|
fonema << ['s','']
|
356
362
|
else
|
@@ -381,16 +387,19 @@ module Fonemas
|
|
381
387
|
# fonema << 'Gu'
|
382
388
|
end
|
383
389
|
when 'x' then
|
384
|
-
fonema << ['ks','k','h']
|
390
|
+
#fonema << ['ks','k','h']
|
391
|
+
fonema << ['ks','k']
|
385
392
|
when 'y' then
|
386
393
|
if i == word.size - 1
|
387
394
|
fonema << 'i'
|
388
395
|
else
|
389
|
-
fonema << ['ll','lli','i']
|
396
|
+
#fonema << ['ll','lli','i']
|
397
|
+
fonema << 'll'
|
390
398
|
end
|
391
399
|
when 'z' then
|
392
400
|
if i == word.size - 1
|
393
|
-
fonema << ['s','h','']
|
401
|
+
#fonema << ['s','h','']
|
402
|
+
fonema << ['s','']
|
394
403
|
else
|
395
404
|
fonema << 's'
|
396
405
|
end
|
@@ -470,7 +479,7 @@ module Fonemas
|
|
470
479
|
def self.lista_de_fonemas
|
471
480
|
phonelist = ['SIL']
|
472
481
|
phonelist += %w{a e i o u aa ee ii oo uu}
|
473
|
-
phonelist += %w{bb b d e f g
|
482
|
+
phonelist += %w{bb b d e f g i j k l m n o p q rr r s t u ks k gu ch dd gg ll nh}
|
474
483
|
phonelist.uniq
|
475
484
|
end
|
476
485
|
|