If you open typo_killer.ex you can see the find_typos/1 flow:
def find_typos(path \\ ".") do
path
|> FileParser.find_files_on_folder()
|> WordsParser.clean_data()
|> Dictionary.create()
|> Finder.find_typos()
|> print_typo_candidates()
end
I realized that WordsFilter.clean_data/1 could have a name that make what it does more explicit, some other improvements can be done on this flow, I'm 100% open to suggestions and PRs 🙂
If you open
typo_killer.ex
you can see thefind_typos/1
flow:I realized that
WordsFilter.clean_data/1
could have a name that make what it does more explicit, some other improvements can be done on this flow, I'm 100% open to suggestions and PRs 🙂