Pankaj
Pankaj

Reputation: 2558

Approximate string matching in Ruby

I am implementing user search functionality in my Rails application. I want the application to suggest the correct spellings if the user makes a mistake in typing the spelling. Is there any plugin for this in ruby. Can this be done in sql?

Regards, Pankaj

Upvotes: 3

Views: 528

Answers (1)

detunized
detunized

Reputation: 15289

It looks like hunspell gem is there to help you. It requires some external dependencies so it's not pure Ruby. But according to this readme it seem to be exactly what you are looking for.

Alternatively, you can try BOSSMan. It looks like it spell checks via Yahoo.

Upvotes: 2

Related Questions