sudo mv /System/Library/Services/AppleSpell.service{,.disabled}
Nvm. For anyone else having this problem you need to reboot your mac and press ⌘+R when booting up. Then go into Utilities > Terminal and type the following commands:
csrutil disable
reboot
This is a result of System Integrity Protection.
After its work
csrutil enable
reboot