Rough string match in Ruby

I am using the user search function in a Rails application. I want the application to offer the correct spelling if the user made a mistake when entering the spelling. Is there a plugin for this in ruby. Can this be done in sql?

Regards, Pankai

+3
source share
1 answer

It looks like hunspell gem will help you. This requires some external dependencies, so this is not pure Ruby. But according to this readme, it looks like what you are looking for.

Alternatively, you can try BOSSMan . It looks like he's checking spelling through Yahoo.

+2
source

All Articles