Hmm, this sounds like a combination of macOS’s autocorrect and Safari’s built-in text suggestions behaving too aggressively. Since you don’t want to disable text replacement entirely but want more control over when suggestions are applied, here are a few things I suggest that you can tweak:
Turn Off Auto-Correction (But Keep Spell Checking)
- Open System Settings → Keyboard → Text Input.
- Click Edit beside your input method (e.g., "English (US)").
- Toggle Auto-Correction OFF. Keep Check Spelling While Typing ON (this way, you still see misspelled words underlined, but they won’t be auto-replaced).
Prevent Safari from Forcing Auto-Corrections
- Open Safari.
- Click Edit in the menu bar.
- Go to Spelling and Grammar.
- Uncheck Correct Spelling Automatically.
Manually Reject Unwanted Auto-Suggestions
If macOS suggests a replacement word, try:
- Pressing Escape (Esc) immediately after typing to dismiss it.
- Pressing Space, then Command + Z to undo the auto-correction.
- Typing a word and clicking outside the text field before pressing Space to prevent auto-replacement.
Train macOS to Accept Your Words
When a word is marked as incorrect (red underline), Right-click it and choose “Learn Spelling”. This should help Safari and macOS recognize it as valid in the future.