0

Is there a vocabulary library that can recognize different forms as one word? Like this:

Built, Builds, Building  => Build
Ate, Eaten, Eats, Eating => Eat
Tables                   => Table
sawa
  • 165,429
  • 45
  • 277
  • 381
megas
  • 21,401
  • 12
  • 79
  • 130

2 Answers2

3

Porter Stemmer for Ruby with description/explanation here

Mark Baker
  • 209,507
  • 32
  • 346
  • 385
  • I checked this library, it doesn't recognize the words 'ate' and 'eaten'. Are you sure that library work? – megas Mar 10 '12 at 12:23
  • No I'm not sure, I've never used it... but I'm not aware of any other stemming libraries in Ruby – Mark Baker Mar 10 '12 at 18:20
2

This one isn't specifically, for Ruby, but the Wordlists project has a dictionary called 2of12inf, which includes these different forms (inflections) of words.

Lucky
  • 4,787
  • 9
  • 40
  • 50