Skip to content
Collection of text algorithms. gem install text
Find file
Pull request Compare This branch is 91 commits behind threedaymonk:master.
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'

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'

Ruby 1.9 Compatibility

The library has been tested on Ruby 1.9.

Work to integrate in Ruby 1.9 compatibility was done by Hampton Catlin (hcatlin)

License

Same as Ruby.

Something went wrong with that request. Please try again.