Skip to content

Commit

Permalink
Merge pull request #10 from AlexsLemonade/sjspielman/update-dict-read
Browse files Browse the repository at this point in the history
Update how we read in the dictionary
  • Loading branch information
sjspielman authored Mar 20, 2024
2 parents 7bd0af0 + 21d5013 commit b1c4327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spell-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ if (length(arguments) > 0 && arguments[1] != "") {
}

if (file.exists(dict_file)) {
dictionary <- readLines(dict_file)
# Reading in the dictionary this way lets us put emojis in the dictionary file
dictionary <- spelling::spell_check_files(dict_file)$word
} else {
warning("Dictionary file not found")
dictionary <- ""
Expand Down

0 comments on commit b1c4327

Please sign in to comment.