fonemas 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fonemas.rb +2 -1
- data/lib/fonemas/version.rb +1 -1
- data/spec/fonemas/fonema_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWRmNzM2OGE2NmJiYzQ3MjIwMTJhY2JkYTM2NzVhYmE2NGM4YzliYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTBmZWNiYzEyNGU4ZTU5NTRlMzA5N2IxYmMwN2YzZWMzOTlmMzRiYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzU0NDQ3ZTQyZjM3ZDYzNGRlOGE0YTc5NTNhZWIxM2IxNWVkMWYyOWJiNTMz
|
10
|
+
MGNlYWMyODdjNGU0ODY5ZWVjNjcyNmY3MjAwODkzMjAwN2MyOTM0ODRhMGNk
|
11
|
+
YjBmZTY3MjA2Njc3YTYxNTk3OGIxYjg0NjE2MTQxZDA1YjFmOWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MThkN2Y2NjY4MzZiMmU0YjAyYjExMjk3OWQyYzM5NWJiOGYwYzcxZGMyZDcw
|
14
|
+
Y2YwNzlhNzE5ODk5ZWIyYjFkYTQ0Yjc0MTAxZWU4OGI0Yjc4YjU5ODA0OWE4
|
15
|
+
ZDZiNDJmOTFhNDdhZjBiNDgzNTJjZjFlMjk4MTZjYTJjYTkwNDQ=
|
data/lib/fonemas.rb
CHANGED
@@ -526,7 +526,8 @@ module Fonemas
|
|
526
526
|
when 'rr' then
|
527
527
|
fonema << 'rr'
|
528
528
|
when 's' then
|
529
|
-
if word[i-1] == '
|
529
|
+
if word[i-1] == 'd' or i == word.size-1
|
530
|
+
#if word[i-1] == 'r' or word[i-1] == 'd' or i == word.size-1
|
530
531
|
#fonema << ['s','','h']
|
531
532
|
fonema << ['s','']
|
532
533
|
elsif entreVocalyConsonante(word,i)
|
data/lib/fonemas/version.rb
CHANGED
data/spec/fonemas/fonema_spec.rb
CHANGED
@@ -158,4 +158,10 @@ describe Fonemas do
|
|
158
158
|
Fonemas.fonemas('khz').should include('k ii l o j e r t s')
|
159
159
|
end
|
160
160
|
|
161
|
+
it 's debe pronunciarse' do
|
162
|
+
Fonemas.fonemas('concurso').should include('k o n k uu r s o')
|
163
|
+
Fonemas.fonemas('concurso').should_not include('k o n k uu r o')
|
164
|
+
|
165
|
+
end
|
166
|
+
|
161
167
|
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.6.
|
4
|
+
version: 0.6.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:
|
11
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|