I've been trying to fix this for days, sadly, it's almost impossible for me to try and figure out what's going on when my speller works perfectly fine locally.
I tested running my program on every text files inside
/home/cs50/pset6/texts using small, large, and custom dictionaries. I checked Valgrind for memory leaks but there were none.
Here's my check50 output.