Sha256: 7b3c62f33f47a3a9534a093722b87cb235c12a13f5b34ebe9f75207de34bf14d
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 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 |= EndSameSound.create(word) typo_list - [word] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typogen-0.1.1 | lib/typogen/typo.rb |
typogen-0.1.0 | lib/typogen/typo.rb |