fonemas 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/dictionary +4 -0
- data/lib/fonemas.rb +5 -0
- data/lib/fonemas/version.rb +1 -1
- data/spec/fonemas/fonema_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjY2MWMyZWM2MWJjM2JmYTk5ZTJlNDE4YWJjYzYyMTllM2MzNjUyMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDY5OWFhODUyZDE2ZWY1NGFlNWEzMTAzMjg2NjU4MzJmMWYwNTZhNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWM0ZGY3ZTkxY2QwZmQ4ZmU2MTZiNjAxMWQ0NmQzMjY3ZDQ1MGE4NmU0ODBm
|
10
|
+
NjMxZDQ0NGQ1NDUwY2U0M2VhNjMzNzliMTc1MTJiMjNiOWQ5MDVmZTJlNWUz
|
11
|
+
OTAxZGY2MzEwY2UzYjkzZTM0ODlmY2IxNGY4MzUzYTQ3MjZhZmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTFmYmQwZmFkM2I0NzM0YThiZmY1YjdlZGM5OWY4NGQ3ZDQ4ZjNjNDYyMzI3
|
14
|
+
M2FkYWUzMzU3YjE4NjNmNGRlNWE3YTRiMDRkM2MyYzE2YjI1MGMzYjlhN2Q1
|
15
|
+
YjYzYmY1Y2IyZThkZDgwMTI5ODljNjUxNDIzOWM5YmM4ODY3Yjk=
|
data/bin/dictionary
CHANGED
data/lib/fonemas.rb
CHANGED
@@ -396,7 +396,12 @@ module Fonemas
|
|
396
396
|
|
397
397
|
end
|
398
398
|
|
399
|
+
def self.lista_de_fonemas
|
400
|
+
phonelist = ['SIL']
|
401
|
+
phonelist = %w{a e i o u aa ee ii oo uu}
|
402
|
+
phonelist += %w{B b d e f g h i j k l m n o p q R r s t u w ks k h Gu gu ch tch sh}
|
399
403
|
|
404
|
+
end
|
400
405
|
|
401
406
|
|
402
407
|
end
|
data/lib/fonemas/version.rb
CHANGED
data/spec/fonemas/fonema_spec.rb
CHANGED
@@ -35,6 +35,20 @@ describe Fonemas do
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
it 'lista fonemas utilizados' do
|
39
|
+
words = %w{hasta ungüento huifa obvio guerra chile sexo}
|
40
|
+
for w in words
|
41
|
+
fs = Fonemas.fonemas(w)
|
42
|
+
for pronunciacion in fs
|
43
|
+
p = pronunciacion.split(' ')
|
44
|
+
for fonema in p
|
45
|
+
Fonemas.lista_de_fonemas.should include(fonema)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
38
52
|
it 'test diptongos' do
|
39
53
|
Fonemas.isDiptongo("buitre",1,2).should be(true)
|
40
54
|
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.1.
|
4
|
+
version: 0.1.4
|
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: 2013-06-
|
11
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|