fonemas 0.7.2 → 0.7.3

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
- NjlmYjE2YTQxZTExYjMxYTIwZmQ0NjYxZGJhZDRlN2ExYmZhNTllYg==
4
+ MzkxOGY2YjExMjVmNmEzY2QyOTQ1NDkzNjk0Y2UzYTdhYTgyMDc4MA==
5
5
  data.tar.gz: !binary |-
6
- ZjhkZTYzMTIxZmMyNTI0ZTQzMTJkMWVkNzgxNWQ4OWRiOWYxY2Y0Zg==
6
+ MDAyZmY3MjVjODZmOTc1NDI2YWFlNjk4MmRiNDQ2ZmJlODkwNmFiMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDNlM2FhOTQ4M2QyYjUwYzM0ZjRjMTQwZGY5MzRiZDVhNTMxNDFiYjFlNjBk
10
- ZjI0ZTkyMGIzYzI4YWNiMTBjODQ0OGVmZmRhZmJhODY3YTVkMjBhMzE0N2Qy
11
- MjVhZDVlNGU3MDg2NjE4ZjhhYzc5NWMwOThhNWJmMmU4ZGQxZDE=
9
+ ZjYxOTlkZjdlZjBiMGY5NGY3MjcwNjQ4ZDQyZWE3ZDQwMjFmZDViODU0N2Qx
10
+ MDVmYjI1M2VmYWI4YjljOTZiN2RlOWIyMTZiOTUzY2YzZjNhNjU5YTU1Nzky
11
+ NGQ3Y2NjZmVjYjg0NmI2MGUyNzRkOWE2OTJjYzZhN2NkMWM2M2U=
12
12
  data.tar.gz: !binary |-
13
- ZWJiNGIyOGVkY2FjYzBjNGM5YTE4ODA0YjU4YzFjMmRkMWZlYjQyNDkwMDc0
14
- MDAzMmFmNjJlNGYwNDBmMGRlMmM2ZWFjMWQyMTdjZjE1YzAwODllZTViZDVl
15
- YzY0MWVjNDUzYmY5YzJiOTFmOGQ1MjY2Mjg1YTQwMzFlMmYyMmU=
13
+ ODAyYWYxYzhjY2NiMzAzMTNkYzQyZjE4NmNhNzQzMWNjNzZkZTY1NjA1Mjk3
14
+ NDc3YWUwYzRlNmJjM2IwNjQxODUyMmVlNmI3YzE3MDkzZWY1YjJlM2NjYjRj
15
+ NmY0ZmY5YjhhOGI3MmQyNzczOTUyZmI2MTRiNmQwYjZkMGQwYTM=
@@ -155,7 +155,7 @@ module Fonemas
155
155
  return true if w.size == 1
156
156
 
157
157
 
158
- if tildes.include? w[i]
158
+ if tildes.include? word[i]
159
159
  return true
160
160
  else
161
161
  g = silabar(w)
@@ -1,3 +1,3 @@
1
1
  module Fonemas
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
3
3
  end
@@ -38,9 +38,12 @@ describe Fonemas do
38
38
  Fonemas.fonemas('aproximadamente').should include('a p r o ks i m a d a m ee n t e')
39
39
  Fonemas.fonemas('aproximadamente').should_not include('a p r o k i m a d a m ee n t e')
40
40
  Fonemas.fonemas('software').should include('s o f t g u aa r e')
41
+ Fonemas.fonemas('llamémosla').should include('ll a m ee m o s l a')
41
42
 
42
43
  end
43
44
 
45
+
46
+
44
47
  it 'lista fonemas utilizados' do
45
48
  words = %w{hasta ungüento huifa obvio guerra chile sexo mañana}
46
49
  for w in words
@@ -170,5 +173,17 @@ describe Fonemas do
170
173
  Fonemas.fonemas('web').should include('u ee b')
171
174
  end
172
175
 
176
+ it 'palabras esdrújulas' do
177
+ silabas = Fonemas.silabar('llamémosla')
178
+ silabas.split("-").size.should eql(4)
179
+ word = Fonemas.separar('llamémosla')
180
+ word[0].should eql('ll')
181
+ word[3].should eql('é')
182
+ Fonemas.isConsonante(word,3).should be_false
183
+ Fonemas._isTonica(word,3).should be_true
184
+ Fonemas.isTonica(word,3).should be_true
185
+
186
+ end
187
+
173
188
 
174
189
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fonemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Bahamondez Honores
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-08 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler