Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Collection of text algorithms. gem install text
tag: v0.1.13

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
README.rdoc
Rakefile

README.rdoc

Text

A collection of text algorithms.

Usage

require 'text'

font = Text::Figlet::Font.new('big.flf')
figlet = Text::Figlet::Typesetter.new(font)
figlet['Hello World']                         # => '...'

Text::Levenshtein.distance('test', 'test')    # => 0
Text::Levenshtein.distance('test', 'tent')    # => 1

Text::Metaphone.metaphone('BRIAN')            # => 'BRN'
Text::Metaphone.double_metaphone('Coburn')    # => ['KPRN', nil]
Text::Metaphone.double_metaphone('Angier')    # => ['ANJ', 'ANJR']

Text::Soundex.soundex('Knuth')                # => 'K530'

Text::PorterStemming.stem('abatements')       # => 'abat'

License

Same as Ruby.

Something went wrong with that request. Please try again.