fonemas 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/fonemas/version.rb +1 -1
  3. data/lib/fonemas.rb +19 -10
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWNhNDNmMzQzZGRjZTU1MzE2OTM2MjRhZGQ3ZWZlZmViOGY0ZjViNg==
4
+ ZDIwNzliZjY2ZTBkMTQ1MmY4OGFlZGMwZGM4OGNiOTVlNWM0NjA4Yw==
5
5
  data.tar.gz: !binary |-
6
- ZTZhZDJmZTg5ODQyZmI0ZmVhMTU5ZTY5ZmYxNmZlM2IyY2EwZmQzOA==
6
+ MDlkMWNkNDdmOTdkYzQ1Yzk3NGIxODlhOTBiNjU2NGMxOWMxYzQ2ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Nzc4ODIzNDk5ZDVkY2ZiYjY1ZTViY2RmODBmOTZlOGM5MzJmNjBhMDQ5OWUy
10
- YjhlM2U3ZTAwNjNmZDY1ZWRhNzcyMjhjZWVkYmE1ZmUxM2Q1ZGZjNjA3NmIx
11
- MTA1ODQ2M2VjNTBjMzRjYzgyMDc5MDI2MTNjZGNjMmRmMzI2ODM=
9
+ NzFjNzNjZGZkMjRmMDBhZDIwMjk0YzhhMjFhZTQ1MTgwNGU2MjZkMGFjYWM1
10
+ MjYxYWI0M2JmNzk1YjA3NzYzNzZjMjA4MzM1ZmY2NDdhYzBiZDc5YzYzNDEz
11
+ NjA5MjQ3MDUzYzQ2MzRkMzljZDBlMjRlZDA2ODMwOGZkMWRlZjI=
12
12
  data.tar.gz: !binary |-
13
- OWY1MzZmYzJiMmE5YjM1ZmNjMGY1OTI0ZmQ3N2I1Nzk0MGUzNTJlYTRmY2Fm
14
- ZWE2OGNkODFiZmNhNjcwYjdjNDU0MDI1MjMwMjUyMmY2NTgyYWRiMzMxZGMy
15
- MzVhMDJiMGM3ODE3NDRiMzRlZWQ1MGQ4NjRiYTNlMTgzNzY3ZjY=
13
+ ZWQyMTA3Nzk3MzIxODAzOWYwOTk1YWFiMDVjMWFiMzM1MzZmMWUwZDA2ZDI1
14
+ YzY3NjRhYmFlMmY3Y2M2ODQzNzY1ODk0ZjgzN2EwZWRjODU1YjdhYmYxYzZm
15
+ YzE4YTU4MmRhMjVjMDcyYjczNzM2OGY0YWQ3Y2Q3ODNkNmJmODA=
@@ -1,3 +1,3 @@
1
1
  module Fonemas
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
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 << ['ch','sh','tch']
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 h i j k l m n o p q rr r s t u ks k h gu ch tch sh dd gg ll lli nh}
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fonemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Bahamondez Honores