How to permanently turn off check spelling while typing in macOS!
Go to system preferences, keyboard. Click on text tab and there is an option on that window to correct spelling automatically. Uncheck that box.