samuelpordeus / typo_killer

qu'est que ce 🎶 – Killing typos with style (and Elixir!)
MIT License
39 stars 7 forks source link

Make find_typos/1 flow more explicit #3

Closed samuelpordeus closed 4 years ago

samuelpordeus commented 4 years ago

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 🙂

samuelpordeus commented 4 years ago

Already changed its name :slightly_smiling_face: