NOTE: The old solution has stopped working. This command was run on 2025-03-24:
```bash
echo 'delete from ZTEXTREPLACEMENTENTRY;' | sqlite3 ~/Library/KeyboardServices/TextReplacements.db
defaults delete -g NSUserDictionaryReplacementItems
```
After running that then rebooting, text replacement stopped.
It's unclear if this will also delete from iOS too - it probably will... if so, the list has been backed up in Obsidian - [[Personal iOS Text Replacements]]
## Old Solution
If you use text replacement / autocorrect / autocomplete on your iPhone and have the same iCloud account on your Mac, you could run into the issue where the text replacement happens on your Mac even if you don't want it to happen.
There is no in-built way to stop this from happening, but you can use a command to turn it off. The command, entered in Terminal, is:
```bash
defaults write -g WebAutomaticTextReplacementEnabled -bool false
```
To re-enable text replacement from replacements saved in iCloud:
```bash
defaults write -g WebAutomaticTextReplacementEnabled -bool true
```
---
https://superuser.com/questions/1331581/turn-off-text-replacement-on-macos
https://discussions.apple.com/thread/251197048
#macOS
#textReplacement
#textExpansion
#autocorrect
#autocomplete