fonemas 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjUyMTg4YmJlNGEzN2ZlNDgwOTNiNGUwNmU5MzNhOTg4ZjBiY2VjYQ==
4
+ YzZmMDM2Y2FlNDhkMWJhOWJlNDM4ZTRiODViNzllZjMxODQ3ODQ5ZA==
5
5
  data.tar.gz: !binary |-
6
- NzRlN2M5OGRmNTg2MTE3ODA2ODNmNTk1MDM4M2U1Y2I2N2Y0NDU4OQ==
6
+ Zjg0MzZhYzFjOThhOGE4YmY0NzRmNmI1YmI4Y2YxNmY5MTlkOGQxNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTUxODZiNWNiODdmN2FkNTk4ZDJmNzFhZTgxYTZhNzY0OTI2MWRkYzYxMDcz
10
- MmJmMzc0MWU1NmViMTU0YWIwYTJiNDQ5M2E0YzVlZmIzYTAyNjRmYTJmZDM4
11
- MjY3ZWVmY2IxZTYyZmZjMzkzZDNiNzU4MTNhOTBjMDQ3ZjgzY2U=
9
+ NGE5ODQzMzhjYWU0MWM5ZDcwNzI5NjBlNzJmYTFiMTllMDY3Y2I3YjEyMWIz
10
+ ZGVlZTQ4NDdmZjRiZTBmN2Y3Mzc3ZTAyNDE4MzdkN2E2ZjlmNmFkM2U5NGRj
11
+ NTUwYzc1MDE4YWI2NDZlNmI3YzBkYmRiZWYxYjA2ZjYwYjczMjk=
12
12
  data.tar.gz: !binary |-
13
- MTIzYzRmYjliNzk3NTllZTZhM2Y1MTQ5MmE1ODBlNDFmOGEwNzZmODZlZGRk
14
- MDFjZjE5NDUxZWQwN2U0NGFjMGM4ZDc1NWVkZTUzZGJiY2I4MWUyNTJkYTAw
15
- MDI3NWFjYTcwMGQ0NTM1OTE5YWIwNDIxNmY5NmQ3MGUxMzE3NDA=
13
+ ZDMzZDc4NmQ0YWRkNWQ3YTYwODM2YTYwMzg0NmUzNTU1MDc0YWFmMjc4NjVm
14
+ OGEyOGZiNGNlYzc0YzQxNTk3ZmNlZjgzM2MzOGJmYzFlYzZhMWQ1NDRiYTlk
15
+ ODgzNDQxYzIwYmY1YWU3MTAwMjdjOTAyZmRjODk5NzYwMGIzZTg=
data/lib/fonemas.rb CHANGED
@@ -2,6 +2,11 @@
2
2
  require "fonemas/version"
3
3
 
4
4
  module Fonemas
5
+
6
+ def self.version
7
+ VERSION
8
+ end
9
+
5
10
  def self.clean(text)
6
11
  s = text.gsub(/,/,' ')
7
12
  s = s.gsub(/\s+/,' ')
@@ -211,16 +216,14 @@ module Fonemas
211
216
  when 'ü' then
212
217
  fonema << 'u'
213
218
  when 'u' then
214
- if word[i-1] == 'q' or word[i-1] == 'g'
219
+ if word[i-1] == 'g' and i == 1 and isTonica(word,i+1)
220
+ fonema << ['gu','']
221
+ elsif word[i-1] == 'q' or word[i-1] == 'g'
215
222
  #nada
216
- else
217
- if word[i-1] == 'g' and i == 1
218
- fonema << 'gu'
219
- elsif isTonica(word,i)
223
+ elsif isTonica(word,i)
220
224
  fonema << 'uu'
221
- else
225
+ else
222
226
  fonema << 'u'
223
- end
224
227
  end
225
228
  when 'v' then
226
229
  fonema << 'b'
@@ -1,3 +1,3 @@
1
1
  module Fonemas
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.7"
3
3
  end
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.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Bahamondez Honores