fonemas 0.7.2 → 0.7.3
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 +1 -1
- data/lib/fonemas/version.rb +1 -1
- data/spec/fonemas/fonema_spec.rb +15 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MzkxOGY2YjExMjVmNmEzY2QyOTQ1NDkzNjk0Y2UzYTdhYTgyMDc4MA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MDAyZmY3MjVjODZmOTc1NDI2YWFlNjk4MmRiNDQ2ZmJlODkwNmFiMw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZjYxOTlkZjdlZjBiMGY5NGY3MjcwNjQ4ZDQyZWE3ZDQwMjFmZDViODU0N2Qx
|
|
10
|
+
MDVmYjI1M2VmYWI4YjljOTZiN2RlOWIyMTZiOTUzY2YzZjNhNjU5YTU1Nzky
|
|
11
|
+
NGQ3Y2NjZmVjYjg0NmI2MGUyNzRkOWE2OTJjYzZhN2NkMWM2M2U=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ODAyYWYxYzhjY2NiMzAzMTNkYzQyZjE4NmNhNzQzMWNjNzZkZTY1NjA1Mjk3
|
|
14
|
+
NDc3YWUwYzRlNmJjM2IwNjQxODUyMmVlNmI3YzE3MDkzZWY1YjJlM2NjYjRj
|
|
15
|
+
NmY0ZmY5YjhhOGI3MmQyNzczOTUyZmI2MTRiNmQwYjZkMGQwYTM=
|
data/lib/fonemas.rb
CHANGED
data/lib/fonemas/version.rb
CHANGED
data/spec/fonemas/fonema_spec.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|