Sha256: de3ac59d656d07c24fb4461e76e5943b7471e2200e55354f8cd37dff91b3201d
Contents?: true
Size: 384 Bytes
Versions: 3
Compression:
Stored size: 384 Bytes
Contents
module TypoGen class Typo # @param [String] word correct word # @return [Array] typo list def self.create(word, options: {}) typo_list = [] typo_list |= SkipLetter.create(word) typo_list |= SwapLetter.create(word) typo_list |= StartSameSound.create(word) typo_list |= EndSameSound.create(word) typo_list - [word] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typogen-0.2.2 | lib/typogen/typo.rb |
typogen-0.2.1 | lib/typogen/typo.rb |
typogen-0.2.0 | lib/typogen/typo.rb |