Sha256: 78708a23908cd50111f332b30f086d1e848802a59c6eaeecac96da6eeba7abef
Contents?: true
Size: 497 Bytes
Versions: 3
Compression:
Stored size: 497 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'fonemas' ARGF.set_encoding('UTF-8') input = ARGF.readlines words = [] for i in input #1 palabra por linea words << i.split(" ")[0].chomp.downcase end words = words.sort words = words.uniq for i in words fonemas = Fonemas.fonemas(i) count = 0 for f in fonemas if count > 0 puts "#{i}(#{count})\t#{f}" else puts "#{i}\t#{f}" end count += 1 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fonemas-0.1.3 | bin/dictionary |
fonemas-0.1.2 | bin/dictionary |
fonemas-0.1.1 | bin/dictionary |