Add a “did you mean” feature to your project using the did_you gem

require 'did_you'

DidYou::Spell.check('params', %w[param return tag abstract])

#=> ['param']

DidYou::Spell.check('param', %w[param return tag abstract])
#=> [] 

DidYou::Spell.check('p', %w[param return tag abstract])
#=> [] 

DidYou::Spell.check('pa', %w[param return tag abstract])
#=> [] 

DidYou::Spell.check('par', %w[param return tag abstract])
#=> ["param"] 

DidYou::Spell.check('peram', %w[param return tag abstract])
#=> ["param"] 


## Resources