No description
  • TypeScript 100%
Find a file
2024-02-15 12:44:56 -07:00
.gitignore init 2024-02-15 12:44:56 -07:00
.prettierrc init 2024-02-15 12:44:56 -07:00
dictionary.txt init 2024-02-15 12:44:56 -07:00
index.ts init 2024-02-15 12:44:56 -07:00
input.txt init 2024-02-15 12:44:56 -07:00
package.json init 2024-02-15 12:44:56 -07:00
README.md init 2024-02-15 12:44:56 -07:00
spellcheck.ts init 2024-02-15 12:44:56 -07:00
tsconfig.json init 2024-02-15 12:44:56 -07:00
yarn.lock init 2024-02-15 12:44:56 -07:00

Spellcheck code challenge

To get started, first install the node dependencies. I used yarn for my package manager:

yarn install

Then, to run the spellcheck program against your input file, run:

yarn start {path/to/dictionary.txt} {path/to/input-file.txt}

  • The core spellchecking logic all resides in the spellcheck.ts file and its associated functions. The index.ts file only handles parsing the input files and printing out the results.