Project

i_did_mean

0.0
No commit activity in last 3 years
No release in over 3 years
Autofix your typos, by leveraging DidYouMean suggestions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

i_did_mean Build Status

Did you mean? I did mean!

Autocorrects spelling mistakes reported by DidYouMean. Only attempts to autocorrect when there is a single suggestion from DidYouMean.

Example

This code:

require "i_did_mean"

def bar
  "foo"
end

ba

Will get autocorrected to:

require "i_did_mean"

def bar
  "foo"
end

bar

This code:

require "i_did_mean"

first_name = nil
flrst_name

Will get autocorrected to:

require "i_did_mean"

first_name = nil
first_name

This code:

require "i_did_mean"

hash = { "foo" => 1, bar: 2 }
hash.fetch(:bax)

Will get autocorrected to:

require "i_did_mean"

hash = { "foo" => 1, bar: 2 }
hash.fetch(:bar)

For more examples, check out the test directory.

License

Copyright (c) 2019 Hrvoje Simic. See LICENSE for further details.