fonemas 0.1.3 → 0.1.4

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWM2NjlkNWU1NTFkNzk0YWRiMWM4MzA0MTA0NDNjMjFmMzE1ODBkYw==
4
+ ZjY2MWMyZWM2MWJjM2JmYTk5ZTJlNDE4YWJjYzYyMTllM2MzNjUyMQ==
5
5
  data.tar.gz: !binary |-
6
- ZjU3N2NjMzUzOWJhNjQ4NzJkODUxMjlhYWJiZTg0MGY0NTNiOWI3MA==
6
+ NDY5OWFhODUyZDE2ZWY1NGFlNWEzMTAzMjg2NjU4MzJmMWYwNTZhNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YzUwYjM2YWE0MTQxMjY3ZjVkNDM5YmE3M2FkNzJmYTBhYTdlMzE1ZTQxYWQz
10
- NDZlYWU5YjhjODFiYmFkMGYxM2E4YzJiMWUyNGFjYTgyODMyYTNjMjZlYjU2
11
- ZjYzZTAwMWQxZTE5ZWUwOTA1YWUwOWRlYmM5MDcyZDViNGNmODU=
9
+ MWM0ZGY3ZTkxY2QwZmQ4ZmU2MTZiNjAxMWQ0NmQzMjY3ZDQ1MGE4NmU0ODBm
10
+ NjMxZDQ0NGQ1NDUwY2U0M2VhNjMzNzliMTc1MTJiMjNiOWQ5MDVmZTJlNWUz
11
+ OTAxZGY2MzEwY2UzYjkzZTM0ODlmY2IxNGY4MzUzYTQ3MjZhZmM=
12
12
  data.tar.gz: !binary |-
13
- YTZiN2UyZDZiNTUyYjdiN2ExODUxMTBkYTAyMTNiNjA0MWZmMzY4MjBmM2Q0
14
- N2M4OTEzZjJiNDU2ZjA4NDAzNmNhNDIyMDJiYWQ4MGNjNTgyN2UxYTYzODBh
15
- MDEzNTU5NTFjMDgwOTBjNTkzNDQ0ZDNiYzE3YzhiNmY2ZDY1MGE=
13
+ MTFmYmQwZmFkM2I0NzM0YThiZmY1YjdlZGM5OWY4NGQ3ZDQ4ZjNjNDYyMzI3
14
+ M2FkYWUzMzU3YjE4NjNmNGRlNWE3YTRiMDRkM2MyYzE2YjI1MGMzYjlhN2Q1
15
+ YjYzYmY1Y2IyZThkZDgwMTI5ODljNjUxNDIzOWM5YmM4ODY3Yjk=
data/bin/dictionary CHANGED
@@ -4,6 +4,10 @@ $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
4
4
 
5
5
  require 'fonemas'
6
6
 
7
+ if ARGV.include('--lista')
8
+ puts Fonemas.lista_de_fonemas.join("\n")
9
+ end
10
+
7
11
  ARGF.set_encoding('UTF-8')
8
12
 
9
13
  input = ARGF.readlines
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
@@ -1,3 +1,3 @@
1
1
  module Fonemas
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -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.3
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-18 00:00:00.000000000 Z
11
+ date: 2013-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler