Sha256: 8274904f0e08f1cc64b82bf435837bf032ec89c313ff001bda758931f4101f74

Contents?: true

Size: 465 Bytes

Versions: 6

Compression:

Stored size: 465 Bytes

Contents

#!/usr/bin/env ruby

require 'correct_horse_battery_staple'

format = ARGV[2] || ENV['corpus_format'] || "isam"
corpus = CorrectHorseBatteryStaple.load_corpus(ARGV[0] || "tvscripts", format)

word_length = 3..9
percentile = 30..80
number_of_words = (ARGV[1] || 4).to_i

generator = CorrectHorseBatteryStaple::Generator.new(corpus)

puts generator.make(number_of_words,
                    :word_length => word_length,
                    :percentile => percentile)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
correct-horse-battery-staple-0.6.6 bin/chbs-mkpass
correct-horse-battery-staple-0.6.5 bin/chbs-mkpass
correct-horse-battery-staple-0.6.4 bin/chbs-mkpass
correct-horse-battery-staple-0.6.3 bin/chbs-mkpass
correct-horse-battery-staple-0.6.2 bin/chbs-mkpass
correct-horse-battery-staple-0.6.1 bin/chbs-mkpass